public class CollectionSpecification extends Object
CollectionSpecification class.
Constructor and Description |
---|
CollectionSpecification(Package wpkg,
String svcName,
ServiceCollector collector,
CollectionInstrumentation instrumentation)
Constructor for CollectionSpecification.
|
Modifier and Type | Method and Description |
---|---|
CollectionSet |
collect(CollectionAgent agent)
collect
|
long |
getInterval()
getInterval
|
String |
getPackageName()
getPackageName
|
RrdRepository |
getRrdRepository(String collectionName)
getRrdRepository
|
String |
getServiceName()
getServiceName
|
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.
|
void |
initialize(CollectionAgent agent)
initialize
|
void |
refresh(CollectdConfigFactory collectorConfigDao)
refresh
|
void |
release(CollectionAgent agent)
release
|
boolean |
scheduledOutage(CollectionAgent agent)
scheduledOutage
|
String |
toString()
toString
|
public CollectionSpecification(Package wpkg, String svcName, ServiceCollector collector, CollectionInstrumentation instrumentation)
Constructor for CollectionSpecification.
wpkg
- a org.opennms.netmgt.config.CollectdPackage
object.svcName
- a String
object.collector
- a ServiceCollector
object.public long getInterval()
getInterval
public String toString()
toString
public ServiceParameters getServiceParameters()
public void initialize(CollectionAgent agent) throws CollectionInitializationException
initialize
agent
- a CollectionAgent
object.CollectionInitializationException
public void release(CollectionAgent agent)
release
agent
- a CollectionAgent
object.public CollectionSet collect(CollectionAgent agent) throws CollectionException
collect
agent
- a CollectionAgent
object.CollectionSet
object.CollectionException
- if any.public boolean scheduledOutage(CollectionAgent agent)
scheduledOutage
agent
- a CollectionAgent
object.public void refresh(CollectdConfigFactory collectorConfigDao)
refresh
collectorConfigDao
- a org.opennms.netmgt.dao.api.CollectorConfigDao
object.public RrdRepository getRrdRepository(String collectionName)
getRrdRepository
collectionName
- a String
object.RrdRepository
object.Copyright © 2017. All rights reserved.