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()).
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 stateoldstate
- - Previous state of TWGManagedObject instancenewstate
- - New state of TWGManagedObject instance