Package org.opennms.netmgt.snmp
Class TableTracker
- java.lang.Object
-
- org.opennms.netmgt.snmp.CollectionTracker
-
- org.opennms.netmgt.snmp.TableTracker
-
- All Implemented Interfaces:
Collectable
,ProxiableTracker
,RowCallback
,RowResultFactory
- Direct Known Subclasses:
CdpCacheTableTracker
,CiscoVtpVlanTableTracker
,Dot1dBasePortTableTracker
,Dot1dStpPortTableTracker
,Dot1dTpFdbTableTracker
,Dot1qTpFdbTableTracker
,EntityPhysicalTableTracker
,IPAddressTableTracker
,IPInterfaceTableTracker
,IpNetToMediaTableTracker
,IsisCircTableTracker
,IsisISAdjTableTracker
,LldpRemTableTracker
,MtxrLldpLocalTableTracker
,MtxrNeighborTableTracker
,OspfIfTableTracker
,OspfNbrTableTracker
,PhysInterfaceTableTracker
,SnmpGetter
,TimeTetraLldpRemTableTracker
public class TableTracker extends CollectionTracker implements RowCallback, RowResultFactory
-
-
Constructor Summary
Constructors Constructor Description TableTracker(RowCallback rc, int maxRepetitions, int maxRetries, SnmpObjId... columns)
TableTracker(RowCallback rc, SnmpObjId... ids)
TableTracker(SnmpObjId... ids)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseProcessor
buildNextPdu(PduBuilder pduBuilder)
SnmpRowResult
createRowResult(int columnCount, SnmpInstId instance)
List<WalkRequest>
getWalkRequests()
void
handleWalkResponses(List<WalkResponse> responses)
boolean
isFinished()
void
rowCompleted(SnmpRowResult row)
void
setMaxRepetitions(int maxRepetitions)
void
setMaxRetries(int maxRetries)
void
storeResult(SnmpResult res)
-
Methods inherited from class org.opennms.netmgt.snmp.CollectionTracker
failed, getCollectionTracker, getParent, reportFatalErr, reportGenErr, reportNonFatalErr, reportNoSuchNameErr, reportTooBigErr, setFailed, setFinished, setParent, setTimedOut, timedOut
-
-
-
-
Constructor Detail
-
TableTracker
public TableTracker(SnmpObjId... ids)
-
TableTracker
public TableTracker(RowCallback rc, SnmpObjId... ids)
-
TableTracker
public TableTracker(RowCallback rc, int maxRepetitions, int maxRetries, SnmpObjId... columns)
-
-
Method Detail
-
setMaxRepetitions
public void setMaxRepetitions(int maxRepetitions)
- Specified by:
setMaxRepetitions
in classCollectionTracker
-
setMaxRetries
public void setMaxRetries(int maxRetries)
- Specified by:
setMaxRetries
in classCollectionTracker
-
isFinished
public boolean isFinished()
- Overrides:
isFinished
in classCollectionTracker
-
buildNextPdu
public ResponseProcessor buildNextPdu(PduBuilder pduBuilder) throws SnmpException
- Specified by:
buildNextPdu
in classCollectionTracker
- Throws:
SnmpException
-
storeResult
public void storeResult(SnmpResult res)
- Overrides:
storeResult
in classCollectionTracker
-
rowCompleted
public void rowCompleted(SnmpRowResult row)
- Specified by:
rowCompleted
in interfaceRowCallback
-
createRowResult
public SnmpRowResult createRowResult(int columnCount, SnmpInstId instance)
- Specified by:
createRowResult
in interfaceRowResultFactory
-
getWalkRequests
public List<WalkRequest> getWalkRequests()
- Specified by:
getWalkRequests
in interfaceProxiableTracker
-
handleWalkResponses
public void handleWalkResponses(List<WalkResponse> responses)
- Specified by:
handleWalkResponses
in interfaceProxiableTracker
-
-