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 ServiceCollector
parameters
- a Map
object.RuntimeException
- Thrown if an unrecoverable error occurs that prevents the
plug-in from functioning.public void release()
release
in interface ServiceCollector
public 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 ServiceCollector
agent
- a org.opennms.netmgt.collectd.CollectionAgent
object.parameters
- a Map
object.CollectionInitializationException
public void release(CollectionAgent agent)
release
Responsible for releasing any resources associated with the specified interface.release
in interface ServiceCollector
agent
- a org.opennms.netmgt.collectd.CollectionAgent
object.public CollectionSet collect(CollectionAgent agent, EventProxy eventProxy, Map<String,Object> parameters) throws CollectionException
collect
in interface ServiceCollector
agent
- a org.opennms.netmgt.collectd.CollectionAgent
object.eventProxy
- a EventProxy
object.parameters
- a Map
object.org.opennms.netmgt.config.collector.CollectionSet
object.CollectionException
public RrdRepository getRrdRepository(String collectionName)
getRrdRepository
getRrdRepository
in interface ServiceCollector
collectionName
- a String
object.RrdRepository
object.Copyright © 2017. All rights reserved.