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 java.lang.String |
CLIENT |
static java.lang.String |
DEFAULT_ARGS |
static java.lang.String |
DEFAULT_HITACHI_ARGS |
static java.lang.String |
DEFAULT_SUN_4_ARGS |
static java.lang.String |
DEFAULT_SUN_5_ARGS |
static java.lang.Long |
extraClassPaths
(String(s) or List of String(s))
Extra classpaths.
|
static java.lang.Long |
extraLibPaths
(String(s) or List of String(s))
Extra library paths.
|
static java.lang.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 java.lang.Long |
extraVMArgsApple
(String(s) or List of String(s))
Apple-specific JVM command-line options.
|
static java.lang.Long |
extraVMArgsHitachi
(String(s) or List of String(s))
Hitachi-specific JVM command-line options.
|
static java.lang.Long |
extraVMArgsIBM
(String(s) or List of String(s))
IBM-specific JVM command-line options.
|
static java.lang.Long |
extraVMArgsJRockit
(String(s) or List of String(s))
JRockit-specific JVM command-line options.
|
static java.lang.Long |
extraVMArgsSUN
(String(s) or List of String(s))
SUN-specific JVM command-line options.
|
static java.lang.Long |
hostNames
(String(s))
Logical names of the host descriptions to use to create VMs.
|
static java.lang.Long |
names
(String(s))
Logical names of the VM descriptions.
|
static java.lang.String |
SERVER |
static java.lang.String |
SERVER64 |
static java.lang.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 java.lang.String |
defaultType()
For internal use only.
|
static java.lang.String |
getExtraVMArgs(int i,
java.lang.String vendor,
java.lang.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 java.lang.String |
getType(int i,
java.lang.String vendor) |
static void |
main(java.lang.String[] args) |
dumpKeys, keyForName, nameForKey, setValues, tab, tasktabpublic static java.lang.Long names
public static java.lang.Long hostNames
names
are defined. See the include files in $JTESTS/hydraconfig for sample
configurations.HostPrms.names,
HostDescriptionpublic static java.lang.Long type
public static final java.lang.String CLIENT
public static final java.lang.String SERVER
public static final java.lang.String SERVER64
public static java.lang.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 java.lang.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 java.lang.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 java.lang.Long extraVMArgsHitachi
HostPrms.javaVendors are HostPrms.HITACHI.
Can be specified as BasePrms.NONE. Defaults to null.public static java.lang.Long extraVMArgsIBM
HostPrms.javaVendors are HostPrms.IBM.
Can be specified as BasePrms.NONE. Defaults to null.public static java.lang.Long extraVMArgsJRockit
HostPrms.javaVendors are HostPrms.JROCKIT.
Can be specified as BasePrms.NONE. Defaults to null.public static java.lang.Long extraVMArgsApple
HostPrms.javaVendors are HostPrms.APPLE.
Can be specified as BasePrms.NONE. Defaults to null.public static java.lang.Long extraVMArgsSUN
HostPrms.javaVendors are HostPrms.SUN.
Can be specified as BasePrms.NONE. Defaults to null.public static final java.lang.String DEFAULT_ARGS
public static final java.lang.String DEFAULT_SUN_4_ARGS
public static final java.lang.String DEFAULT_SUN_5_ARGS
public static final java.lang.String DEFAULT_HITACHI_ARGS
public static java.lang.String getType(int i,
java.lang.String vendor)
public static java.lang.String defaultType()
public static java.lang.String getExtraVMArgs(int i,
java.lang.String vendor,
java.lang.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(java.lang.String[] args)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.