|
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 ZoneRule
Defines placement rules with respect to zones. The ZoneRule defines placement behavior for the shards that are associated with it via ShardMappings.
ShardMapping
Method Summary | |
---|---|
void |
addZone(String zoneName)
Add a zone to this ZoneRule |
String |
getName()
Get the name of this ZoneRule |
Set |
getZones()
Get the zones that are part of this ZoneRule. |
boolean |
isExclusivePlacement()
If exclusive placement is enabled, then each ShardMapping that uses this ZoneRule will have its shard placed into a different one of the zones defined for this ZoneRule. |
void |
setExclusivePlacement(boolean exclusivePlacement)
Enable or disable exclusive placement within this ZoneRule. |
void |
setZones(Set zones)
Set the zones for this Zone Rule. |
Method Detail |
---|
String getName()
Set getZones()
void addZone(String zoneName)
zoneName
- name of the zone to be addedvoid setZones(Set zones)
zones
- the zones to set for this rule.boolean isExclusivePlacement()
If exclusive placement is disabled, placement behavior is inclusive. Inclusive placement requires that the shards for each ShardMapping that use this ZoneRule are placed into the same zone.
setExclusivePlacement(boolean)
void setExclusivePlacement(boolean exclusivePlacement)
Consider this example. The primary and a synchronous replica ShardMapping both use the same ZoneRule with exclusive placement enabled. The ZoneRule applies to zone1 and zone2. Since exclusive placement is enabled, the primary and the synchronous replica must be placed in different zones for each partition . If a partition's primary is placed in zone1, the synchronous replica must be placed in zone2.
If exclusive placement is disabled, placement behavior is inclusive. Inclusive placement requires that the shards for each ShardMapping that use this ZoneRule are placed into the same zone.
Consider this example. A synchronous and an asynchronous ShardMapping both use the same ZoneRule with exclusive placement disabled. The ZoneRule applies to zone1 and zone2. Since placement is inclusive, the synchronous and the asynchronous replica must be placed into the same zone for each partition. If a partition's synchronous replica is placed into zone1, the asynchronous replica must also be placed in zone1. Exclusive placement is enabled by default.
exclusivePlacement
- - if set to true, place all shards in different zones.isExclusivePlacement()
|
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 |