com.xensource.xenapi
public class PVSServer extends XenAPIObject
Modifier and Type | Class and Description |
---|---|
static class |
PVSServer.Record
Represents all the fields in a PVSServer
|
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 PVSServer, compares XenAPI references for equality.
|
void |
forget(Connection c)
forget a PVS server
Experimental.
|
Task |
forgetAsync(Connection c)
forget a PVS server
Experimental.
|
java.util.Set<java.lang.String> |
getAddresses(Connection c)
Get the addresses field of the given PVS_server.
|
static java.util.Set<PVSServer> |
getAll(Connection c)
Return a list of all the PVS_servers known to the system.
|
static java.util.Map<PVSServer,PVSServer.Record> |
getAllRecords(Connection c)
Return a map of PVS_server references to PVS_server records for all PVS_servers known to the system.
|
static PVSServer |
getByUuid(Connection c,
java.lang.String uuid)
Get a reference to the PVS_server instance with the specified UUID.
|
java.lang.Long |
getFirstPort(Connection c)
Get the first_port field of the given PVS_server.
|
java.lang.Long |
getLastPort(Connection c)
Get the last_port field of the given PVS_server.
|
PVSServer.Record |
getRecord(Connection c)
Get a record containing the current state of the given PVS_server.
|
PVSSite |
getSite(Connection c)
Get the site field of the given PVS_server.
|
java.lang.String |
getUuid(Connection c)
Get the uuid field of the given PVS_server.
|
int |
hashCode() |
static PVSServer |
introduce(Connection c,
java.util.Set<java.lang.String> addresses,
java.lang.Long firstPort,
java.lang.Long lastPort,
PVSSite site)
introduce new PVS server
Experimental.
|
static Task |
introduceAsync(Connection c,
java.util.Set<java.lang.String> addresses,
java.lang.Long firstPort,
java.lang.Long lastPort,
PVSSite site)
introduce new PVS server
Experimental.
|
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 PVSServer.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static PVSServer 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 java.util.Set<java.lang.String> getAddresses(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Long getFirstPort(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.Long getLastPort(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 static Task introduceAsync(Connection c, java.util.Set<java.lang.String> addresses, java.lang.Long firstPort, java.lang.Long lastPort, PVSSite site) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
addresses
- IPv4 addresses of the serverfirstPort
- first UDP port accepted by this serverlastPort
- last UDP port accepted by this serversite
- PVS site this server is a part ofTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static PVSServer introduce(Connection c, java.util.Set<java.lang.String> addresses, java.lang.Long firstPort, java.lang.Long lastPort, PVSSite site) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
addresses
- IPv4 addresses of the serverfirstPort
- first UDP port accepted by this serverlastPort
- last UDP port accepted by this serversite
- PVS site this server is a part ofTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task forgetAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void forget(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static java.util.Set<PVSServer> 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<PVSServer,PVSServer.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException