Class CollectionSpecification
- java.lang.Object
-
- org.opennms.netmgt.collection.core.CollectionSpecification
-
public class CollectionSpecification extends java.lang.Object
CollectionSpecification class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description CollectionSpecification(Package wpkg, java.lang.String svcName, ServiceCollector collector, CollectionInstrumentation instrumentation, LocationAwareCollectorClient locationAwareCollectorClient, ReadablePollOutagesDao pollOutagesDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionSet
collect(CollectionAgent agent)
collectlong
getInterval()
getIntervaljava.lang.String
getPackageName()
getPackageNameRrdRepository
getRrdRepository(java.lang.String collectionName)
getRrdRepositoryjava.lang.String
getServiceName()
getServiceNameServiceParameters
getServiceParameters()
Return a read only instance of the parameters, which consists of the overall service parameters, plus various other Collection specific parameters (e.g.void
initialize(CollectionAgent agent)
initializevoid
refresh(CollectdConfigFactory collectorConfigDao)
refreshvoid
release(CollectionAgent agent)
releaseboolean
scheduledOutage(CollectionAgent agent)
scheduledOutagejava.lang.String
toString()
toString
-
-
-
Constructor Detail
-
CollectionSpecification
public CollectionSpecification(Package wpkg, java.lang.String svcName, ServiceCollector collector, CollectionInstrumentation instrumentation, LocationAwareCollectorClient locationAwareCollectorClient, ReadablePollOutagesDao pollOutagesDao)
-
-
Method Detail
-
getPackageName
public java.lang.String getPackageName()
getPackageName
- Returns:
- a
String
object.
-
getServiceName
public java.lang.String getServiceName()
getServiceName
- Returns:
- a
String
object.
-
getInterval
public long getInterval()
getInterval
- Returns:
- a long.
-
toString
public java.lang.String toString()
toString
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a
String
object.
-
getServiceParameters
public ServiceParameters getServiceParameters()
Return a read only instance of the parameters, which consists of the overall service parameters, plus various other Collection specific parameters (e.g. storeByNodeID etc)- Returns:
- A read only Map instance
-
initialize
public void initialize(CollectionAgent agent) throws CollectionInitializationException
initialize
- Parameters:
agent
- aCollectionAgent
object.- Throws:
CollectionInitializationException
-
release
public void release(CollectionAgent agent)
release
- Parameters:
agent
- aCollectionAgent
object.
-
collect
public CollectionSet collect(CollectionAgent agent) throws CollectionException
collect
- Parameters:
agent
- aCollectionAgent
object.- Returns:
- a
CollectionSet
object. - Throws:
CollectionException
- if any.
-
scheduledOutage
public boolean scheduledOutage(CollectionAgent agent)
scheduledOutage
- Parameters:
agent
- aCollectionAgent
object.- Returns:
- a boolean.
-
refresh
public void refresh(CollectdConfigFactory collectorConfigDao)
refresh
- Parameters:
collectorConfigDao
- aCollectdConfigFactory
object.
-
getRrdRepository
public RrdRepository getRrdRepository(java.lang.String collectionName)
getRrdRepository
- Parameters:
collectionName
- aString
object.- Returns:
- a
RrdRepository
object.
-
-