IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.plugins
Interface ObjectGridEventGroup.ShardEvents

All Known Implementing Classes:
JPATxCallback
Enclosing interface:
ObjectGridEventGroup

public static interface ObjectGridEventGroup.ShardEvents

These events are fired when a shard is made a primary shard and when the shard is demoted from a primary.


Method Summary
 void shardActivated(ObjectGrid grid)
          This is called when a shard is promoted to a primary.
 void shardDeactivate(ObjectGrid grid)
          This is called when a primary shard is demoted to a replica.
 

Method Detail

shardActivated

void shardActivated(ObjectGrid grid)
This is called when a shard is promoted to a primary.

Parameters:
grid - This is a local reference to the shard containing the primary data.

shardDeactivate

void shardDeactivate(ObjectGrid grid)
This is called when a primary shard is demoted to a replica. This can happen is the balancer decides the primary is better placed in a different container. Replication is still active until this method returns to the caller. If any application controlled transactions are in flight then they should be stopped before returning. Once this method returns then any remaining transactions will fail.

Parameters:
grid - A reference to the shard.

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

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