|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.jadort.service.action.AbstractAction
org.ow2.jasmine.jadort.service.action.AbstractJMXAction
org.ow2.jasmine.jadort.service.action.VMMAction
org.ow2.jasmine.jadort.service.action.JasmineVMMAction
public class JasmineVMMAction
Action for the JASMINe VMM Agent.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.ow2.jasmine.jadort.service.action.VMMAction |
|---|
VMMAction.VMState |
| Field Summary |
|---|
| Fields inherited from class org.ow2.jasmine.jadort.service.action.AbstractJMXAction |
|---|
connector, JMX_CHECK_TIMEOUT, JMX_CONNECT_TIMEOUT, mbscnx |
| Constructor Summary | |
|---|---|
JasmineVMMAction(VMBean vm)
|
|
| Method Summary | |
|---|---|
protected void |
connectViaJMX()
Connects via JMX. |
void |
deployImageOnVM(String copyVM,
String newVMName,
String vmImageUUID)
Creates the VM with the given name and deploys the given image on it. |
void |
destroyVM(String vmName)
Destroys a VM host. |
String |
getFullVMName(String vmName)
Gets the full VM name of a RUNNING VM. |
protected ObjectName |
getObjectNameForVMHost(String vmName)
Gets the ObjectName for a given VM host name. |
List<VMImageBean> |
getVMImages()
Gets the list of VM images on the current host's image repository. |
org.ow2.jasmine.vmm.api.VirtualMachineMXBean.PowerState |
getVMState(String vmName)
Gets the state of a VM host. |
void |
startVM(String vmName)
Sends the "start" signal to a VM host. |
void |
stopVM(String vmName)
Sends the "stop" signal to a VM host. |
void |
waitForVMState(String vmName,
org.ow2.jasmine.vmm.api.VirtualMachineMXBean.PowerState state,
long timeout)
Wait for the given VM host to reach a given state. |
| Methods inherited from class org.ow2.jasmine.jadort.service.action.VMMAction |
|---|
getConstructor, getVMMAction, newInstance |
| Methods inherited from class org.ow2.jasmine.jadort.service.action.AbstractJMXAction |
|---|
checkJMXConnection, disconnectJMX, establishJMXConnection |
| Methods inherited from class org.ow2.jasmine.jadort.service.action.AbstractAction |
|---|
appendToLog, flushLog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JasmineVMMAction(VMBean vm)
| Method Detail |
|---|
protected void connectViaJMX()
throws Exception
AbstractJMXActionAbstractJMXAction.establishJMXConnection(JMXServiceURL, Map) at
some point.
connectViaJMX in class AbstractJMXActionException - If any exception occurs.
protected ObjectName getObjectNameForVMHost(String vmName)
throws Exception
Exception
public String getFullVMName(String vmName)
throws Exception
VMMAction
getFullVMName in class VMMActionvmName - Name of the VM host to get the full VM name for.
Exception - If any exception occurs.
public void startVM(String vmName)
throws Exception
VMMAction
startVM in class VMMActionvmName - Name of the VM host to start.
Exception - If any exception occurs.
public void stopVM(String vmName)
throws Exception
VMMAction
stopVM in class VMMActionvmName - Name of the VM host to stop.
Exception - If any exception occurs.
public org.ow2.jasmine.vmm.api.VirtualMachineMXBean.PowerState getVMState(String vmName)
throws Exception
VMMAction
getVMState in class VMMActionvmName - Name of the VM host to get the state of.
Exception - If any exception occurs.
public void waitForVMState(String vmName,
org.ow2.jasmine.vmm.api.VirtualMachineMXBean.PowerState state,
long timeout)
throws Exception
VMMAction
waitForVMState in class VMMActionvmName - Name of the VM host to get the state of.state - State to wait for.timeout - Number of seconds after which to throw.
Exception - If any exception occurs.
public void deployImageOnVM(String copyVM,
String newVMName,
String vmImageUUID)
throws Exception
VMMAction
deployImageOnVM in class VMMActioncopyVM - Name of the VM host to copy properties (disk size, memory,
etc.) from.newVMName - Name of the new VM host to create.vmImageUUID - UUID of the VM image to deploy.
Exception - If any exception occurs.
public void destroyVM(String vmName)
throws Exception
VMMAction
destroyVM in class VMMActionvmName - Name of the VM host to destroy.
Exception - If any exception occurs.
public List<VMImageBean> getVMImages()
throws Exception
VMMAction
getVMImages in class VMMActionException - If any exception occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||