com.xensource.xenapi
public class PVSCacheStorage extends XenAPIObject
Modifier and Type | Class and Description |
---|---|
static class |
PVSCacheStorage.Record
Represents all the fields in a PVSCacheStorage
|
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 PVSCacheStorage |
create(Connection c,
PVSCacheStorage.Record record)
Create a new PVS_cache_storage instance, and return its handle.
|
static Task |
createAsync(Connection c,
PVSCacheStorage.Record record)
Create a new PVS_cache_storage instance, and return its handle.
|
void |
destroy(Connection c)
Destroy the specified PVS_cache_storage instance.
|
Task |
destroyAsync(Connection c)
Destroy the specified PVS_cache_storage instance.
|
boolean |
equals(java.lang.Object obj)
If obj is a PVSCacheStorage, compares XenAPI references for equality.
|
static java.util.Set<PVSCacheStorage> |
getAll(Connection c)
Return a list of all the PVS_cache_storages known to the system.
|
static java.util.Map<PVSCacheStorage,PVSCacheStorage.Record> |
getAllRecords(Connection c)
Return a map of PVS_cache_storage references to PVS_cache_storage records for all PVS_cache_storages known to the system.
|
static PVSCacheStorage |
getByUuid(Connection c,
java.lang.String uuid)
Get a reference to the PVS_cache_storage instance with the specified UUID.
|
Host |
getHost(Connection c)
Get the host field of the given PVS_cache_storage.
|
PVSCacheStorage.Record |
getRecord(Connection c)
Get a record containing the current state of the given PVS_cache_storage.
|
PVSSite |
getSite(Connection c)
Get the site field of the given PVS_cache_storage.
|
java.lang.Long |
getSize(Connection c)
Get the size field of the given PVS_cache_storage.
|
SR |
getSR(Connection c)
Get the SR field of the given PVS_cache_storage.
|
java.lang.String |
getUuid(Connection c)
Get the uuid field of the given PVS_cache_storage.
|
VDI |
getVDI(Connection c)
Get the VDI field of the given PVS_cache_storage.
|
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 PVSCacheStorage.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static PVSCacheStorage 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 static Task createAsync(Connection c, PVSCacheStorage.Record record) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
record
- All constructor argumentsTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static PVSCacheStorage create(Connection c, PVSCacheStorage.Record record) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
record
- All constructor argumentsTypes.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 java.lang.String getUuid(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 SR getSR(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 java.lang.Long getSize(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public VDI getVDI(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static java.util.Set<PVSCacheStorage> 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<PVSCacheStorage,PVSCacheStorage.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException