|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.redhat.vmtruckloader.vmware.VMWareMachineService
public class VMWareMachineService
VMWare implementation of the MachineService responsible for Machine
related semantics (list, start, stop, etc.).
| Constructor Summary | |
|---|---|
VMWareMachineService()
|
|
| Method Summary | |
|---|---|
MachineSpecification |
cloneMachine(String sourceMachineName,
MachineSpecification spec)
Clones the source machine to the target machine. |
void |
deleteMachine(String machineName)
Stops the machine with the given name. |
void |
deploy(String netName,
String vmName)
Move a VM to the appropriate VLAN |
void |
editMachine(MachineSpecification machineCreate)
|
Collection<com.vmware.vim25.mo.Task> |
getJobs()
Returns currently running jobs. |
com.vmware.vim25.mo.VirtualMachine |
getMachine(String machineName)
Retrieves the Machine information of the given machine. |
Collection<com.vmware.vim25.mo.VirtualMachine> |
getMachines()
Retrieves the Machines. |
void |
setConnectionData(String username,
String password,
URL vCenterUrl)
Allow to pass to the instance the credential information for the backend system. |
void |
startMachine(String machineName)
Starts the machine with the given name. |
void |
stopMachine(String machineName)
Stops the machine with the given name. |
void |
stopMachine(String machineName,
boolean async)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VMWareMachineService()
| Method Detail |
|---|
public void setConnectionData(String username,
String password,
URL vCenterUrl)
MachineServiceAllow to pass to the instance the credential information for the backend system.
setConnectionData in interface MachineServicepublic Collection<com.vmware.vim25.mo.VirtualMachine> getMachines()
MachineServiceMachines.
getMachines in interface MachineServiceCollection containing machines.public com.vmware.vim25.mo.VirtualMachine getMachine(String machineName)
MachineServiceMachine information of the given machine.
getMachine in interface MachineServicemachineName - the name of the machine.
Machine information.public void startMachine(String machineName)
MachineService
startMachine in interface MachineServicemachineName - the name of the machine that needs to be started.public void stopMachine(String machineName)
MachineService
stopMachine in interface MachineServicemachineName - the name of the machine that needs to be stopped.
public void stopMachine(String machineName,
boolean async)
public void deleteMachine(String machineName)
MachineService
deleteMachine in interface MachineServicemachineName - the name of the machine that needs to be stopped.
public MachineSpecification cloneMachine(String sourceMachineName,
MachineSpecification spec)
MachineService
cloneMachine in interface MachineServicepublic Collection<com.vmware.vim25.mo.Task> getJobs()
MachineService
getJobs in interface MachineServiceCollection of Jobs.
public void deploy(String netName,
String vmName)
MachineService
deploy in interface MachineServicepublic void editMachine(MachineSpecification machineCreate)
editMachine in interface MachineService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||