|
Oracle VM Manager Web Services API Reference Release 2.1.5 E14979-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.ovs.api.VirtualMachineManagementImpl
public class VirtualMachineManagementImpl
VirtualMachineManagement Implementation. To Impl these functions: these functions: pause/unpause/powerOn/powerOff/delete/reboot/suspend/resume/save as template/query Virtual Machine.
| Constructor Summary | |
|---|---|
VirtualMachineManagementImpl() |
|
| Method Summary | |
|---|---|
void |
configureVM(VirtualMachine virtualMachine, VMConfig config)Generically configures the virtual machine parameters like memory, number of cpu cores, name etc. |
void |
createPropertiesFileOnVirtualMachine(java.util.Properties props, VirtualMachine vm, java.lang.String propFileName)Create vm property file for guest configuration |
void |
deleteVM(VirtualMachine virtualMachine)Delete a virtual machine. |
void |
deleteVMByVMId(java.lang.Long vmId)Delete a virtual machine |
java.util.List |
getAllAlertAssociatedWithImg(VirtualMachine vm)Query all alerts associated with a vm. |
java.util.List |
getAllOperatingSystem()Query all available Operating System. |
OperatingSystem[] |
getAllOperatingSystemArray()Query all available Operating System. |
VirtualMachine[] |
getAllVMs(ServerPool serverPool)get vms by serverPoolID |
VirtualMachine[] |
getAllVMs(VirtualServer server)get vms by serverPoolID |
ServerPool |
getAssociatedPool(VirtualMachine virtualMachine)Returns server pool details, where the virtual machine is physically (and logically) stored. |
VirtualServer |
getAssociatedServer(VirtualMachine virtualMachine)Returns virtual server details, currently hosting the virtual machine. |
AlertLog |
getLastAlertAssociatedWithDisk(VirtualDisk disk)Query latest alert associated with a disk. |
AlertLog |
getLastAlertAssociatedWithDisk(VirtualDisk disk, oracle.ovs.biz.log.AlertLevel level)Query latest alert associated with a disk. |
AlertLog |
getLastAlertAssociatedWithImg(VirtualMachine vm)Query latest alert associated with a vm. |
AlertLog |
getLastAlertAssociatedWithImg(VirtualMachine vm, oracle.ovs.biz.log.AlertLevel level)Query latest alert associated with a vm and alertLevel |
java.lang.String |
getRealPath(VirtualMachine vm)Get the absolute path of a virtual machine in the file system. |
VirtualMachine |
getVM(VirtualMachine virtualMachine)Returns an instance of the virtual machine details. |
VirtualMachine |
getVMByName(ServerPool serverPool, java.lang.String name)Returns an instance of the virtual machine details, by its name |
VirtualMachine |
getVMByName(java.lang.String serverPoolName, java.lang.String name)Returns an instance of the virtual machine details, by its name |
java.lang.String |
getVncPassword(VirtualMachine vm)Get vnc password of a virtual machine. |
void |
pauseVM(VirtualMachine virtualMachine)pause vm |
void |
pauseVMByVMId(java.lang.Long vmId)Pause a virtual machine |
void |
powerOffVM(VirtualMachine virtualMachine)Power off a virtual machine |
void |
powerOffVMByVMId(java.lang.Long vmId)Power off a virtual machine |
void |
powerOnVM(VirtualMachine virtualMachine)Power on a virtual machine |
void |
powerOnVMByVMId(java.lang.Long vmId)Power on a virtual machine |
java.util.List |
queryCdrom(VirtualMachine vm)Deprecated. |
CdConfig[] |
queryCdromArray(VirtualMachine vm)Query CDROM of a virutal machine |
VirtualDisk |
queryLocalDiskInfo(VirtualDisk disk)Query virtual disk status |
java.util.List |
queryLocalDisks(VirtualMachine vm)Query local disks of a virtual machine. |
VirtualNetworkCard[] |
queryNetworkInterfaceCardArray(VirtualMachine vm)Query network interface cards of a vm |
java.util.List |
queryNetworkInterfaceCards(VirtualMachine vm)Query network interface cards of a virtual machine. |
java.util.List |
queryPreferredServer(VirtualMachine vm)Query preferred servers of a vm |
VirtualServer[] |
queryPreferredServerArray(java.lang.Long vmId)Query preferred servers of a vm by vmId |
VirtualDisk |
querySharedDiskInfo(VirtualMachine vm, VirtualDisk disk) |
java.util.List |
querySharedDisks(VirtualMachine vm)Query shared disks of a virtual machine. |
SharedVirtualDisk[] |
querySharedVirtualDiskArray(java.lang.Long vmId)Query shared virtual disk of a virtual machine. |
VmMetrics[] |
queryVMMetricArrayByVMIds(long[] vmIds)Query virtual machine metrics array by vm Ids referenced queryVMMetricByVMId(long vmId) |
VmMetrics |
queryVMMetricByVMId(long vmId)Query virtual machine metrics by vm Id Performance metrics only apply to running vm, so if the vm status is not running, the return value will not contain useful info but just an object having vmId. |
VmStatus |
queryVMStatus(VirtualMachine virtualMachine)Query virtual machine status |
VmStatus[] |
queryVMStatusArrayByVMIds(long[] vmIds)Query virtual machine status array by vmIds |
VmStatus |
queryVMStatusByVMId(long vmId)Query virtual machine status by vmId |
void |
rebootVM(VirtualMachine virtualMachine)Reboot a virtual machine |
void |
rebootVMByVMId(java.lang.Long vmId)Reboot a virtual machine |
void |
resumeVM(VirtualMachine virtualMachine)Resume a suspended virtual machine. |
void |
resumeVMByVMId(java.lang.Long vmId)resume a suspended virtual machine |
void |
saveAsTemplate(VirtualMachine vm)Deprecated. |
void |
saveAsTemplate(VirtualMachine vm, java.lang.String templateName)save as template --must set imgId of parameter object |
void |
saveAsTemplateAsync(VirtualMachine vm, java.lang.String templateName)save as template using async call --must set imgId of parameter object |
void |
setVMName(VirtualMachine virtualMachine, java.lang.String val)Sets the virtual machine name. |
void |
suspendVM(VirtualMachine virtualMachine)Suspend a running virtual machine. |
void |
suspendVMByVMId(java.lang.Long vmId)Suspend a running virtual machine. |
void |
unpauseVM(VirtualMachine virtualMachine)unpause vm |
void |
unpauseVMByVMId(java.lang.Long vmId)Unpause a virtual machine |
void |
unregisterVM(VirtualMachine virtualMachine)Unregister a virtual machine. |
void |
unregisterVMByVMId(java.lang.Long vmId)Unregister a virtual machine. |
java.lang.Object |
update(java.lang.Object object)Update information |
void |
uploadVirtualMachine(VirtualMachine vm, oracle.ovs.biz.util.OvmUrl tgtUrl) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VirtualMachineManagementImpl()
| Method Detail |
|---|
public VirtualMachine[] getAllVMs(ServerPool serverPool)
throws oracle.ovs.biz.exception.OVSException
getAllVMs in interface VirtualMachineManagementserverPool -oracle.ovs.biz.exception.OVSException
public VirtualMachine[] getAllVMs(VirtualServer server)
throws oracle.ovs.biz.exception.OVSException
getAllVMs in interface VirtualMachineManagementserver -oracle.ovs.biz.exception.OVSException
public VirtualMachine getVM(VirtualMachine virtualMachine)
throws oracle.ovs.biz.exception.OVSException
getVM in interface VirtualMachineManagementvirtualMachine -oracle.ovs.biz.exception.OVSException
public VirtualServer getAssociatedServer(VirtualMachine virtualMachine)
throws oracle.ovs.biz.exception.OVSException
getAssociatedServer in interface VirtualMachineManagementvirtualMachine -oracle.ovs.biz.exception.OVSException
public ServerPool getAssociatedPool(VirtualMachine virtualMachine)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementgetAssociatedPool in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public void deleteVM(VirtualMachine virtualMachine)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementdeleteVM in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public void deleteVMByVMId(java.lang.Long vmId)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementdeleteVMByVMId in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public void unregisterVM(VirtualMachine virtualMachine)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementunregisterVM in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public void unregisterVMByVMId(java.lang.Long vmId)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementunregisterVMByVMId in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public void powerOnVM(VirtualMachine virtualMachine)
throws oracle.ovs.biz.exception.OVSException
powerOnVM in interface VirtualMachineManagementvirtualMachine -oracle.ovs.biz.exception.OVSException
public void powerOnVMByVMId(java.lang.Long vmId)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementpowerOnVMByVMId in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public void powerOffVM(VirtualMachine virtualMachine)
throws oracle.ovs.biz.exception.OVSException
powerOffVM in interface VirtualMachineManagementvirtualMachine -oracle.ovs.biz.exception.OVSException
public void powerOffVMByVMId(java.lang.Long vmId)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementpowerOffVMByVMId in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public void pauseVM(VirtualMachine virtualMachine)
throws oracle.ovs.biz.exception.OVSException
pauseVM in interface VirtualMachineManagementvirtualMachine -oracle.ovs.biz.exception.OVSException
public void pauseVMByVMId(java.lang.Long vmId)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementpauseVMByVMId in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public void unpauseVM(VirtualMachine virtualMachine)
throws oracle.ovs.biz.exception.OVSException
unpauseVM in interface VirtualMachineManagementvirtualMachine -oracle.ovs.biz.exception.OVSException
public void unpauseVMByVMId(java.lang.Long vmId)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementunpauseVMByVMId in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public void rebootVM(VirtualMachine virtualMachine)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementrebootVM in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public void rebootVMByVMId(java.lang.Long vmId)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementrebootVMByVMId in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public VirtualMachine getVMByName(ServerPool serverPool,
java.lang.String name)
throws oracle.ovs.biz.exception.OVSException
getVMByName in interface VirtualMachineManagementserverPool - nameoracle.ovs.biz.exception.OVSException
public VirtualMachine getVMByName(java.lang.String serverPoolName,
java.lang.String name)
throws oracle.ovs.biz.exception.OVSException
getVMByName in interface VirtualMachineManagementserverPoolName -name -oracle.ovs.biz.exception.OVSException
public VmStatus queryVMStatus(VirtualMachine virtualMachine)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementqueryVMStatus in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public VmStatus queryVMStatusByVMId(long vmId)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementqueryVMStatusByVMId in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public VmStatus[] queryVMStatusArrayByVMIds(long[] vmIds)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementqueryVMStatusArrayByVMIds in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public VmMetrics queryVMMetricByVMId(long vmId)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementqueryVMMetricByVMId in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public VmMetrics[] queryVMMetricArrayByVMIds(long[] vmIds)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementqueryVMMetricArrayByVMIds in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public void suspendVM(VirtualMachine virtualMachine)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementsuspendVM in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public void suspendVMByVMId(java.lang.Long vmId)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementsuspendVMByVMId in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public void resumeVM(VirtualMachine virtualMachine)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementresumeVM in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public void resumeVMByVMId(java.lang.Long vmId)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementresumeVMByVMId in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public VirtualDisk queryLocalDiskInfo(VirtualDisk disk)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementqueryLocalDiskInfo in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public VirtualDisk querySharedDiskInfo(VirtualMachine vm,
VirtualDisk disk)
throws oracle.ovs.biz.exception.OVSException
oracle.ovs.biz.exception.OVSException
public java.util.List getAllOperatingSystem()
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementgetAllOperatingSystem in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public OperatingSystem[] getAllOperatingSystemArray()
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementgetAllOperatingSystemArray in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public java.util.List getAllAlertAssociatedWithImg(VirtualMachine vm)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementgetAllAlertAssociatedWithImg in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public AlertLog getLastAlertAssociatedWithImg(VirtualMachine vm)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementgetLastAlertAssociatedWithImg in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public AlertLog getLastAlertAssociatedWithImg(VirtualMachine vm,
oracle.ovs.biz.log.AlertLevel level)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementgetLastAlertAssociatedWithImg in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public AlertLog getLastAlertAssociatedWithDisk(VirtualDisk disk)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementgetLastAlertAssociatedWithDisk in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public AlertLog getLastAlertAssociatedWithDisk(VirtualDisk disk,
oracle.ovs.biz.log.AlertLevel level)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementgetLastAlertAssociatedWithDisk in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public java.util.List queryLocalDisks(VirtualMachine vm)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementqueryLocalDisks in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public java.util.List querySharedDisks(VirtualMachine vm)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementquerySharedDisks in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public SharedVirtualDisk[] querySharedVirtualDiskArray(java.lang.Long vmId)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementquerySharedVirtualDiskArray in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public java.util.List queryCdrom(VirtualMachine vm)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementqueryCdrom in interface VirtualMachineManagementvm -oracle.ovs.biz.exception.OVSException
public CdConfig[] queryCdromArray(VirtualMachine vm)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementqueryCdromArray in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public java.util.List queryNetworkInterfaceCards(VirtualMachine vm)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementqueryNetworkInterfaceCards in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public VirtualNetworkCard[] queryNetworkInterfaceCardArray(VirtualMachine vm)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementqueryNetworkInterfaceCardArray in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public java.util.List queryPreferredServer(VirtualMachine vm)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementqueryPreferredServer in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public VirtualServer[] queryPreferredServerArray(java.lang.Long vmId)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementqueryPreferredServerArray in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public java.lang.Object update(java.lang.Object object)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementupdate in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public java.lang.String getVncPassword(VirtualMachine vm)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementgetVncPassword in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public java.lang.String getRealPath(VirtualMachine vm)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementgetRealPath in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public void setVMName(VirtualMachine virtualMachine,
java.lang.String val)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementsetVMName in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
public void uploadVirtualMachine(VirtualMachine vm,
oracle.ovs.biz.util.OvmUrl tgtUrl)
throws oracle.ovs.biz.exception.OVSException
oracle.ovs.biz.exception.OVSException
public void saveAsTemplate(VirtualMachine vm)
throws oracle.ovs.biz.exception.OVSException
saveAsTemplate in interface VirtualMachineManagementvm -oracle.ovs.biz.exception.OVSException
public void saveAsTemplateAsync(VirtualMachine vm,
java.lang.String templateName)
throws oracle.ovs.biz.exception.OVSException
saveAsTemplateAsync in interface VirtualMachineManagementvm -templateName - name of new templateoracle.ovs.biz.exception.OVSException
public void saveAsTemplate(VirtualMachine vm,
java.lang.String templateName)
throws oracle.ovs.biz.exception.OVSException
saveAsTemplate in interface VirtualMachineManagementvm -templateName - name of new templateoracle.ovs.biz.exception.OVSException
public void configureVM(VirtualMachine virtualMachine,
VMConfig config)
VirtualMachineManagementconfigureVM in interface VirtualMachineManagement
public void createPropertiesFileOnVirtualMachine(java.util.Properties props,
VirtualMachine vm,
java.lang.String propFileName)
throws oracle.ovs.biz.exception.OVSException
VirtualMachineManagementcreatePropertiesFileOnVirtualMachine in interface VirtualMachineManagementoracle.ovs.biz.exception.OVSException
|
Oracle VM Manager Web Services API Reference Release 2.1.5 E14979-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||