public class FixedPartitionPrms extends BasePrms
PartitionDescription, and can be referenced from a partition
configuration via PartitionPrms.fixedPartitionName.
The number of description instances is gated by names. For other
parameters, if fewer values than names are given, the remaining instances
will use the last value in the list. See $JTESTS/hydra/hydra.txt for more
details.
Unused parameters default to null, except where noted. This uses the product default, except where noted.
Values, fields, and subfields of a parameter can be set to BasePrms.DEFAULT,
except where noted. This uses the product default, except where noted.
Values, fields, and subfields of a parameter can use oneof, range, or robing except where noted, but each description created will use a fixed value chosen at test configuration time. Use as a task attribute is illegal.
| Modifier and Type | Field and Description |
|---|---|
static Long |
datastores
(int(s))
Number of datastores that will create regions using each fixed partition
description.
|
static Long |
mappingAlgorithm
(Comma-separated String pair(s))
Algorithm used to map primaries and secondaries to nodes for fixed
partitions.
|
static Long |
names
(String(s))
Logical names of the fixed partition descriptions.
|
static Long |
partitionBuckets
(Comma-separated String(s))
Number of buckets in the fixed partitions for each fixed partition
description.
|
static Long |
partitionNames
(Comma-separated String(s))
Names of fixed partitions for each fixed partition description.
|
| Constructor and Description |
|---|
FixedPartitionPrms() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
dumpKeys, keyForName, nameForKey, setValues, tab, tasktabpublic static Long names
public static Long datastores
public static Long mappingAlgorithm
The method must have signature public static
List and take three arguments: a
String with the region name, the logical
FixedPartitionDescription, and an int giving the
number of redundant copies. It must return the list of fixed partition
attributes for the calling hydra client JVM.
Algorithms can use instances of a hydra blackboard such as FixedPartitionBlackboard to coordinate the mapping across
multiple hydra client JVMs. It is up to the user to ensure that all
fixed partitions are legally assigned, including redundant copies.
If an algorithm intends to support multiple regions being created from the
same logical region description, it can use the region name argument to
distinguish invocations of the algorithm on behalf of different regions.
If an algorithm intends to support creating the same region in multiple
WAN sites, it can use the logical distributed system name obtained through
DistributedSystemHelper to distinguish invocations of the
algorithm on behalf of different WAN sites.
Defaults to FixedPartitionHelper.assignRoundRobin(java.lang.String, hydra.FixedPartitionDescription, int), which assigns
primaries and secondaries in a round robin fashion, while ensuring that
no node contains multiple FixedPartitionAttributes for the
same partition.
public static Long partitionNames
public static Long partitionBuckets
public static void main(String[] args)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.