public class PassiveStub extends com.vmware.vapi.internal.bindings.Stub implements Passive
Passive
API service.
WARNING: Internal class, subject to change in future versions.
PassiveTypes.CheckResult, PassiveTypes.CheckSpec, PassiveTypes.RedeploySpec
Constructor and Description |
---|
PassiveStub(ApiProvider apiProvider,
StubConfigurationBase config) |
PassiveStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
PassiveTypes.CheckResult |
check(PassiveTypes.CheckSpec spec)
Validates the specified passive node's placement configuration.
|
void |
check(PassiveTypes.CheckSpec spec,
AsyncCallback<PassiveTypes.CheckResult> asyncCallback)
Validates the specified passive node's placement configuration.
|
void |
check(PassiveTypes.CheckSpec spec,
AsyncCallback<PassiveTypes.CheckResult> asyncCallback,
InvocationConfig invocationConfig)
Validates the specified passive node's placement configuration.
|
PassiveTypes.CheckResult |
check(PassiveTypes.CheckSpec spec,
InvocationConfig invocationConfig)
Validates the specified passive node's placement configuration.
|
java.lang.String |
redeploy_Task(PassiveTypes.RedeploySpec spec)
Creates the passive node in a degraded cluster with node location information
and pre-existing VCHA cluster configuration from the active node.
|
java.lang.String |
redeploy_Task(PassiveTypes.RedeploySpec spec,
InvocationConfig invocationConfig)
Creates the passive node in a degraded cluster with node location information
and pre-existing VCHA cluster configuration from the active node.
|
public PassiveStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public PassiveStub(ApiProvider apiProvider, StubConfigurationBase config)
public PassiveTypes.CheckResult check(PassiveTypes.CheckSpec spec)
Passive
Synchronous method overload. Result of the invocation will be reported as a method return value.
public PassiveTypes.CheckResult check(PassiveTypes.CheckSpec spec, InvocationConfig invocationConfig)
Passive
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void check(PassiveTypes.CheckSpec spec, AsyncCallback<PassiveTypes.CheckResult> asyncCallback)
Passive
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
CheckResult structure containing errors and warnings.
Operation Errors:
InvalidArgument
- If the credentials provided for authentincating with the active node's
management vCenter server are invalid.
InvalidArgument
- If the specified resource spec is deemed invalid for the clone operation.
UnverifiedPeer
- If the SSL certificate of the management vCenter server cannot be
validated.
The value of the data property of Error
will be a class that contains all the
properties defined in CertificateInfo
.
NotFound
- If the active virtual machine is not managed by the specified vCenter server for
the active node.
InvalidElementConfiguration
- If the active node is on more than one datastore.
NotAllowedInCurrentState
- If the clone operation is not allowed in the current state of the system.
Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer privilege.
Error
- If any other error occurs.
public void check(PassiveTypes.CheckSpec spec, AsyncCallback<PassiveTypes.CheckResult> asyncCallback, InvocationConfig invocationConfig)
Passive
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:
CheckResult structure containing errors and warnings.
Operation Errors:
InvalidArgument
- If the credentials provided for authentincating with the active node's
management vCenter server are invalid.
InvalidArgument
- If the specified resource spec is deemed invalid for the clone operation.
UnverifiedPeer
- If the SSL certificate of the management vCenter server cannot be
validated.
The value of the data property of Error
will be a class that contains all the
properties defined in CertificateInfo
.
NotFound
- If the active virtual machine is not managed by the specified vCenter server for
the active node.
InvalidElementConfiguration
- If the active node is on more than one datastore.
NotAllowedInCurrentState
- If the clone operation is not allowed in the current state of the system.
Unauthorized
- If the user has insufficient privilege to perform the operation. Operation
execution requires the Global.VCServer privilege.
Error
- If any other error occurs.
public java.lang.String redeploy_Task(PassiveTypes.RedeploySpec spec)
Passive
Task method overload. Result of the invocation is a task identifier which is going to be returned by this method.
redeploy_Task
in interface Passive
spec
- Contains the passive node's redeploy specification.public java.lang.String redeploy_Task(PassiveTypes.RedeploySpec spec, InvocationConfig invocationConfig)
Passive
Task method overload. Result of the invocation is a task identifier which is going to be returned by this method.
redeploy_Task
in interface Passive
spec
- Contains the passive node's redeploy specification.