|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.jasmine.vmm.agent.driver.xen.XenSSH
public class XenSSH
The XenSSH class gathers static methods wrapping SSH remote invocation to shell scripts that must be installed on Xen backend hosts.
| Constructor Summary | |
|---|---|
XenSSH()
|
|
| Method Summary | |
|---|---|
static RemoteExec.Result |
createVM(XenHost host,
java.lang.String vmName,
org.ow2.jasmine.vmm.api.VMConfigSpec vmSpec,
java.lang.String templateFileName)
Creates a new VM |
static RemoteExec.Result |
destroyVM(XenHost host,
java.lang.String vmName)
Destroys a VM |
static RemoteExec.Result |
migrateVM(XenHost sourceHost,
java.lang.String vmName,
java.lang.String targetHostName)
Migrates a VM |
static RemoteExec.Result |
postMigrateVM(XenHost sourceHost,
java.lang.String vmName,
java.lang.String targetHostName)
Performs management operations after a successful VM migration |
static RemoteExec.Result |
resumeVM(XenHost host,
java.lang.String vmName)
Resumes a suspended VM |
static RemoteExec.Result |
shutdownVM(XenHost host,
java.lang.String vmName)
Shutdowns a VM |
static RemoteExec.Result |
startVM(XenHost host,
java.lang.String vmName)
Starts a stopped VM |
static RemoteExec.Result |
suspendVM(XenHost host,
java.lang.String vmName)
Suspends a VM |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XenSSH()
| Method Detail |
|---|
public static RemoteExec.Result createVM(XenHost host,
java.lang.String vmName,
org.ow2.jasmine.vmm.api.VMConfigSpec vmSpec,
java.lang.String templateFileName)
throws RemoteExec.SshException
host - target hostvmName - VM labelvmSpec - VM parameterstemplateFileName - absolute path of the template image
RemoteExec.SshException - raised if the SSH connection cannot be
established
public static RemoteExec.Result suspendVM(XenHost host,
java.lang.String vmName)
throws RemoteExec.SshException
host - host containing the VMvmName - label of the VM to suspend
RemoteExec.SshException - raised if the SSH connection cannot be
established
public static RemoteExec.Result resumeVM(XenHost host,
java.lang.String vmName)
throws RemoteExec.SshException
host - host containing the VMvmName - label of the VM to resume
RemoteExec.SshException - raised if the SSH connection cannot be
established
public static RemoteExec.Result startVM(XenHost host,
java.lang.String vmName)
throws RemoteExec.SshException
host - host containing the VMvmName - label of the VM to start
RemoteExec.SshException - raised if the SSH connection cannot be
established
public static RemoteExec.Result shutdownVM(XenHost host,
java.lang.String vmName)
throws RemoteExec.SshException
host - host containing the VMvmName - label of the VM to shutdown
RemoteExec.SshException - raised if the SSH connection cannot be
established
public static RemoteExec.Result destroyVM(XenHost host,
java.lang.String vmName)
throws RemoteExec.SshException
host - host containing the VMvmName - label of the VM to destroy
RemoteExec.SshException - raised if the SSH connection cannot be
established
public static RemoteExec.Result migrateVM(XenHost sourceHost,
java.lang.String vmName,
java.lang.String targetHostName)
throws RemoteExec.SshException
sourceHost - host containing the VM to migratevmName - label of the VM to migratetargetHostName - host to which the VM will migrate
RemoteExec.SshException - raised if the SSH connection cannot be
established
public static RemoteExec.Result postMigrateVM(XenHost sourceHost,
java.lang.String vmName,
java.lang.String targetHostName)
throws RemoteExec.SshException
sourceHost - host containing the VM which has migratedvmName - label of the migrated VMtargetHostName - host which has received the migrated VM
RemoteExec.SshException - raised if the SSH connection cannot be
established
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||