IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.deployment
Interface ShardMapping


public interface ShardMapping

A ShardMapping is used to associate a shard with a ZoneRule.

When leveraging ShardMappings, each shard in the partition must have a ShardMapping defined.

Since:
WAS XD 6.1 FIX3
See Also:
MapSet.addShardMapping(ShardMapping)

Method Summary
 ShardType getShardType()
          Get the type of shard that this mapping represents.
 ZoneRule getZoneRule()
          Get the ZoneRule associated with this ShardMapping.
 

Method Detail

getShardType

ShardType getShardType()
Get the type of shard that this mapping represents.

Returns:
the ShardType for this ShardMapping
See Also:
ShardType.PRIMARY, ShardType.SYNCHRONOUS_REPLICA, ShardType.ASYNCHRONOUS_REPLICA

getZoneRule

ZoneRule getZoneRule()
Get the ZoneRule associated with this ShardMapping.

Returns:
the ZoneRule this ShardMapping utilizes

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

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