IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.plugins
Interface ObjectGridLifecycleListener

All Superinterfaces:
EventListener

public interface ObjectGridLifecycleListener
extends EventListener

Listener for ObjectGrid life cycle events.

An ObjectGridLifecycleListener implementation may also implement the ObjectGridPlugin interface in order to receive enhanced ObjectGrid plug-in lifecycle method calls. The plug-in is also required to correctly implement each of the bean methods related to introspection of its state (for example isInitialized(), isDestroyed(), etc).

Since:
7.1.1
See Also:
EventListener

Nested Class Summary
static interface ObjectGridLifecycleListener.LifecycleEvent
          The LifecycleEvent describes the situation that caused a change in the lifecycle of the ObjectGrid.
static class ObjectGridLifecycleListener.State
          The state of a ObjectGrid's life cycle.
 
Method Summary
 void objectGridStateChanged(ObjectGridLifecycleListener.LifecycleEvent event)
          Invoked when there is a change to the ObjectGrid's life cycle.
 

Method Detail

objectGridStateChanged

void objectGridStateChanged(ObjectGridLifecycleListener.LifecycleEvent event)
                            throws LifecycleFailedException
Invoked when there is a change to the ObjectGrid's life cycle. When LifecycleFailedExceptions are thrown for the following lifecycle states, the ObjectGrid instance will abort the state change and be destroyed: INITIALIZING, INITIALIZED, STARTING, and PRELOAD. Exceptions thrown during other phases will be logged as error conditions.

Parameters:
event - contextual data for the event.
Throws:
LifecycleFailedException - thrown when there is a fatal exception. For some states, the ObjectGrid instance will abort the state change and be destroyed.

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.