com.xensource.xenapi
public class PVSProxy extends XenAPIObject
Modifier and Type | Class and Description |
---|---|
static class |
PVSProxy.Record
Represents all the fields in a PVSProxy
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
ref
The XenAPI reference (OpaqueRef) to this object.
|
Modifier and Type | Method and Description |
---|---|
static PVSProxy |
create(Connection c,
PVSSite site,
VIF VIF)
Configure a VM/VIF to use a PVS proxy
Experimental.
|
static Task |
createAsync(Connection c,
PVSSite site,
VIF VIF)
Configure a VM/VIF to use a PVS proxy
Experimental.
|
void |
destroy(Connection c)
remove (or switch off) a PVS proxy for this VM
Experimental.
|
Task |
destroyAsync(Connection c)
remove (or switch off) a PVS proxy for this VM
Experimental.
|
boolean |
equals(java.lang.Object obj)
If obj is a PVSProxy, compares XenAPI references for equality.
|
static java.util.Set<PVSProxy> |
getAll(Connection c)
Return a list of all the PVS_proxys known to the system.
|
static java.util.Map<PVSProxy,PVSProxy.Record> |
getAllRecords(Connection c)
Return a map of PVS_proxy references to PVS_proxy records for all PVS_proxys known to the system.
|
static PVSProxy |
getByUuid(Connection c,
java.lang.String uuid)
Get a reference to the PVS_proxy instance with the specified UUID.
|
java.lang.Boolean |
getCurrentlyAttached(Connection c)
Get the currently_attached field of the given PVS_proxy.
|
PVSProxy.Record |
getRecord(Connection c)
Get a record containing the current state of the given PVS_proxy.
|
PVSSite |
getSite(Connection c)
Get the site field of the given PVS_proxy.
|
Types.PvsProxyStatus |
getStatus(Connection c)
Get the status field of the given PVS_proxy.
|
java.lang.String |
getUuid(Connection c)
Get the uuid field of the given PVS_proxy.
|
VIF |
getVIF(Connection c)
Get the VIF field of the given PVS_proxy.
|
int |
hashCode() |
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 PVSProxy.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static PVSProxy 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 PVSSite getSite(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public VIF getVIF(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Boolean getCurrentlyAttached(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Types.PvsProxyStatus getStatus(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Task createAsync(Connection c, PVSSite site, VIF VIF) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
site
- PVS site that we proxy forVIF
- VIF for the VM that needs to be proxiedTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static PVSProxy create(Connection c, PVSSite site, VIF VIF) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
site
- PVS site that we proxy forVIF
- VIF for the VM that needs to be proxiedTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task destroyAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void destroy(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static java.util.Set<PVSProxy> 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<PVSProxy,PVSProxy.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException