com.tivoli.twg.engine
Interface TWGManagedObjectStateListener

All Known Subinterfaces:
TWGAddressEntryListener
All Known Implementing Classes:
TWGJobActivation

public interface TWGManagedObjectStateListener

Listener interface for notification of state changes (on-line/off-line) for Managed Objects. All listener methods are required to be executed quickly by the listener (either by doing only a trivial operation, or by enqueuing the notification to some other handler to be executed after the callback). Failure to follow this behavior can have significant impacts on server performance. Specifically, a listener cannot invoke blocking ServiceNode calls (such as SendCommand()), and must instead use non-blocking versions (such as SendAsynchCommand()).


Method Summary
 void managedObjectStateChange(TWGManagedObject twgmo, int oldstate, int newstate)
          Notificaton method for TWGManagedObject state changes.
 

Method Detail

managedObjectStateChange

public void managedObjectStateChange(TWGManagedObject twgmo,
                                     int oldstate,
                                     int newstate)
Notificaton method for TWGManagedObject state changes. This method is called after the state has been changed, and provides the previous state value. Implementations of this callback must execute quickly without blocking.

Parameters:
twgmo - - Reference to TWGManagedObject which changed state
oldstate - - Previous state of TWGManagedObject instance
newstate - - New state of TWGManagedObject instance