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 java.lang.Long |
colocatedWith
(String(s))
Region name to be colocated with for each partition.
|
static java.lang.Long |
fixedPartitionName
(String(s))
Name of logical fixed partition configuration for each region, as found
in
FixedPartitionPrms.names. |
static java.lang.Long |
localMaxMemory
(int(s))
Local max memory for each partition, in megabytes.
|
static java.lang.Long |
names
(String(s))
Logical names of the partition descriptions.
|
static java.lang.Long |
partitionListeners
(Comma-separated String(s))
Class names of partition listeners for each partition description.
|
static java.lang.Long |
partitionResolver
(String(s))
Class name of partition resolver for each partition.
|
static java.lang.Long |
recoveryDelay
(long(s))
Delay in milliseconds that existing members will wait before satisfying
redundancy after another member crashes.
|
static java.lang.Long |
redundantCopies
(int(s))
Redundant copies for each partition.
|
static java.lang.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 java.lang.Long |
totalMaxMemory
(long(s))
Total max memory for each partition, in megabytes.
|
static java.lang.Long |
totalNumBuckets
(int(s))
Total num buckets for each partition.
|
| Constructor and Description |
|---|
PartitionPrms() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
dumpKeys, keyForName, nameForKey, setValues, tab, tasktabpublic static java.lang.Long names
public static java.lang.Long colocatedWith
BasePrms.NONE (default). Note that the product requires partitionResolver to also be set.public static java.lang.Long fixedPartitionName
FixedPartitionPrms.names. Can be specified as BasePrms.NONE
(default).public static java.lang.Long localMaxMemory
The product default is computed at runtime.
public static java.lang.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 java.lang.Long partitionResolver
BasePrms.NONE (default). See also colocatedWith.
Hydra creates a singleton instance for each partition description.
public static java.lang.Long recoveryDelay
public static java.lang.Long redundantCopies
public static java.lang.Long startupRecoveryDelay
public static java.lang.Long totalNumBuckets
public static java.lang.Long totalMaxMemory
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.