Package org.opennms.netmgt.snmp
Class CollectionTracker
- java.lang.Object
-
- org.opennms.netmgt.snmp.CollectionTracker
-
- All Implemented Interfaces:
Collectable
,ProxiableTracker
- Direct Known Subclasses:
AggregateTracker
,ColumnTracker
,SingleInstanceTracker
,TableTracker
public abstract class CollectionTracker extends Object implements Collectable, ProxiableTracker
-
-
Constructor Summary
Constructors Constructor Description CollectionTracker()
CollectionTracker(CollectionTracker parent)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ResponseProcessor
buildNextPdu(PduBuilder pduBuilder)
boolean
failed()
CollectionTracker
getCollectionTracker()
CollectionTracker
getParent()
boolean
isFinished()
protected void
reportFatalErr(ErrorStatusException ex)
protected void
reportGenErr(String msg)
protected void
reportNonFatalErr(ErrorStatus status)
protected void
reportNoSuchNameErr(String msg)
protected void
reportTooBigErr(String msg)
void
setFailed(boolean failed)
void
setFinished(boolean finished)
abstract void
setMaxRepetitions(int maxRepetitions)
abstract void
setMaxRetries(int maxRetries)
void
setParent(CollectionTracker parent)
void
setTimedOut(boolean timedOut)
protected void
storeResult(SnmpResult res)
boolean
timedOut()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.snmp.proxy.ProxiableTracker
getWalkRequests, handleWalkResponses
-
-
-
-
Constructor Detail
-
CollectionTracker
public CollectionTracker()
-
CollectionTracker
public CollectionTracker(CollectionTracker parent)
-
-
Method Detail
-
setParent
public void setParent(CollectionTracker parent)
-
getParent
public CollectionTracker getParent()
-
failed
public boolean failed()
-
timedOut
public boolean timedOut()
-
setMaxRepetitions
public abstract void setMaxRepetitions(int maxRepetitions)
-
setMaxRetries
public abstract void setMaxRetries(int maxRetries)
-
setFailed
public void setFailed(boolean failed)
-
setTimedOut
public void setTimedOut(boolean timedOut)
-
storeResult
protected void storeResult(SnmpResult res)
-
isFinished
public boolean isFinished()
-
setFinished
public final void setFinished(boolean finished)
-
buildNextPdu
public abstract ResponseProcessor buildNextPdu(PduBuilder pduBuilder) throws SnmpException
- Throws:
SnmpException
-
reportTooBigErr
protected void reportTooBigErr(String msg)
-
reportGenErr
protected void reportGenErr(String msg)
-
reportNoSuchNameErr
protected void reportNoSuchNameErr(String msg)
-
reportFatalErr
protected void reportFatalErr(ErrorStatusException ex)
-
reportNonFatalErr
protected void reportNonFatalErr(ErrorStatus status)
-
getCollectionTracker
public CollectionTracker getCollectionTracker()
- Specified by:
getCollectionTracker
in interfaceCollectable
-
-