public class ClientRegionPrms extends BasePrms
ClientRegionDescription.
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 can be set to BasePrms.NONE where noted, with
the documented effect.
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.
Subfields are order-dependent, as stated in the javadocs for parameters that use them.
| Modifier and Type | Field and Description |
|---|---|
static Long |
cacheListeners
(Comma-separated String(s))
Class names of cache listeners for each region.
|
static Long |
cacheListenersSingleton
(boolean(s))
Whether the
cacheListeners for each region are singletons across
all actual regions created with this description. |
static Long |
clientRegionShortcut
(String(s))
ClientRegionShortcut
to use for each region. |
static Long |
cloningEnabled
(boolean(s))
Cloning enabled for delta propagation on each region.
|
static Long |
concurrencyLevel
(int(s))
Concurrency level for each region.
|
static Long |
customEntryIdleTimeout
(String(s))
Classname of the custom entry idle timeout for each region.
|
static Long |
customEntryTimeToLive
(String(s))
Classname of the custom entry time to live for each region.
|
static String |
DEFAULT_REGION_NAME |
static Long |
diskStoreName
(String(s))
Name of logical disk store configuration (and actual disk store name)
for each region, as found in
DiskStorePrms.names. |
static Long |
diskSynchronous
(Boolean(s))
Disk synchronous for each region.
|
static Long |
entryIdleTimeout
(Comma-separated int/String pair(s))
Entry idle timeout consisting for each region of the timeout in seconds
followed by an optional expiration action.
|
static Long |
entryTimeToLive
(Comma-separated int/String pair(s))
Entry time to live consisting for each region of the time in seconds
followed by an optional expiration action.
|
static Long |
evictionAttributes
(Comma-separated tuple(s))
Eviction attributes consisting for each region of the algorithm followed by
an ordered set of optional fields that depend on the algorithm.
|
static Long |
initialCapacity
(int(s))
Initial capacity for each region.
|
static Long |
keyConstraint
(String(s))
Class name of key constraint for each region.
|
static Long |
loadFactor
(float(s))
Load factor for each region.
|
static Long |
names
(String(s))
Logical names of the region descriptions.
|
static Long |
poolName
(String(s))
Name of logical pool configuration (and actual pool name) for each region,
as found in
PoolPrms.names. |
static Long |
regionIdleTimeout
(Comma-separated int/String pair(s))
Region idle timeout consisting for each region of the timeout in seconds
followed by an optional expiration action.
|
static Long |
regionName
(String(s))
Actual name for each region.
|
static Long |
regionTimeToLive
(Comma-separated int/String pair(s))
Region time to live consisting for each region of the time in seconds
followed by an optional expiration action.
|
static Long |
statisticsEnabled
(boolean(s))
Statistics enabled for each region.
|
static Long |
valueConstraint
(String(s))
Class name of value constraint for each region.
|
| Constructor and Description |
|---|
ClientRegionPrms() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
dumpKeys, keyForName, nameForKey, setValues, tab, tasktabpublic static final String DEFAULT_REGION_NAME
public static Long names
public static Long cacheListeners
BasePrms.NONE. See cacheListenersSingleton for control over
instance creation.
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
public static Long cacheListenersSingleton
cacheListeners for each region are singletons across
all actual regions created with this description. Defaults to false.public static Long clientRegionShortcut
ClientRegionShortcut
to use for each region. This is a required parameter.public static Long cloningEnabled
public static Long concurrencyLevel
public static Long customEntryIdleTimeout
CustomExpiry. Can be
specified as BasePrms.NONE (default).public static Long customEntryTimeToLive
CustomExpiry. Can be
specified as BasePrms.NONE (default).public static Long diskStoreName
DiskStorePrms.names. Required when
using persistence. Can be specified as BasePrms.NONE (default).public static Long diskSynchronous
diskStoreName is set.public static Long entryIdleTimeout
BasePrms.NONE (no expiration).
Example: To use 30 seconds with destroy in the first region, the defaults
in the second region, 60 seconds with invalidate in the third region, and
no expiration in the fourth region, specify:
30 destroy, default, 60 invalidate, none
public static Long entryTimeToLive
BasePrms.NONE (no expiration).
See entryIdleTimeout for an example.
public static Long evictionAttributes
BasePrms.NONE (no eviction), as can the
object sizer.
If the eviction algorithm is "lruHeapPercentage", also set ResourceManagerPrms.evictionHeapPercentage as needed.
If the eviction action requires overflow to disk, diskStoreName
must also be set.
Valid algorithms and optional fields:
"none"
"lruEntryCount" maximumEntries(int) evictionAction(String)
"lruHeapPercentage" objectSizer(String), must be Serializable evictionAction(String)
"lruMemorySize" maximumMegabytes(int) objectSizer(String), must be Serializable evictionAction(String)
Example: To use entry count eviction on the first region, heap eviction
on the second, memory size eviction on the third, and no eviction on the
fourth, the value might look something like this:
lruEntryCount default overflowToDisk,
lruHeapPercentage default overflowToDisk,
lruMemorySize default mytests.MyClass,
none
public static Long initialCapacity
public static Long keyConstraint
BasePrms.NONE.public static Long loadFactor
public static Long poolName
PoolPrms.names. Can be specified as BasePrms.NONE
(default).public static Long regionIdleTimeout
BasePrms.NONE (no expiration).
See entryIdleTimeout for an example.
public static Long regionName
DEFAULT_REGION_NAME.public static Long regionTimeToLive
BasePrms.NONE (no expiration).
See entryIdleTimeout for an example.
public static Long statisticsEnabled
public static Long valueConstraint
BasePrms.NONE.public static void main(String[] args)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.