org.opennms.netmgt.snmp
Class TableTracker

java.lang.Object
  extended by org.opennms.netmgt.snmp.CollectionTracker
      extended by org.opennms.netmgt.snmp.TableTracker
All Implemented Interfaces:
Collectable, RowCallback, RowResultFactory

public class TableTracker
extends CollectionTracker
implements RowCallback, RowResultFactory


Field Summary
 
Fields inherited from class org.opennms.netmgt.snmp.CollectionTracker
GEN_ERR, NO_ERR, NO_SUCH_NAME_ERR, TOO_BIG_ERR
 
Constructor Summary
TableTracker(RowCallback rc, int maxRepetitions, SnmpObjId... columns)
           
TableTracker(RowCallback rc, SnmpObjId... ids)
           
TableTracker(SnmpObjId... ids)
           
 
Method Summary
 ResponseProcessor buildNextPdu(PduBuilder pduBuilder)
           
 SnmpRowResult createRowResult(int columnCount, SnmpInstId instance)
           
 boolean isFinished()
           
 void rowCompleted(SnmpRowResult row)
           
 void setMaxRepetitions(int maxRepetitions)
           
 void storeResult(SnmpResult res)
           
 
Methods inherited from class org.opennms.netmgt.snmp.CollectionTracker
failed, getCollectionTracker, getParent, reportGenErr, reportNoSuchNameErr, reportTooBigErr, setFailed, setFinished, setParent, setTimedOut, timedOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableTracker

public TableTracker(SnmpObjId... ids)

TableTracker

public TableTracker(RowCallback rc,
                    SnmpObjId... ids)

TableTracker

public TableTracker(RowCallback rc,
                    int maxRepetitions,
                    SnmpObjId... columns)
Method Detail

setMaxRepetitions

public void setMaxRepetitions(int maxRepetitions)
Specified by:
setMaxRepetitions in class CollectionTracker

isFinished

public boolean isFinished()
Overrides:
isFinished in class CollectionTracker

buildNextPdu

public ResponseProcessor buildNextPdu(PduBuilder pduBuilder)
Specified by:
buildNextPdu in class CollectionTracker

storeResult

public void storeResult(SnmpResult res)
Overrides:
storeResult in class CollectionTracker

rowCompleted

public void rowCompleted(SnmpRowResult row)
Specified by:
rowCompleted in interface RowCallback

createRowResult

public SnmpRowResult createRowResult(int columnCount,
                                     SnmpInstId instance)
Specified by:
createRowResult in interface RowResultFactory


Copyright © 2010. All Rights Reserved.