public class ClusterStub extends com.vmware.vapi.internal.bindings.Stub implements Cluster
Cluster
API service.
WARNING: Internal class, subject to change in future versions.
ClusterTypes.ActiveSpec, ClusterTypes.ClusterMode, ClusterTypes.ClusterState, ClusterTypes.ConfigState, ClusterTypes.DeploySpec, ClusterTypes.ErrorCondition, ClusterTypes.Info, ClusterTypes.IpFamily, ClusterTypes.IpInfo, ClusterTypes.Ipv4Info, ClusterTypes.Ipv6Info, ClusterTypes.NodeInfo, ClusterTypes.NodeRole, ClusterTypes.NodeRuntimeInfo, ClusterTypes.NodeState, ClusterTypes.NodeVmInfo, ClusterTypes.PassiveSpec, ClusterTypes.Type, ClusterTypes.UndeploySpec, ClusterTypes.VmInfo, ClusterTypes.WitnessInfo, ClusterTypes.WitnessSpec
Constructor and Description |
---|
ClusterStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ClusterStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
deploy_Task(ClusterTypes.DeploySpec spec)
Prepares, clones, and configures a VCHA cluster.
|
java.lang.String |
deploy_Task(ClusterTypes.DeploySpec spec,
InvocationConfig invocationConfig)
Prepares, clones, and configures a VCHA cluster.
|
java.lang.String |
failover_Task(boolean planned)
Initiates failover from the active vCenter node to the passive node.
|
java.lang.String |
failover_Task(boolean planned,
InvocationConfig invocationConfig)
Initiates failover from the active vCenter node to the passive node.
|
ClusterTypes.Info |
get(CredentialsSpec vcSpec,
java.lang.Boolean partial)
Retrieves the status of a VCHA cluster.
|
void |
get(CredentialsSpec vcSpec,
java.lang.Boolean partial,
AsyncCallback<ClusterTypes.Info> asyncCallback)
Retrieves the status of a VCHA cluster.
|
void |
get(CredentialsSpec vcSpec,
java.lang.Boolean partial,
AsyncCallback<ClusterTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves the status of a VCHA cluster.
|
ClusterTypes.Info |
get(CredentialsSpec vcSpec,
java.lang.Boolean partial,
InvocationConfig invocationConfig)
Retrieves the status of a VCHA cluster.
|
java.lang.String |
undeploy_Task(ClusterTypes.UndeploySpec spec)
Destroys the VCHA cluster and removes all VCHA specific information from the
VCVA appliance.
|
java.lang.String |
undeploy_Task(ClusterTypes.UndeploySpec spec,
InvocationConfig invocationConfig)
Destroys the VCHA cluster and removes all VCHA specific information from the
VCVA appliance.
|
public ClusterStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ClusterStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.lang.String deploy_Task(ClusterTypes.DeploySpec spec)
Cluster
Task method overload. Result of the invocation is a task identifier which is going to be returned by this method.
deploy_Task
in interface Cluster
spec
- Contains the deploy specification for all three nodes of a VCHA cluster.public java.lang.String deploy_Task(ClusterTypes.DeploySpec spec, InvocationConfig invocationConfig)
Cluster
Task method overload. Result of the invocation is a task identifier which is going to be returned by this method.
deploy_Task
in interface Cluster
spec
- Contains the deploy specification for all three nodes of a VCHA cluster.public java.lang.String failover_Task(boolean planned)
Cluster
For forced failover, Active node immediately initiates a failover. This may result into a data loss after failover.
For planned failover, Active node flushes all the state to the Passive node, waits for the flush to complete before causing a failover. After the failover, Passive node starts without any data loss.
A failover is allowed only in the following cases:
Task method overload. Result of the invocation is a task identifier which is going to be returned by this method.
failover_Task
in interface Cluster
planned
- If false, a failover is initiated immediately and may result in data loss.public java.lang.String failover_Task(boolean planned, InvocationConfig invocationConfig)
Cluster
For forced failover, Active node immediately initiates a failover. This may result into a data loss after failover.
For planned failover, Active node flushes all the state to the Passive node, waits for the flush to complete before causing a failover. After the failover, Passive node starts without any data loss.
A failover is allowed only in the following cases:
Task method overload. Result of the invocation is a task identifier which is going to be returned by this method.
failover_Task
in interface Cluster
planned
- If false, a failover is initiated immediately and may result in data loss.public ClusterTypes.Info get(CredentialsSpec vcSpec, java.lang.Boolean partial)
Cluster
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Cluster
vcSpec
- Contains active node's management vCenter server credentials.
If null
, then the active vCenter server is assumed to be managed by
itself.partial
- If true, then return only the information that does not require connecting to
the Active vCenter Server.null
, then return all the information.public ClusterTypes.Info get(CredentialsSpec vcSpec, java.lang.Boolean partial, InvocationConfig invocationConfig)
Cluster
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
get
in interface Cluster
vcSpec
- Contains active node's management vCenter server credentials.
If null
, then the active vCenter server is assumed to be managed by
itself.partial
- If true, then return only the information that does not require connecting to
the Active vCenter Server.null
, then return all the information.invocationConfig
- Configuration for the method invocation.public void get(CredentialsSpec vcSpec, java.lang.Boolean partial, AsyncCallback<ClusterTypes.Info> asyncCallback)
Cluster
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Info structure containing the VCHA configuration and health information.
Operation Errors:
InvalidArgument
- If the credentials provided for authenticating with the active node's management
vCenter server are invalid.
Unauthorized
- If the user has insufficient privilege to perform the operation.
partial
is false or unset, then the operation execution requires the
Global.VCServer privilege.partial
is true, then the
operation execution requires the System.Read privilege.UnverifiedPeer
- If the SSL certificate of the management vCenter server cannot be
validated.Error
will be a class that contains all the
properties defined in CertificateInfo
.Error
- If any other error occurs.get
in interface Cluster
vcSpec
- Contains active node's management vCenter server credentials.
If null
, then the active vCenter server is assumed to be managed by
itself.partial
- If true, then return only the information that does not require connecting to
the Active vCenter Server.null
, then return all the information.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(CredentialsSpec vcSpec, java.lang.Boolean partial, AsyncCallback<ClusterTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Cluster
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
Info structure containing the VCHA configuration and health information.
Operation Errors:
InvalidArgument
- If the credentials provided for authenticating with the active node's management
vCenter server are invalid.
Unauthorized
- If the user has insufficient privilege to perform the operation.
partial
is false or unset, then the operation execution requires the
Global.VCServer privilege.partial
is true, then the
operation execution requires the System.Read privilege.UnverifiedPeer
- If the SSL certificate of the management vCenter server cannot be
validated.Error
will be a class that contains all the
properties defined in CertificateInfo
.Error
- If any other error occurs.get
in interface Cluster
vcSpec
- Contains active node's management vCenter server credentials.
If null
, then the active vCenter server is assumed to be managed by
itself.partial
- If true, then return only the information that does not require connecting to
the Active vCenter Server.null
, then return all the information.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.lang.String undeploy_Task(ClusterTypes.UndeploySpec spec)
Cluster
If the VCHA cluster is in a transition state and not configured, then the VCHA cluster specific information is removed.
. This method was added in vSphere API 6.7 U1.Task method overload. Result of the invocation is a task identifier which is going to be returned by this method.
undeploy_Task
in interface Cluster
spec
- Contains the undeploy specification for a VCHA cluster.public java.lang.String undeploy_Task(ClusterTypes.UndeploySpec spec, InvocationConfig invocationConfig)
Cluster
If the VCHA cluster is in a transition state and not configured, then the VCHA cluster specific information is removed.
. This method was added in vSphere API 6.7 U1.Task method overload. Result of the invocation is a task identifier which is going to be returned by this method.
undeploy_Task
in interface Cluster
spec
- Contains the undeploy specification for a VCHA cluster.