|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xensource.xenapi.VM
public class VM
A virtual machine (or 'guest').
Nested Class Summary | |
---|---|
static class |
VM.Record
Represents all the fields in a VM |
Field Summary | |
---|---|
protected String |
ref
The XenAPI reference to this object. |
Method Summary | |
---|---|
void |
addToHVMBootParams(String key,
String value)
Add the given key-value pair to the HVM/boot_params field of the given VM. |
void |
addToOtherConfig(String key,
String value)
Add the given key-value pair to the other_config field of the given VM. |
void |
addToPlatform(String key,
String value)
Add the given key-value pair to the platform field of the given VM. |
void |
addToVCPUsParams(String key,
String value)
Add the given key-value pair to the VCPUs/params field of the given VM. |
void |
addToVCPUsParamsLive(String key,
String value)
Add the given key-value pair to VM.VCPUs_params, and apply that value on the running VM |
void |
cleanReboot()
Attempt to cleanly shutdown the specified VM (Note: this may not be supported---e.g. |
void |
cleanShutdown()
Attempt to cleanly shutdown the specified VM. |
VM |
clone(String newName)
Clones the specified VM, making a new VM. |
static VM |
create(VM.Record record)
Create a new VM instance, and return its handle. |
void |
destroy()
Destroy the specified VM. |
com.xensource.xenapi.Types.OnCrashBehaviour |
getActionsAfterCrash()
Get the actions/after_crash field of the given VM. |
com.xensource.xenapi.Types.OnNormalExit |
getActionsAfterReboot()
Get the actions/after_reboot field of the given VM. |
com.xensource.xenapi.Types.OnNormalExit |
getActionsAfterShutdown()
Get the actions/after_shutdown field of the given VM. |
static Set<VM> |
getAll()
Return a list of all the VMs known to the system. |
Set<String> |
getAllowedVBDDevices()
Returns a list of the allowed values that a VBD device field can take |
Set<String> |
getAllowedVIFDevices()
Returns a list of the allowed values that a VIF device field can take |
static Map<VM,VM.Record> |
getAllRecords()
Get all the VM Records at once, in a single XML RPC call |
Boolean |
getAutoPowerOn()
Get the auto_power_on field of the given VM. |
static Set<VM> |
getByNameLabel(String label)
Get all the VM instances with the given label. |
static VM |
getByUuid(String uuid)
Get a reference to the VM instance with the specified UUID. |
Set<Console> |
getConsoles()
Get the consoles field of the given VM. |
Set<Crashdump> |
getCrashDumps()
Get the crash_dumps field of the given VM. |
Long |
getDomid()
Get the domid field of the given VM. |
VMGuestMetrics |
getGuestMetrics()
Get the guest_metrics field of the given VM. |
Map<String,String> |
getHVMBootParams()
Get the HVM/boot_params field of the given VM. |
String |
getHVMBootPolicy()
Get the HVM/boot_policy field of the given VM. |
protected static VM |
getInstFromRef(String ref)
|
Boolean |
getIsATemplate()
Get the is_a_template field of the given VM. |
Boolean |
getIsControlDomain()
Get the is_control_domain field of the given VM. |
Long |
getMemoryDynamicMax()
Get the memory/dynamic_max field of the given VM. |
Long |
getMemoryDynamicMin()
Get the memory/dynamic_min field of the given VM. |
Long |
getMemoryStaticMax()
Get the memory/static_max field of the given VM. |
Long |
getMemoryStaticMin()
Get the memory/static_min field of the given VM. |
VMMetrics |
getMetrics()
Get the metrics field of the given VM. |
String |
getNameDescription()
Get the name/description field of the given VM. |
String |
getNameLabel()
Get the name/label field of the given VM. |
Map<String,String> |
getOtherConfig()
Get the other_config field of the given VM. |
String |
getPCIBus()
Get the PCI_bus field of the given VM. |
Map<String,String> |
getPlatform()
Get the platform field of the given VM. |
com.xensource.xenapi.Types.VmPowerState |
getPowerState()
Get the power_state field of the given VM. |
String |
getPVArgs()
Get the PV/args field of the given VM. |
String |
getPVBootloader()
Get the PV/bootloader field of the given VM. |
String |
getPVBootloaderArgs()
Get the PV/bootloader_args field of the given VM. |
String |
getPVKernel()
Get the PV/kernel field of the given VM. |
String |
getPVRamdisk()
Get the PV/ramdisk field of the given VM. |
VM.Record |
getRecord()
Get a record containing the current state of the given VM. |
Host |
getResidentOn()
Get the resident_on field of the given VM. |
VDI |
getSuspendVDI()
Get the suspend_VDI field of the given VM. |
Long |
getUserVersion()
Get the user_version field of the given VM. |
String |
getUuid()
Get the uuid field of the given VM. |
Set<VBD> |
getVBDs()
Get the VBDs field of the given VM. |
Long |
getVCPUsAtStartup()
Get the VCPUs/at_startup field of the given VM. |
Long |
getVCPUsMax()
Get the VCPUs/max field of the given VM. |
Map<String,String> |
getVCPUsParams()
Get the VCPUs/params field of the given VM. |
Set<VIF> |
getVIFs()
Get the VIFs field of the given VM. |
Set<VTPM> |
getVTPMs()
Get the VTPMs field of the given VM. |
void |
hardReboot()
Stop executing the specified VM without attempting a clean shutdown. |
void |
hardShutdown()
Stop executing the specified VM without attempting a clean shutdown. |
void |
migrate(String dest,
Boolean live,
Map<String,String> options)
Migrate the VM to another host. |
void |
pause()
Pause the specified VM. |
void |
removeFromHVMBootParams(String key)
Remove the given key and its corresponding value from the HVM/boot_params field of the given VM. |
void |
removeFromOtherConfig(String key)
Remove the given key and its corresponding value from the other_config field of the given VM. |
void |
removeFromPlatform(String key)
Remove the given key and its corresponding value from the platform field of the given VM. |
void |
removeFromVCPUsParams(String key)
Remove the given key and its corresponding value from the VCPUs/params field of the given VM. |
void |
resume(Boolean startPaused,
Boolean force)
Awaken the specified VM and resume it. |
void |
sendSysrq(String key)
Send the given key as a sysrq to this VM. |
void |
sendTrigger(String trigger)
Send the named trigger to this VM. |
void |
setActionsAfterCrash(com.xensource.xenapi.Types.OnCrashBehaviour afterCrash)
Set the actions/after_crash field of the given VM. |
void |
setActionsAfterReboot(com.xensource.xenapi.Types.OnNormalExit afterReboot)
Set the actions/after_reboot field of the given VM. |
void |
setActionsAfterShutdown(com.xensource.xenapi.Types.OnNormalExit afterShutdown)
Set the actions/after_shutdown field of the given VM. |
void |
setAutoPowerOn(Boolean autoPowerOn)
Set the auto_power_on field of the given VM. |
void |
setHVMBootParams(Map<String,String> bootParams)
Set the HVM/boot_params field of the given VM. |
void |
setHVMBootPolicy(String bootPolicy)
Set the HVM/boot_policy field of the given VM. |
void |
setIsATemplate(Boolean isATemplate)
Set the is_a_template field of the given VM. |
void |
setMemoryDynamicMax(Long dynamicMax)
Set the memory/dynamic_max field of the given VM. |
void |
setMemoryDynamicMaxLive(Long max)
Set memory_dynamic_max in database and on running VM |
void |
setMemoryDynamicMin(Long dynamicMin)
Set the memory/dynamic_min field of the given VM. |
void |
setMemoryDynamicMinLive(Long min)
Set memory_dynamic_min in database and on running VM |
void |
setMemoryStaticMax(Long staticMax)
Set the memory/static_max field of the given VM. |
void |
setMemoryStaticMin(Long staticMin)
Set the memory/static_min field of the given VM. |
void |
setNameDescription(String description)
Set the name/description field of the given VM. |
void |
setNameLabel(String label)
Set the name/label field of the given VM. |
void |
setOtherConfig(Map<String,String> otherConfig)
Set the other_config field of the given VM. |
void |
setPCIBus(String PCIBus)
Set the PCI_bus field of the given VM. |
void |
setPlatform(Map<String,String> platform)
Set the platform field of the given VM. |
void |
setPVArgs(String args)
Set the PV/args field of the given VM. |
void |
setPVBootloader(String bootloader)
Set the PV/bootloader field of the given VM. |
void |
setPVBootloaderArgs(String bootloaderArgs)
Set the PV/bootloader_args field of the given VM. |
void |
setPVKernel(String kernel)
Set the PV/kernel field of the given VM. |
void |
setPVRamdisk(String ramdisk)
Set the PV/ramdisk field of the given VM. |
void |
setUserVersion(Long userVersion)
Set the user_version field of the given VM. |
void |
setVCPUsAtStartup(Long atStartup)
Set the VCPUs/at_startup field of the given VM. |
void |
setVCPUsMax(Long max)
Set the VCPUs/max field of the given VM. |
void |
setVCPUsNumberLive(Long nvcpu)
Set this VM's VCPUs/at_startup value, and set the same value on the VM, if running |
void |
setVCPUsParams(Map<String,String> params)
Set the VCPUs/params field of the given VM. |
void |
start(Boolean startPaused)
Start the specified VM. |
void |
suspend()
Suspend the specified VM to disk. |
void |
unpause()
Resume the specified VM. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final String ref
Method Detail |
---|
protected static VM getInstFromRef(String ref)
public VM.Record getRecord() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static VM getByUuid(String uuid) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
uuid
- UUID of object to return
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static VM create(VM.Record record) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
record
- All constructor arguments
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void destroy() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Set<VM> getByNameLabel(String label) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
label
- label of object to return
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getUuid() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public com.xensource.xenapi.Types.VmPowerState getPowerState() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getNameLabel() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getNameDescription() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Long getUserVersion() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Boolean getIsATemplate() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Boolean getAutoPowerOn() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public VDI getSuspendVDI() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Host getResidentOn() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Long getMemoryStaticMax() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Long getMemoryDynamicMax() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Long getMemoryDynamicMin() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Long getMemoryStaticMin() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Map<String,String> getVCPUsParams() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Long getVCPUsMax() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Long getVCPUsAtStartup() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public com.xensource.xenapi.Types.OnNormalExit getActionsAfterShutdown() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public com.xensource.xenapi.Types.OnNormalExit getActionsAfterReboot() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public com.xensource.xenapi.Types.OnCrashBehaviour getActionsAfterCrash() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Set<Console> getConsoles() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Set<VIF> getVIFs() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Set<VBD> getVBDs() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Set<Crashdump> getCrashDumps() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Set<VTPM> getVTPMs() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getPVBootloader() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getPVKernel() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getPVRamdisk() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getPVArgs() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getPVBootloaderArgs() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getHVMBootPolicy() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Map<String,String> getHVMBootParams() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Map<String,String> getPlatform() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getPCIBus() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Map<String,String> getOtherConfig() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Long getDomid() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Boolean getIsControlDomain() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public VMMetrics getMetrics() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public VMGuestMetrics getGuestMetrics() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setNameLabel(String label) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
label
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setNameDescription(String description) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
description
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setUserVersion(Long userVersion) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
userVersion
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setIsATemplate(Boolean isATemplate) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
isATemplate
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setAutoPowerOn(Boolean autoPowerOn) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
autoPowerOn
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setMemoryStaticMax(Long staticMax) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
staticMax
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setMemoryDynamicMax(Long dynamicMax) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
dynamicMax
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setMemoryDynamicMin(Long dynamicMin) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
dynamicMin
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setMemoryStaticMin(Long staticMin) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
staticMin
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setVCPUsParams(Map<String,String> params) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
params
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void addToVCPUsParams(String key, String value) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
key
- Key to addvalue
- Value to add
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void removeFromVCPUsParams(String key) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
key
- Key to remove
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setVCPUsMax(Long max) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
max
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setVCPUsAtStartup(Long atStartup) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
atStartup
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setActionsAfterShutdown(com.xensource.xenapi.Types.OnNormalExit afterShutdown) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
afterShutdown
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setActionsAfterReboot(com.xensource.xenapi.Types.OnNormalExit afterReboot) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
afterReboot
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setActionsAfterCrash(com.xensource.xenapi.Types.OnCrashBehaviour afterCrash) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
afterCrash
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setPVBootloader(String bootloader) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
bootloader
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setPVKernel(String kernel) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
kernel
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setPVRamdisk(String ramdisk) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
ramdisk
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setPVArgs(String args) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
args
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setPVBootloaderArgs(String bootloaderArgs) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
bootloaderArgs
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setHVMBootPolicy(String bootPolicy) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
bootPolicy
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setHVMBootParams(Map<String,String> bootParams) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
bootParams
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void addToHVMBootParams(String key, String value) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
key
- Key to addvalue
- Value to add
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void removeFromHVMBootParams(String key) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
key
- Key to remove
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setPlatform(Map<String,String> platform) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
platform
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void addToPlatform(String key, String value) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
key
- Key to addvalue
- Value to add
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void removeFromPlatform(String key) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
key
- Key to remove
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setPCIBus(String PCIBus) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
PCIBus
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setOtherConfig(Map<String,String> otherConfig) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
otherConfig
- New value to set
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void addToOtherConfig(String key, String value) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
key
- Key to addvalue
- Value to add
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void removeFromOtherConfig(String key) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
key
- Key to remove
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public VM clone(String newName) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException, Types.VmBadPowerState, Types.SrFull, Types.OperationNotAllowed
newName
- The name of the cloned VM
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
Types.VmBadPowerState
Types.SrFull
Types.OperationNotAllowed
public void start(Boolean startPaused) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException, Types.VmBadPowerState, Types.VmHvmRequired, Types.VmIsTemplate, Types.VmOtherOperationInProgress, Types.OperationNotAllowed
startPaused
- Instantiate VM in paused state if set to true.
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
Types.VmBadPowerState
Types.VmHvmRequired
Types.VmIsTemplate
Types.VmOtherOperationInProgress
Types.OperationNotAllowed
public void pause() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException, Types.VmBadPowerState, Types.VmOtherOperationInProgress, Types.OperationNotAllowed, Types.VmIsTemplate
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
Types.VmBadPowerState
Types.VmOtherOperationInProgress
Types.OperationNotAllowed
Types.VmIsTemplate
public void unpause() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException, Types.VmBadPowerState, Types.OperationNotAllowed, Types.VmIsTemplate
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
Types.VmBadPowerState
Types.OperationNotAllowed
Types.VmIsTemplate
public void cleanShutdown() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException, Types.VmBadPowerState, Types.VmOtherOperationInProgress, Types.OperationNotAllowed, Types.VmIsTemplate
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
Types.VmBadPowerState
Types.VmOtherOperationInProgress
Types.OperationNotAllowed
Types.VmIsTemplate
public void cleanReboot() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException, Types.VmBadPowerState, Types.VmOtherOperationInProgress, Types.OperationNotAllowed, Types.VmIsTemplate
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
Types.VmBadPowerState
Types.VmOtherOperationInProgress
Types.OperationNotAllowed
Types.VmIsTemplate
public void hardShutdown() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException, Types.VmBadPowerState, Types.VmOtherOperationInProgress, Types.OperationNotAllowed, Types.VmIsTemplate
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
Types.VmBadPowerState
Types.VmOtherOperationInProgress
Types.OperationNotAllowed
Types.VmIsTemplate
public void hardReboot() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException, Types.VmBadPowerState, Types.VmOtherOperationInProgress, Types.OperationNotAllowed, Types.VmIsTemplate
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
Types.VmBadPowerState
Types.VmOtherOperationInProgress
Types.OperationNotAllowed
Types.VmIsTemplate
public void suspend() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException, Types.VmBadPowerState, Types.VmOtherOperationInProgress, Types.OperationNotAllowed, Types.VmIsTemplate
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
Types.VmBadPowerState
Types.VmOtherOperationInProgress
Types.OperationNotAllowed
Types.VmIsTemplate
public void resume(Boolean startPaused, Boolean force) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException, Types.VmBadPowerState, Types.OperationNotAllowed, Types.VmIsTemplate
startPaused
- Resume VM in paused state if set to true.force
- Attempt to force the VM to resume. If this flag is false then the VM may fail pre-resume safety checks (e.g. if the CPU the VM was running on looks substantially different to the current one)
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
Types.VmBadPowerState
Types.OperationNotAllowed
Types.VmIsTemplate
public void setVCPUsNumberLive(Long nvcpu) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
nvcpu
- The number of VCPUs
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void addToVCPUsParamsLive(String key, String value) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
key
- The keyvalue
- The value
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setMemoryDynamicMaxLive(Long max) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
max
- The memory_dynamic_max value
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void setMemoryDynamicMinLive(Long min) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
min
- The memory_dynamic_min value
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public void sendSysrq(String key) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException, Types.VmBadPowerState
key
- The key to send
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
Types.VmBadPowerState
public void sendTrigger(String trigger) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException, Types.VmBadPowerState
trigger
- The trigger to send
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
Types.VmBadPowerState
public void migrate(String dest, Boolean live, Map<String,String> options) throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException, Types.VmBadPowerState
dest
- The destination hostlive
- Live migrationoptions
- Other parameters
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
Types.VmBadPowerState
public Set<String> getAllowedVBDDevices() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Set<String> getAllowedVIFDevices() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Set<VM> getAll() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Map<VM,VM.Record> getAllRecords() throws Types.BadServerResponse, ConnectionHelper.NoConnectionOnThisThreadException, XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |