- java.lang.Object
-
- org.snmp4j.tools.console.SnmpCommand.CVSTableListener
-
- All Implemented Interfaces:
java.util.EventListener,TableListener
- Enclosing class:
- SnmpCommand
class SnmpCommand.CVSTableListener extends java.lang.Object implements TableListener
-
-
Field Summary
Fields Modifier and Type Field Description private booleanfinishedprivate longrequestTime
-
Constructor Summary
Constructors Constructor Description CVSTableListener(long time)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinished(TableEvent event)Indicates in a series of table events that no more events will follow.booleanisFinished()Indicates whether the tree walk is complete or not.booleannext(TableEvent event)Consumes the next table event, which is typically the next row in a table retrieval operation.
-
-
-
Method Detail
-
next
public boolean next(TableEvent event)
Description copied from interface:TableListenerConsumes the next table event, which is typically the next row in a table retrieval operation.- Specified by:
nextin interfaceTableListener- Parameters:
event- aTableEventinstance.- Returns:
trueif this listener wants to receive more events, otherwise returnfalse. For example, aTableListenercan returnfalseto stop table retrieval.
-
finished
public void finished(TableEvent event)
Description copied from interface:TableListenerIndicates in a series of table events that no more events will follow.- Specified by:
finishedin interfaceTableListener- Parameters:
event- aTableEventinstance that will either indicate an error (RetrievalEvent.isError()returnstrue) or success of the table operation.
-
isFinished
public boolean isFinished()
Description copied from interface:TableListenerIndicates whether the tree walk is complete or not.- Specified by:
isFinishedin interfaceTableListener- Returns:
trueif it is complete,falseotherwise.
-
-