|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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)
MachineService
Allow to pass to the instance the credential information for the backend system.
setConnectionData
in interface MachineService
public Collection<com.vmware.vim25.mo.VirtualMachine> getMachines()
MachineService
Machines
.
getMachines
in interface MachineService
Collection
containing machines.public com.vmware.vim25.mo.VirtualMachine getMachine(String machineName)
MachineService
Machine
information of the given machine.
getMachine
in interface MachineService
machineName
- the name of the machine.
Machine
information.public void startMachine(String machineName)
MachineService
startMachine
in interface MachineService
machineName
- the name of the machine that needs to be started.public void stopMachine(String machineName)
MachineService
stopMachine
in interface MachineService
machineName
- 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 MachineService
machineName
- the name of the machine that needs to be stopped.public MachineSpecification cloneMachine(String sourceMachineName, MachineSpecification spec)
MachineService
cloneMachine
in interface MachineService
public Collection<com.vmware.vim25.mo.Task> getJobs()
MachineService
getJobs
in interface MachineService
Collection
of Jobs
.public void deploy(String netName, String vmName)
MachineService
deploy
in interface MachineService
public void editMachine(MachineSpecification machineCreate)
editMachine
in interface MachineService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |