com.tivoli.twg.libs
Interface CommandReceivedListener
- All Known Implementing Classes:
- SNMPRemoteRequest, TWGRemoteSNMP, TWGSnapInManager
- public interface CommandReceivedListener
CommandReceivedListener is a listener interface definition which allows
an alternative to subclassing ServiceNode in order to receive CommandReceived()
notifications. By implementing the CommandReceivedListener interface, an
object can be defined which can be registered as the listener for one or
more command code values for a ServiceNode.
The registered object will then be called when the ServiceNode receives
a Command with one of the registered command code values.
CommandReceived
public boolean CommandReceived(ServiceNode sn,
Command cmd)
- Command received callback. This listener method is called when a
Command is received matching one of the command codes registered for
the given listener
- Parameters:
sn
- - ServiceNode instance which received Commandcmd
- - Instance of Command received
- Returns:
- true if ServiceNode should stay active, false if it should
terminate