Package org.opennms.netmgt.collectd
Class SnmpCollectorNG
- java.lang.Object
-
- org.opennms.netmgt.collection.api.AbstractServiceCollector
-
- org.opennms.netmgt.collectd.AbstractSnmpCollector
-
- org.opennms.netmgt.collectd.SnmpCollectorNG
-
- All Implemented Interfaces:
ServiceCollector
public class SnmpCollectorNG extends AbstractSnmpCollector
The "New Generation" SnmpCollector. It exposes a CollectionSet that was build withCollectionSetBuilder
. The goal here is to remove a SNMP specific implementation and to move to the the general classes used by the CollectionSetBuilder.
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.collectd.AbstractSnmpCollector
m_client, SNMP_STORAGE_PRIMARY
-
-
Constructor Summary
Constructors Constructor Description SnmpCollectorNG()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionSet
collect(CollectionAgent agent, java.util.Map<java.lang.String,java.lang.Object> parameters)
Invokes a collection on the object.-
Methods inherited from class org.opennms.netmgt.collectd.AbstractSnmpCollector
getRrdRepository, initialize, serviceName, validateAgent
-
Methods inherited from class org.opennms.netmgt.collection.api.AbstractServiceCollector
getEffectiveLocation, getRuntimeAttributes, marshalParameters, unmarshalParameters
-
-
-
-
Method Detail
-
collect
public CollectionSet collect(CollectionAgent agent, java.util.Map<java.lang.String,java.lang.Object> parameters) throws CollectionException
Description copied from class:AbstractSnmpCollector
Invokes a collection on the object. This call will be performed in both OpenNMS and Minion. Perform data collection.- Specified by:
collect
in interfaceServiceCollector
- Specified by:
collect
in classAbstractSnmpCollector
- Parameters:
agent
- aorg.opennms.netmgt.collectd.CollectionAgent
object.parameters
- aMap
object.- Returns:
- a
org.opennms.netmgt.config.collector.CollectionSet
object. - Throws:
CollectionException
-
-