- java.lang.Object
-
- org.snmp4j.tools.console.LogControl.LoggerListListener
-
- All Implemented Interfaces:
java.util.EventListener
,TableListener
- Enclosing class:
- LogControl
class LogControl.LoggerListListener extends java.lang.Object implements TableListener
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
finished
-
Constructor Summary
Constructors Constructor Description LoggerListListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finished(TableEvent event)
Indicates in a series of table events that no more events will follow.boolean
isFinished()
Indicates whether the tree walk is complete or not.boolean
next(TableEvent event)
Consumes the next table event, which is typically the next row in a table retrieval operation.private void
printLogger(TableEvent event)
-
-
-
Method Detail
-
next
public boolean next(TableEvent event)
Description copied from interface:TableListener
Consumes the next table event, which is typically the next row in a table retrieval operation.- Specified by:
next
in interfaceTableListener
- Parameters:
event
- aTableEvent
instance.- Returns:
true
if this listener wants to receive more events, otherwise returnfalse
. For example, aTableListener
can returnfalse
to stop table retrieval.
-
finished
public void finished(TableEvent event)
Description copied from interface:TableListener
Indicates in a series of table events that no more events will follow.- Specified by:
finished
in interfaceTableListener
- Parameters:
event
- aTableEvent
instance that will either indicate an error (RetrievalEvent.isError()
returnstrue
) or success of the table operation.
-
printLogger
private void printLogger(TableEvent event)
-
isFinished
public boolean isFinished()
Description copied from interface:TableListener
Indicates whether the tree walk is complete or not.- Specified by:
isFinished
in interfaceTableListener
- Returns:
true
if it is complete,false
otherwise.
-
-