com.xensource.xenapi
public class PGPU extends XenAPIObject
Modifier and Type | Class and Description |
---|---|
static class |
PGPU.Record
Represents all the fields in a PGPU
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
ref
The XenAPI reference (OpaqueRef) to this object.
|
Modifier and Type | Method and Description |
---|---|
void |
addEnabledVGPUTypes(Connection c,
VGPUType value)
First published in XenServer 6.2 SP1 Tech-Preview.
|
Task |
addEnabledVGPUTypesAsync(Connection c,
VGPUType value)
First published in XenServer 6.2 SP1 Tech-Preview.
|
void |
addToOtherConfig(Connection c,
java.lang.String key,
java.lang.String value)
Add the given key-value pair to the other_config field of the given PGPU.
|
Types.PgpuDom0Access |
disableDom0Access(Connection c)
First published in XenServer 6.5 SP1.
|
Task |
disableDom0AccessAsync(Connection c)
First published in XenServer 6.5 SP1.
|
Types.PgpuDom0Access |
enableDom0Access(Connection c)
First published in XenServer 6.5 SP1.
|
Task |
enableDom0AccessAsync(Connection c)
First published in XenServer 6.5 SP1.
|
boolean |
equals(java.lang.Object obj)
If obj is a PGPU, compares XenAPI references for equality.
|
static java.util.Set<PGPU> |
getAll(Connection c)
Return a list of all the PGPUs known to the system.
|
static java.util.Map<PGPU,PGPU.Record> |
getAllRecords(Connection c)
Return a map of PGPU references to PGPU records for all PGPUs known to the system.
|
static PGPU |
getByUuid(Connection c,
java.lang.String uuid)
Get a reference to the PGPU instance with the specified UUID.
|
Types.PgpuDom0Access |
getDom0Access(Connection c)
Get the dom0_access field of the given PGPU.
|
java.util.Set<VGPUType> |
getEnabledVGPUTypes(Connection c)
Get the enabled_VGPU_types field of the given PGPU.
|
GPUGroup |
getGPUGroup(Connection c)
Get the GPU_group field of the given PGPU.
|
Host |
getHost(Connection c)
Get the host field of the given PGPU.
|
java.lang.Boolean |
getIsSystemDisplayDevice(Connection c)
Get the is_system_display_device field of the given PGPU.
|
java.util.Map<java.lang.String,java.lang.String> |
getOtherConfig(Connection c)
Get the other_config field of the given PGPU.
|
PCI |
getPCI(Connection c)
Get the PCI field of the given PGPU.
|
PGPU.Record |
getRecord(Connection c)
Get a record containing the current state of the given PGPU.
|
java.lang.Long |
getRemainingCapacity(Connection c,
VGPUType vgpuType)
First published in XenServer 6.2 SP1 Tech-Preview.
|
Task |
getRemainingCapacityAsync(Connection c,
VGPUType vgpuType)
First published in XenServer 6.2 SP1 Tech-Preview.
|
java.util.Set<VGPU> |
getResidentVGPUs(Connection c)
Get the resident_VGPUs field of the given PGPU.
|
java.util.Map<VGPUType,java.lang.Long> |
getSupportedVGPUMaxCapacities(Connection c)
Get the supported_VGPU_max_capacities field of the given PGPU.
|
java.util.Set<VGPUType> |
getSupportedVGPUTypes(Connection c)
Get the supported_VGPU_types field of the given PGPU.
|
java.lang.String |
getUuid(Connection c)
Get the uuid field of the given PGPU.
|
int |
hashCode() |
void |
removeEnabledVGPUTypes(Connection c,
VGPUType value)
First published in XenServer 6.2 SP1 Tech-Preview.
|
Task |
removeEnabledVGPUTypesAsync(Connection c,
VGPUType value)
First published in XenServer 6.2 SP1 Tech-Preview.
|
void |
removeFromOtherConfig(Connection c,
java.lang.String key)
Remove the given key and its corresponding value from the other_config field of the given PGPU.
|
void |
setEnabledVGPUTypes(Connection c,
java.util.Set<VGPUType> value)
First published in XenServer 6.2 SP1 Tech-Preview.
|
Task |
setEnabledVGPUTypesAsync(Connection c,
java.util.Set<VGPUType> value)
First published in XenServer 6.2 SP1 Tech-Preview.
|
void |
setGPUGroup(Connection c,
GPUGroup value)
First published in XenServer 6.2 SP1 Tech-Preview.
|
Task |
setGPUGroupAsync(Connection c,
GPUGroup value)
First published in XenServer 6.2 SP1 Tech-Preview.
|
void |
setOtherConfig(Connection c,
java.util.Map<java.lang.String,java.lang.String> otherConfig)
Set the other_config field of the given PGPU.
|
java.lang.String |
toWireString() |
isNull
protected final java.lang.String ref
public java.lang.String toWireString()
toWireString
in class XenAPIObject
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PGPU.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static PGPU getByUuid(Connection c, java.lang.String uuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid
- UUID of object to returnTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.String getUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public PCI getPCI(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public GPUGroup getGPUGroup(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Host getHost(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Map<java.lang.String,java.lang.String> getOtherConfig(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Set<VGPUType> getSupportedVGPUTypes(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Set<VGPUType> getEnabledVGPUTypes(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Set<VGPU> getResidentVGPUs(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.util.Map<VGPUType,java.lang.Long> getSupportedVGPUMaxCapacities(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Types.PgpuDom0Access getDom0Access(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Boolean getIsSystemDisplayDevice(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setOtherConfig(Connection c, java.util.Map<java.lang.String,java.lang.String> otherConfig) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
otherConfig
- New value to setTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void addToOtherConfig(Connection c, java.lang.String key, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
key
- Key to addvalue
- Value to addTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void removeFromOtherConfig(Connection c, java.lang.String key) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
key
- Key to removeTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task addEnabledVGPUTypesAsync(Connection c, VGPUType value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The VGPU type to enableTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void addEnabledVGPUTypes(Connection c, VGPUType value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The VGPU type to enableTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task removeEnabledVGPUTypesAsync(Connection c, VGPUType value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The VGPU type to disableTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void removeEnabledVGPUTypes(Connection c, VGPUType value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The VGPU type to disableTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task setEnabledVGPUTypesAsync(Connection c, java.util.Set<VGPUType> value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The VGPU types to enableTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setEnabledVGPUTypes(Connection c, java.util.Set<VGPUType> value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The VGPU types to enableTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task setGPUGroupAsync(Connection c, GPUGroup value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The group to which the PGPU will be movedTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setGPUGroup(Connection c, GPUGroup value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- The group to which the PGPU will be movedTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task getRemainingCapacityAsync(Connection c, VGPUType vgpuType) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
vgpuType
- The VGPU type for which we want to find the number of VGPUs which can still be started on this PGPUTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Long getRemainingCapacity(Connection c, VGPUType vgpuType) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
vgpuType
- The VGPU type for which we want to find the number of VGPUs which can still be started on this PGPUTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task enableDom0AccessAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Types.PgpuDom0Access enableDom0Access(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task disableDom0AccessAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Types.PgpuDom0Access disableDom0Access(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static java.util.Set<PGPU> getAll(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static java.util.Map<PGPU,PGPU.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException