public class VMotionTrigger extends Object
How to run:
1. Compile the code. You can use compile-tests target.
2. cd to build-dir/tests/classes
3. Set classpath to include current directory, {checkout-dir}/tests/lib/vijava5b20110825.jar and {checkout-dir}/tests/lib/dom4j-1.6.1.jar
4. Create input file with valid data. Format is specified below.
5. Run "java vsphere.vijava.VMotionTrigger {input-file} [{log_file}] [CONFIG|WARNING|INFO|DEBUG]"
Format of the input file required by this application: *
A line starting with # is treated as a comment line. Blank lines are not allowed.
# First non-comment line:
N # Number of VMs participating in vMotion.
# Second non-comment line:
vmname1 hostname1 hostname2 # vmname1 will be moved between hostname1 and hostname2.
# (N+1)th non-comment line:
vmnameN hostnameX hostnameY hostnameZ
# Next non-comment line:
number # Interval between two consecutive vMotions. Use "default" for default value of 360 seconds.
# Next non-comment line:
number # Concurrency of vMotions, 1 <= concurrency <= max(3, N). Use "default" for default value of 1, meaning only one vMotion will be active at any time.
# Next non-comment line:
number # Duration in minutes the script would continue running for. Once this time is reached, the script would self-terminate. Default is 60.
| Modifier and Type | Method and Description |
|---|---|
static VMotionTrigger |
getVMotionTrigger() |
static void |
log(int level,
String s) |
static void |
log(int level,
String s,
Throwable t) |
static void |
log(String s) |
static void |
main(String[] args) |
public static VMotionTrigger getVMotionTrigger() throws RemoteException, MalformedURLException
RemoteExceptionMalformedURLExceptionpublic static void main(String[] args)
public static void log(String s)
public static void log(int level,
String s)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.