com.xensource.xenapi
public class PVSSite extends XenAPIObject
| Modifier and Type | Class and Description |
|---|---|
static class |
PVSSite.Record
Represents all the fields in a PVSSite
|
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
ref
The XenAPI reference (OpaqueRef) to this object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
If obj is a PVSSite, compares XenAPI references for equality.
|
void |
forget(Connection c)
Remove a site's meta data
First published in XenServer 7.1.
|
Task |
forgetAsync(Connection c)
Remove a site's meta data
First published in XenServer 7.1.
|
static java.util.Set<PVSSite> |
getAll(Connection c)
Return a list of all the PVS_sites known to the system.
|
static java.util.Map<PVSSite,PVSSite.Record> |
getAllRecords(Connection c)
Return a map of PVS_site references to PVS_site records for all PVS_sites known to the system.
|
static java.util.Set<PVSSite> |
getByNameLabel(Connection c,
java.lang.String label)
Get all the PVS_site instances with the given label.
|
static PVSSite |
getByUuid(Connection c,
java.lang.String uuid)
Get a reference to the PVS_site instance with the specified UUID.
|
java.util.Set<PVSCacheStorage> |
getCacheStorage(Connection c)
Get the cache_storage field of the given PVS_site.
|
java.lang.String |
getNameDescription(Connection c)
Get the name/description field of the given PVS_site.
|
java.lang.String |
getNameLabel(Connection c)
Get the name/label field of the given PVS_site.
|
java.util.Set<PVSProxy> |
getProxies(Connection c)
Get the proxies field of the given PVS_site.
|
java.lang.String |
getPVSUuid(Connection c)
Get the PVS_uuid field of the given PVS_site.
|
PVSSite.Record |
getRecord(Connection c)
Get a record containing the current state of the given PVS_site.
|
java.util.Set<PVSServer> |
getServers(Connection c)
Get the servers field of the given PVS_site.
|
java.lang.String |
getUuid(Connection c)
Get the uuid field of the given PVS_site.
|
int |
hashCode() |
static PVSSite |
introduce(Connection c,
java.lang.String nameLabel,
java.lang.String nameDescription,
java.lang.String PVSUuid)
Introduce new PVS site
First published in XenServer 7.1.
|
static Task |
introduceAsync(Connection c,
java.lang.String nameLabel,
java.lang.String nameDescription,
java.lang.String PVSUuid)
Introduce new PVS site
First published in XenServer 7.1.
|
void |
setNameDescription(Connection c,
java.lang.String description)
Set the name/description field of the given PVS_site.
|
void |
setNameLabel(Connection c,
java.lang.String label)
Set the name/label field of the given PVS_site.
|
void |
setPVSUuid(Connection c,
java.lang.String value)
Update the PVS UUID of the PVS site
First published in XenServer 7.1.
|
Task |
setPVSUuidAsync(Connection c,
java.lang.String value)
Update the PVS UUID of the PVS site
First published in XenServer 7.1.
|
java.lang.String |
toWireString() |
isNullprotected final java.lang.String ref
public java.lang.String toWireString()
toWireString in class XenAPIObjectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic PVSSite.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static PVSSite getByUuid(Connection c, java.lang.String uuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid - UUID of object to returnTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static java.util.Set<PVSSite> getByNameLabel(Connection c, java.lang.String label) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
label - label of object to returnTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.String getUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.String getNameLabel(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.String getNameDescription(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.String getPVSUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.util.Set<PVSCacheStorage> getCacheStorage(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.util.Set<PVSServer> getServers(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.util.Set<PVSProxy> getProxies(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void setNameLabel(Connection c, java.lang.String label) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
label - New value to setTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void setNameDescription(Connection c, java.lang.String description) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
description - New value to setTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Task introduceAsync(Connection c, java.lang.String nameLabel, java.lang.String nameDescription, java.lang.String PVSUuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
nameLabel - name of the PVS sitenameDescription - description of the PVS sitePVSUuid - unique identifier of the PVS siteTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static PVSSite introduce(Connection c, java.lang.String nameLabel, java.lang.String nameDescription, java.lang.String PVSUuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
nameLabel - name of the PVS sitenameDescription - description of the PVS sitePVSUuid - unique identifier of the PVS siteTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task forgetAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.PvsSiteContainsRunningProxies, Types.PvsSiteContainsServers
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.PvsSiteContainsRunningProxiesTypes.PvsSiteContainsServerspublic void forget(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.PvsSiteContainsRunningProxies, Types.PvsSiteContainsServers
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.PvsSiteContainsRunningProxiesTypes.PvsSiteContainsServerspublic Task setPVSUuidAsync(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value - PVS UUID to be usedTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void setPVSUuid(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value - PVS UUID to be usedTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static java.util.Set<PVSSite> getAll(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static java.util.Map<PVSSite,PVSSite.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcException