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
First published in XenServer 7.1.
|
Task |
forgetAsync(Connection c)
forget a PVS server
First published in XenServer 7.1.
|
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
First published in XenServer 7.1.
|
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
First published in XenServer 7.1.
|
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
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static PVSServer getByUuid(Connection c, java.lang.String uuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onuuid
- UUID of object to returnTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.String getUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.util.Set<java.lang.String> getAddresses(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.Long getFirstPort(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public java.lang.Long getLastPort(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public PVSSite getSite(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.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
c
- The connection the call is made onaddresses
- 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
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.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
c
- The connection the call is made onaddresses
- 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
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public Task forgetAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public void forget(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static java.util.Set<PVSServer> getAll(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.public static java.util.Map<PVSServer,PVSServer.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
c
- The connection the call is made onTypes.BadServerResponse
- Thrown if the response from the server contains an invalid status.Types.XenAPIException
- Thrown if the call failed.org.apache.xmlrpc.XmlRpcException
- Thrown if the result of an asynchronous call could not be parsed.