public class PartitionPrms extends BasePrms
PartitionDescription, and can be referenced from a region configuration
via RegionPrms.partitionName if the configuration explicitly sets
the RegionPrms.dataPolicy to partition the region.
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 can be set to BasePrms.NONE where noted, with
the documented effect.
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 |
colocatedWith
(String(s))
Region name to be colocated with for each partition.
|
static Long |
fixedPartitionName
(String(s))
Name of logical fixed partition configuration for each region, as found
in
FixedPartitionPrms.names. |
static Long |
localMaxMemory
(int(s))
Local max memory for each partition, in megabytes.
|
static Long |
names
(String(s))
Logical names of the partition descriptions.
|
static Long |
partitionListeners
(Comma-separated String(s))
Class names of partition listeners for each partition description.
|
static Long |
partitionResolver
(String(s))
Class name of partition resolver for each partition.
|
static Long |
recoveryDelay
(long(s))
Delay in milliseconds that existing members will wait before satisfying
redundancy after another member crashes.
|
static Long |
redundantCopies
(int(s))
Redundant copies for each partition.
|
static Long |
startupRecoveryDelay
(long(s))
Delay in milliseconds that a new member will wait before trying to satisfy
redundancy of data hosted on other members.
|
static Long |
totalMaxMemory
(long(s))
Total max memory for each partition, in megabytes.
|
static Long |
totalNumBuckets
(int(s))
Total num buckets for each partition.
|
| Constructor and Description |
|---|
PartitionPrms() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
dumpKeys, keyForName, nameForKey, setValues, tab, tasktabpublic static Long names
public static Long colocatedWith
BasePrms.NONE (default). Note that the product requires partitionResolver to also be set.public static Long fixedPartitionName
FixedPartitionPrms.names. Can be specified as BasePrms.NONE
(default).public static Long localMaxMemory
The product default is computed at runtime.
public static Long partitionListeners
BasePrms.NONE (default).
Example: To use ClassA and ClassB for the first region, no listeners for
the second region, and ClassC for the third region, specify:
ClassA ClassB, none, ClassC
Note that a new instance of each class is created each time a given partition description is used to create a region.
public static Long partitionResolver
BasePrms.NONE (default). See also colocatedWith.
Hydra creates a singleton instance for each partition description.
public static Long recoveryDelay
public static Long redundantCopies
public static Long startupRecoveryDelay
public static Long totalNumBuckets
public static Long totalMaxMemory
public static void main(String[] args)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.