Class CollectionSpecification
- java.lang.Object
-
- org.opennms.netmgt.collection.core.CollectionSpecification
-
public class CollectionSpecification extends Object
CollectionSpecification class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description CollectionSpecification(Package wpkg, 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()
getIntervalString
getPackageName()
getPackageNameRrdRepository
getRrdRepository(String collectionName)
getRrdRepositoryString
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)
scheduledOutageString
toString()
toString
-
-
-
Constructor Detail
-
CollectionSpecification
public CollectionSpecification(Package wpkg, String svcName, ServiceCollector collector, CollectionInstrumentation instrumentation, LocationAwareCollectorClient locationAwareCollectorClient, ReadablePollOutagesDao pollOutagesDao)
-
-
Method Detail
-
getInterval
public long getInterval()
getInterval
- Returns:
- a long.
-
toString
public String toString()
toString
-
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(String collectionName)
getRrdRepository
- Parameters:
collectionName
- aString
object.- Returns:
- a
RrdRepository
object.
-
-