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 CollectionSetcollect(CollectionAgent agent, Map<String,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, Map<String,Object> parameters) throws CollectionException
Description copied from class:AbstractSnmpCollectorInvokes a collection on the object. This call will be performed in both OpenNMS and Minion. Perform data collection.- Specified by:
collectin interfaceServiceCollector- Specified by:
collectin classAbstractSnmpCollector- Parameters:
agent- aorg.opennms.netmgt.collectd.CollectionAgentobject.parameters- aMapobject.- Returns:
- a
org.opennms.netmgt.config.collector.CollectionSetobject. - Throws:
CollectionException
-
-