public class VmPrms extends BasePrms
VmDescription.
The number of instances is gated by names. The remaining parameters
have the indicated default values. If fewer non-default values than names
are given for these parameters, the remaining instances will use the last
value in the list. See $JTESTS/hydra/hydra.txt for more details.
| Modifier and Type | Field and Description |
|---|---|
static String |
CLIENT |
static String |
DEFAULT_ARGS |
static String |
DEFAULT_HITACHI_ARGS |
static String |
DEFAULT_SUN_4_ARGS |
static String |
DEFAULT_SUN_5_ARGS |
static Long |
extraClassPaths
(String(s) or List of String(s))
Extra classpaths.
|
static Long |
extraLibPaths
(String(s) or List of String(s))
Extra library paths.
|
static Long |
extraVMArgs
Comma-separated list(s) of String(s))
Additional Java command line options and system properties to use,
together with generic and vendor-specific defaults added by hydra,
when starting VMs from this description.
|
static Long |
extraVMArgsApple
(String(s) or List of String(s))
Apple-specific JVM command-line options.
|
static Long |
extraVMArgsHitachi
(String(s) or List of String(s))
Hitachi-specific JVM command-line options.
|
static Long |
extraVMArgsIBM
(String(s) or List of String(s))
IBM-specific JVM command-line options.
|
static Long |
extraVMArgsJRockit
(String(s) or List of String(s))
JRockit-specific JVM command-line options.
|
static Long |
extraVMArgsSUN
(String(s) or List of String(s))
SUN-specific JVM command-line options.
|
static Long |
hostNames
(String(s))
Logical names of the host descriptions to use to create VMs.
|
static Long |
names
(String(s))
Logical names of the VM descriptions.
|
static String |
SERVER |
static String |
SERVER64 |
static Long |
type
(String(s))
Type of VM to use, "client" or "server" or "d64".
|
| Constructor and Description |
|---|
VmPrms() |
| Modifier and Type | Method and Description |
|---|---|
static String |
defaultType()
For internal use only.
|
static String |
getExtraVMArgs(int i,
String vendor,
String type)
Returns the VM arguments for the logical VM at the given index
with the specified vendor and type, consisting of:
1) hydra-added generic defaults, then
2) hydra-added vendor-specific defaults, then
3) user-specified generic values from
extraVMArgs, then
4) user-specified vendor-specific values from vendor-specific variants
of extraVMArgs, then
5) if {Prms#useIPv6} is true, turn on Prms.USE_IPV6_PROPERTY
6) if {Prms#disableCreateBucketRandomness} is true, turn on {Prms#DISABLE_CREATE_BUCKET_RANDOMNESS_PROPERTY} |
static String |
getType(int i,
String vendor) |
static void |
main(String[] args) |
dumpKeys, keyForName, nameForKey, setValues, tab, tasktabpublic static Long names
public static Long hostNames
names
are defined. See the include files in $JTESTS/hydraconfig for sample
configurations.HostPrms.names,
HostDescriptionpublic static Long type
public static final String CLIENT
public static final String SERVER
public static final String SERVER64
public static Long extraClassPaths
HostPrms.testDirs for the target host O/S, and
lib/gemfire.jar from the corresponding entry in
HostPrms.gemfireHomes, if it is defined. The extra
classpaths, if any, are prepended to the defaults. All occurrences of
$JTESTS and $GEMFIRE in a path are expanded relative to -DJTESTS and
-Dgemfire.home on the target host.
Can be specified as BasePrms.NONE.public static Long extraLibPaths
HostPrms.gemfireHomes, if it is defined, otherwise
it is null. The extra library paths, if any, are prepended to the
defaults. All occurrences of $JTESTS and $GEMFIRE in a path are expanded
relative to -DJTESTS and -Dgemfire.home on the target host.public static Long extraVMArgs
Can be specified as
For example, to start VMs of type
This parameter should be used only for arguments supported by all
GemFire-supported VM types. See
See BasePrms.NONE. Defaults to null.
Arguments can be added to an existing configuration using +=.
Double quotes must be used for arguments containing =.
vm1 with 512m max heap
and system property value set to 42, and VMs
of type vm2 with 1024m max heap:
hydra.VmPrms-names = vm1 vm2;
hydra.VmPrms-extraVMArgs = -Xmx512m "-Dvalue=42", -Xmx1024m;
Note the comma separating arguments for the different logical VM types.
extraVMArgsHitachi, extraVMArgsIBM, extraVMArgsJRockit, extraVMArgsApple,
and extraVMArgsSUN for configuring additional vendor-specific arguments.
HostPrms.javaVendors for how to configure the VM
vendor. See type for how to configure the VM type.
public static Long extraVMArgsHitachi
HostPrms.javaVendors are HostPrms.HITACHI.
Can be specified as BasePrms.NONE. Defaults to null.public static Long extraVMArgsIBM
HostPrms.javaVendors are HostPrms.IBM.
Can be specified as BasePrms.NONE. Defaults to null.public static Long extraVMArgsJRockit
HostPrms.javaVendors are HostPrms.JROCKIT.
Can be specified as BasePrms.NONE. Defaults to null.public static Long extraVMArgsApple
HostPrms.javaVendors are HostPrms.APPLE.
Can be specified as BasePrms.NONE. Defaults to null.public static Long extraVMArgsSUN
HostPrms.javaVendors are HostPrms.SUN.
Can be specified as BasePrms.NONE. Defaults to null.public static final String DEFAULT_ARGS
public static final String DEFAULT_SUN_4_ARGS
public static final String DEFAULT_SUN_5_ARGS
public static final String DEFAULT_HITACHI_ARGS
public static String defaultType()
public static String getExtraVMArgs(int i, String vendor, String type)
extraVMArgs, then
4) user-specified vendor-specific values from vendor-specific variants
of extraVMArgs, then
5) if {Prms#useIPv6} is true, turn on Prms.USE_IPV6_PROPERTY
6) if {Prms#disableCreateBucketRandomness} is true, turn on {Prms#DISABLE_CREATE_BUCKET_RANDOMNESS_PROPERTY}public static void main(String[] args)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.