|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContainerMBean
This MBean interface allows a client process to perform operations on and get status from an ObjectGrid container running in a dynamic environment. The object name pattern for this MBean is:
com.ibm.websphere.objectgrid:type=ObjectGridContainer,name=<server>,host=<host>,ogServerName=<server>If ObjectGrid is running in a WebSphere Application Server process, more key=value pairs may be added to the object name.
Field Summary | |
---|---|
static String |
INVALID_PARTITION
INVALID_PARTITION indicates that no partition was found for the requested shard. |
static String |
MAPSET_UNSUPPORTED_ON_CONTAINER
MAPSET_UNSUPPORTED_ON_CONTAINER indicates that an attempt was made to reserve a shard from a map set that is not supported on this container. |
static String |
QUIESCE_COMPLETE
QUIESCE_COMPLETE is the MBean notification type for a completed quiesce. |
static String |
RELEASE_SUCCESSFUL
RELEASE_SUCCESSFUL indicates that the attempt to release the shard was successful. |
static String |
RELEASE_UNSUPPORTED_WITH_PER_CONTAINER
RELEASE_UNSUPPORTED_WITH_PER_CONTAINER indicates that the shard is part of a map set using the PER_CONTAINER placement strategy. |
static String |
RESERVATION_PRIOR_TO_INITIAL_PLACEMENT
RESERVATION_PRIOR_TO_INITIAL_PLACEMENT indicates that the attempt to reserve the shard was processed successfully. |
static String |
RESERVATION_SUCCESSFUL
RESERVATION_SUCCESSFUL indicates that the attempt to reserve the shard was successful. |
static String |
RESERVE_UNSUPPORTED_WITH_PER_CONTAINER
RESERVE_UNSUPPORTED_WITH_PER_CONTAINER indicates that the shard is part of a map set using the PER_CONTAINER placement strategy. |
static String |
SHARD_ALREADY_RESERVED
SHARD_ALREADY_RESERVED indicates that the shard is already reserved elsewhere and cannot be reserved on the specified container. |
static String |
SHARD_NOT_RESERVED_ON_CONTAINER
SHARD_NOT_RESERVED_ON_CONTAINER indicates that the attempt to release the shard from the requesting container failed because the specified shard was not found to be reserved by the requesting container. |
Method Summary | |
---|---|
int |
getActivatedShardCount()
Retrieve the total number of shards that have been activated for the life of this ObjectGrid container. |
int |
getActiveShardCount()
Retrieve the number of active shards hosted in this ObjectGrid container. |
String |
getContainerName()
Retrieve the name of the container. |
int |
getDeactivatedShardCount()
Retrieve the total number of shards that have been deactivated for the life of this ObjectGrid container. |
String |
getDomainName()
Retrieve the name of the catalog server grouping administering this container. |
String |
getStatus()
Retrieve the status information for the shards in this container. |
String |
getZoneName()
Retrieve the name of the zone grouping that this container belongs to. |
int |
quiesceContainer(Boolean inQuiesce)
Prepare the container for a potential shutdown by moving replica shards, verifying that primaries have required sync replicas and preventing the placement of new shards. |
String |
release(String objectGridName,
String mapSetName,
String partitionName)
Release a shard that has been previously reserved by this container. |
String |
reserve(String objectGridName,
String mapSetName,
String partitionName,
String shardType)
Reserve a specific shard on this container. |
String |
retrieveStatus(String objectGridName,
String mapSetName)
Retrieve the status information for the shards in this container, filtered by ObjectGrid and/or mapset. |
void |
teardown()
Tears down and stops the container in a way to allow partitions to be moved to new locations. |
void |
terminate()
Terminates a container without coordinating partition movement, partitions will failover. |
Field Detail |
---|
static final String QUIESCE_COMPLETE
quiesceContainer(Boolean)
,
Constant Field Valuesstatic final String RESERVATION_SUCCESSFUL
reserve(String, String, String, String)
,
Constant Field Valuesstatic final String RESERVATION_PRIOR_TO_INITIAL_PLACEMENT
reserve(String, String, String, String)
,
Constant Field Valuesstatic final String SHARD_ALREADY_RESERVED
reserve(String, String, String, String)
,
Constant Field Valuesstatic final String INVALID_PARTITION
reserve(String, String, String, String)
,
Constant Field Valuesstatic final String RESERVE_UNSUPPORTED_WITH_PER_CONTAINER
reserve(String, String, String, String)
,
Constant Field Valuesstatic final String RELEASE_SUCCESSFUL
release(String, String, String)
,
Constant Field Valuesstatic final String SHARD_NOT_RESERVED_ON_CONTAINER
release(String, String, String)
,
Constant Field Valuesstatic final String RELEASE_UNSUPPORTED_WITH_PER_CONTAINER
release(String, String, String)
,
Constant Field Valuesstatic final String MAPSET_UNSUPPORTED_ON_CONTAINER
reserve(String, String, String, String)
,
Constant Field ValuesMethod Detail |
---|
void teardown()
void terminate()
int getActiveShardCount()
int getActivatedShardCount()
int getDeactivatedShardCount()
String getDomainName()
String getZoneName()
int quiesceContainer(Boolean inQuiesce)
inQuiesce
- Initiate quiesce mode (true) or cancel quiesce mode (false)
QUIESCE_COMPLETE
String getStatus()
String retrieveStatus(String objectGridName, String mapSetName)
objectGridName
- The name of the ObjectGrid for which the status is requested.mapSetName
- The name of the mapset within the ObjectGrid for which the status is requested.
String reserve(String objectGridName, String mapSetName, String partitionName, String shardType)
objectGridName
- the ObjectGrid containing the shardmapSetName
- the map set containing the shardpartitionName
- the partition containing the shardshardType
- the type of shard. Currently, only primary shards can be reserved:
ShardMBean.TYPE_PRIMARY
IllegalArgumentException
- if any of the arguments are null or the empty String. Also thrown if shardType is not
ShardMBean.TYPE_PRIMARY
ShardMBean.TYPE_PRIMARY
,
release(String, String, String)
,
RESERVATION_SUCCESSFUL
,
RESERVATION_PRIOR_TO_INITIAL_PLACEMENT
,
SHARD_ALREADY_RESERVED
,
INVALID_PARTITION
,
RESERVE_UNSUPPORTED_WITH_PER_CONTAINER
String release(String objectGridName, String mapSetName, String partitionName)
objectGridName
- the ObjectGrid containing the shardmapSetName
- the map set containing the shardpartitionName
- the partition containing the shard
IllegalArgumentException
- if any of the arguments are null or the empty Stringreserve(String, String, String, String)
,
RELEASE_SUCCESSFUL
,
SHARD_NOT_RESERVED_ON_CONTAINER
,
RELEASE_UNSUPPORTED_WITH_PER_CONTAINER
String getContainerName()
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |