IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.deployment
Class ShardType

java.lang.Object
  extended by com.ibm.websphere.objectgrid.deployment.ShardType
All Implemented Interfaces:
Serializable

public class ShardType
extends Object
implements Serializable

Defines the type of shard for the ShardMappings. There are 3 ShardTypes: PRIMARY, SYNCHRONOUS_REPLICA, and ASYNCHRONOUS_REPLICA

Since:
WAS XD 6.1 FIX3
See Also:
ShardMapping, Serialized Form

Field Summary
static ShardType ASYNCHRONOUS_REPLICA
          Represents an asynchronous replica shard.
static ShardType PRIMARY
          Represents a primary shard.
static ShardType SYNCHRONOUS_REPLICA
          Represents a synchronous replica shard.
 
Method Summary
 String toString()
          Returns a string representation of the ShardType.
static ShardType valueOf(byte id)
          Given the raw value of a ShardType, this method returns a ShardType object, or null if the raw value does not match an existing type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PRIMARY

public static final ShardType PRIMARY
Represents a primary shard.


SYNCHRONOUS_REPLICA

public static final ShardType SYNCHRONOUS_REPLICA
Represents a synchronous replica shard.


ASYNCHRONOUS_REPLICA

public static final ShardType ASYNCHRONOUS_REPLICA
Represents an asynchronous replica shard.

Method Detail

valueOf

public static final ShardType valueOf(byte id)
Given the raw value of a ShardType, this method returns a ShardType object, or null if the raw value does not match an existing type. This method is used to deserialize this object.

Parameters:
id - the raw value of a ShardType
Returns:
the ShardType corresponding to the raw input value
Since:
WXS 8.6

toString

public String toString()
Returns a string representation of the ShardType.

Overrides:
toString in class Object
Returns:
a string representation of the ShardType.

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

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