org.opennms.netmgt.collectd
Class SnmpCollectionSet

java.lang.Object
  extended by org.opennms.netmgt.collectd.SnmpCollectionSet
All Implemented Interfaces:
CollectionSet, Collectable

public class SnmpCollectionSet
extends Object
implements Collectable, CollectionSet


Nested Class Summary
static class SnmpCollectionSet.RescanNeeded
           
 
Constructor Summary
SnmpCollectionSet(CollectionAgent agent, OnmsSnmpCollection snmpCollection)
           
 
Method Summary
protected  SnmpWalker createWalker()
           
 SnmpAgentConfig getAgentConfig()
           
 CollectionAgent getCollectionAgent()
           
 CollectionTracker getCollectionTracker()
           
protected  Collection<SnmpAttributeType> getGenericIndexAttributeTypes()
           
 SnmpIfCollector getIfCollector()
           
 IfNumberTracker getIfNumber()
           
 SnmpNodeCollector getNodeCollector()
           
 org.opennms.netmgt.collectd.NodeInfo getNodeInfo()
           
 Collection<? extends CollectionResource> getResources()
           
 int getStatus()
           
 SysUpTimeTracker getSysUpTime()
           
 boolean ignorePersist()
           
 void notifyIfNotFound(AttributeDefinition attrType, SnmpObjId base, SnmpInstId inst, SnmpValue val)
           
 boolean rescanNeeded()
           
 String toString()
           
 void visit(CollectionSetVisitor visitor)
          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)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpCollectionSet

public SnmpCollectionSet(CollectionAgent agent,
                         OnmsSnmpCollection snmpCollection)
Method Detail

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.