public class SnmpCollector extends Object implements ServiceCollector
The SnmpCollector class ...
| Modifier and Type | Field and Description |
|---|---|
static String |
SNMP_STORAGE_PRIMARY
Valid values for the 'snmpStorageFlag' attribute in datacollection-config
XML file.
|
COLLECTION_FAILED, COLLECTION_SUCCEEDED, COLLECTION_UNKNOWN, statusType| Constructor and Description |
|---|
SnmpCollector() |
| Modifier and Type | Method and Description |
|---|---|
CollectionSet |
collect(CollectionAgent agent,
EventProxy eventProxy,
Map<String,Object> parameters)
Invokes a collection on the object.
|
RrdRepository |
getRrdRepository(String collectionName)
getRrdRepository
|
void |
initialize(CollectionAgent agent,
Map<String,Object> parameters)
initialize
|
void |
initialize(Map<String,String> parameters)
initialize
|
void |
release()
Responsible for freeing up any resources held by the collector.
|
void |
release(CollectionAgent agent)
release
|
String |
serviceName()
Returns the name of the service that the plug-in collects ("SNMP").
|
public static String SNMP_STORAGE_PRIMARY
public String serviceName()
public void initialize(Map<String,String> parameters)
initialize
Initialize the service collector. During initialization the SNMP collector:initialize in interface ServiceCollectorparameters - a Map object.RuntimeException - Thrown if an unrecoverable error occurs that prevents the
plug-in from functioning.public void release()
release in interface ServiceCollectorpublic void initialize(CollectionAgent agent, Map<String,Object> parameters) throws CollectionInitializationException
initialize
Responsible for performing all necessary initialization for the specified interface in preparation for data collection.initialize in interface ServiceCollectoragent - a org.opennms.netmgt.collectd.CollectionAgent object.parameters - a Map object.CollectionInitializationExceptionpublic void release(CollectionAgent agent)
release
Responsible for releasing any resources associated with the specified interface.release in interface ServiceCollectoragent - a org.opennms.netmgt.collectd.CollectionAgent object.public CollectionSet collect(CollectionAgent agent, EventProxy eventProxy, Map<String,Object> parameters) throws CollectionException
collect in interface ServiceCollectoragent - a org.opennms.netmgt.collectd.CollectionAgent object.eventProxy - a EventProxy object.parameters - a Map object.org.opennms.netmgt.config.collector.CollectionSet object.CollectionExceptionpublic RrdRepository getRrdRepository(String collectionName)
getRrdRepository
getRrdRepository in interface ServiceCollectorcollectionName - a String object.RrdRepository object.Copyright © 2017. All rights reserved.