|
||||||||||
| 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(org.ow2.jasmine.jadort.api.entities.topology.VMBean vm)
|
|
| Method Summary | |
|---|---|
protected void |
connectViaJMX()
Connects via JMX. |
void |
deployImageOnVM(java.lang.String copyVM,
java.lang.String newVMName,
java.lang.String vmImageUUID)
Creates the VM with the given name and deploys the given image on it. |
void |
destroyVM(java.lang.String vmName)
Destroys a VM host. |
java.lang.String |
getFullVMName(java.lang.String vmName)
Gets the full VM name of a RUNNING VM. |
protected javax.management.ObjectName |
getObjectNameForVMHost(java.lang.String vmName)
Gets the ObjectName for a given VM host name. |
java.util.List<org.ow2.jasmine.jadort.api.entities.deployment.VMImageBean> |
getVMImages()
Gets the list of VM images on the current host's image repository. |
org.ow2.jasmine.vmm.api.VirtualMachineMXBean.PowerState |
getVMState(java.lang.String vmName)
Gets the state of a VM host. |
void |
startVM(java.lang.String vmName)
Sends the "start" signal to a VM host. |
void |
stopVM(java.lang.String vmName)
Sends the "stop" signal to a VM host. |
void |
waitForVMState(java.lang.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(org.ow2.jasmine.jadort.api.entities.topology.VMBean vm)
| Method Detail |
|---|
protected void connectViaJMX()
throws java.lang.Exception
AbstractJMXActionAbstractJMXAction.establishJMXConnection(JMXServiceURL, Map) at
some point.
connectViaJMX in class AbstractJMXActionjava.lang.Exception - If any exception occurs.
protected javax.management.ObjectName getObjectNameForVMHost(java.lang.String vmName)
throws java.lang.Exception
java.lang.Exception
public java.lang.String getFullVMName(java.lang.String vmName)
throws java.lang.Exception
VMMAction
getFullVMName in class VMMActionvmName - Name of the VM host to get the full VM name for.
java.lang.Exception - If any exception occurs.
public void startVM(java.lang.String vmName)
throws java.lang.Exception
VMMAction
startVM in class VMMActionvmName - Name of the VM host to start.
java.lang.Exception - If any exception occurs.
public void stopVM(java.lang.String vmName)
throws java.lang.Exception
VMMAction
stopVM in class VMMActionvmName - Name of the VM host to stop.
java.lang.Exception - If any exception occurs.
public org.ow2.jasmine.vmm.api.VirtualMachineMXBean.PowerState getVMState(java.lang.String vmName)
throws java.lang.Exception
VMMAction
getVMState in class VMMActionvmName - Name of the VM host to get the state of.
java.lang.Exception - If any exception occurs.
public void waitForVMState(java.lang.String vmName,
org.ow2.jasmine.vmm.api.VirtualMachineMXBean.PowerState state,
long timeout)
throws java.lang.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.
java.lang.Exception - If any exception occurs.
public void deployImageOnVM(java.lang.String copyVM,
java.lang.String newVMName,
java.lang.String vmImageUUID)
throws java.lang.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.
java.lang.Exception - If any exception occurs.
public void destroyVM(java.lang.String vmName)
throws java.lang.Exception
VMMAction
destroyVM in class VMMActionvmName - Name of the VM host to destroy.
java.lang.Exception - If any exception occurs.
public java.util.List<org.ow2.jasmine.jadort.api.entities.deployment.VMImageBean> getVMImages()
throws java.lang.Exception
VMMAction
getVMImages in class VMMActionjava.lang.Exception - If any exception occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||