com.xensource.xenapi
public class ClusterHost extends XenAPIObject
| Modifier and Type | Class and Description |
|---|---|
static class |
ClusterHost.Record
Represents all the fields in a ClusterHost
|
| 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 ClusterHost |
create(Connection c,
Cluster cluster,
Host host,
PIF pif)
Add a new host to an existing cluster.
|
static Task |
createAsync(Connection c,
Cluster cluster,
Host host,
PIF pif)
Add a new host to an existing cluster.
|
void |
destroy(Connection c)
Remove a host from an existing cluster.
|
Task |
destroyAsync(Connection c)
Remove a host from an existing cluster.
|
void |
disable(Connection c)
Disable cluster membership for an enabled cluster host.
|
Task |
disableAsync(Connection c)
Disable cluster membership for an enabled cluster host.
|
void |
enable(Connection c)
Enable cluster membership for a disabled cluster host.
|
Task |
enableAsync(Connection c)
Enable cluster membership for a disabled cluster host.
|
boolean |
equals(java.lang.Object obj)
If obj is a ClusterHost, compares XenAPI references for equality.
|
void |
forceDestroy(Connection c)
Remove a host from an existing cluster forcefully.
|
Task |
forceDestroyAsync(Connection c)
Remove a host from an existing cluster forcefully.
|
static java.util.Set<ClusterHost> |
getAll(Connection c)
Return a list of all the Cluster_hosts known to the system.
|
java.util.Set<Types.ClusterHostOperation> |
getAllowedOperations(Connection c)
Get the allowed_operations field of the given Cluster_host.
|
static java.util.Map<ClusterHost,ClusterHost.Record> |
getAllRecords(Connection c)
Return a map of Cluster_host references to Cluster_host records for all Cluster_hosts known to the system.
|
static ClusterHost |
getByUuid(Connection c,
java.lang.String uuid)
Get a reference to the Cluster_host instance with the specified UUID.
|
Cluster |
getCluster(Connection c)
Get the cluster field of the given Cluster_host.
|
java.util.Map<java.lang.String,Types.ClusterHostOperation> |
getCurrentOperations(Connection c)
Get the current_operations field of the given Cluster_host.
|
java.lang.Boolean |
getEnabled(Connection c)
Get the enabled field of the given Cluster_host.
|
Host |
getHost(Connection c)
Get the host field of the given Cluster_host.
|
java.lang.Boolean |
getJoined(Connection c)
Get the joined field of the given Cluster_host.
|
java.util.Map<java.lang.String,java.lang.String> |
getOtherConfig(Connection c)
Get the other_config field of the given Cluster_host.
|
PIF |
getPIF(Connection c)
Get the PIF field of the given Cluster_host.
|
ClusterHost.Record |
getRecord(Connection c)
Get a record containing the current state of the given Cluster_host.
|
java.lang.String |
getUuid(Connection c)
Get the uuid field of the given Cluster_host.
|
int |
hashCode() |
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 ClusterHost.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static ClusterHost 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 java.lang.String getUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Cluster getCluster(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Host getHost(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.Boolean getEnabled(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic PIF getPIF(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.Boolean getJoined(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.util.Set<Types.ClusterHostOperation> getAllowedOperations(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.util.Map<java.lang.String,Types.ClusterHostOperation> getCurrentOperations(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.util.Map<java.lang.String,java.lang.String> getOtherConfig(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Task createAsync(Connection c, Cluster cluster, Host host, PIF pif) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.PifNotAttachedToHost, Types.NoClusterHostsReachable
cluster - Cluster to joinhost - new cluster memberpif - Network interface to use for communicationTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.PifNotAttachedToHostTypes.NoClusterHostsReachablepublic static ClusterHost create(Connection c, Cluster cluster, Host host, PIF pif) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.PifNotAttachedToHost, Types.NoClusterHostsReachable
cluster - Cluster to joinhost - new cluster memberpif - Network interface to use for communicationTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.PifNotAttachedToHostTypes.NoClusterHostsReachablepublic Task destroyAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.ClusterStackInUse, Types.ClusteringDisabled, Types.ClusterHostIsLast
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.ClusterStackInUseTypes.ClusteringDisabledTypes.ClusterHostIsLastpublic void destroy(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.ClusterStackInUse, Types.ClusteringDisabled, Types.ClusterHostIsLast
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.ClusterStackInUseTypes.ClusteringDisabledTypes.ClusterHostIsLastpublic Task enableAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.PifAllowsUnplug, Types.RequiredPifIsUnplugged
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.PifAllowsUnplugTypes.RequiredPifIsUnpluggedpublic void enable(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.PifAllowsUnplug, Types.RequiredPifIsUnplugged
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.PifAllowsUnplugTypes.RequiredPifIsUnpluggedpublic Task forceDestroyAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.ClusterStackInUse
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.ClusterStackInUsepublic void forceDestroy(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.ClusterStackInUse
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.ClusterStackInUsepublic Task disableAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.ClusterStackInUse
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.ClusterStackInUsepublic void disable(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException, Types.ClusterStackInUse
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.ClusterStackInUsepublic static java.util.Set<ClusterHost> getAll(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static java.util.Map<ClusterHost,ClusterHost.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcException