org.opennms.netmgt.collectd
Class SnmpCollectionSet
java.lang.Object
org.opennms.netmgt.collectd.SnmpCollectionSet
- All Implemented Interfaces:
- CollectionSet, Collectable
public class SnmpCollectionSet
- extends Object
- implements Collectable, CollectionSet
SnmpCollectionSet
public SnmpCollectionSet(CollectionAgent agent,
OnmsSnmpCollection snmpCollection)
toString
public String toString()
- Overrides:
toString in class Object
getIfCollector
public SnmpIfCollector getIfCollector()
getIfNumber
public IfNumberTracker getIfNumber()
getSysUpTime
public SysUpTimeTracker getSysUpTime()
getNodeCollector
public SnmpNodeCollector getNodeCollector()
getNodeInfo
public org.opennms.netmgt.collectd.NodeInfo getNodeInfo()
getCollectionAgent
public CollectionAgent getCollectionAgent()
getGenericIndexAttributeTypes
protected Collection<SnmpAttributeType> getGenericIndexAttributeTypes()
getCollectionTracker
public CollectionTracker getCollectionTracker()
- Specified by:
getCollectionTracker in interface Collectable
getResources
public Collection<? extends CollectionResource> getResources()
visit
public void visit(CollectionSetVisitor visitor)
- Description copied from interface:
CollectionSet
- Provide a way to visit all the values in the CollectionSet, for any appropriate purposes (persisting, thresholding, or others)
The expectation is that calling this method will ultimately call visitResource, visitGroup and visitAttribute (as appropriate)
- Specified by:
visit in interface CollectionSet
createWalker
protected SnmpWalker createWalker()
rescanNeeded
public boolean rescanNeeded()
getAgentConfig
public SnmpAgentConfig getAgentConfig()
notifyIfNotFound
public void notifyIfNotFound(AttributeDefinition attrType,
SnmpObjId base,
SnmpInstId inst,
SnmpValue val)
getStatus
public int getStatus()
- Specified by:
getStatus in interface CollectionSet
ignorePersist
public boolean ignorePersist()
- Specified by:
ignorePersist in interface CollectionSet
Copyright © 2009. All Rights Reserved.