public class ShutdownStub extends com.vmware.vapi.internal.bindings.Stub implements Shutdown
Shutdown
API service.
WARNING: Internal class, subject to change in future versions.
ShutdownTypes.ShutdownConfig
apiProvider, converter, ifaceId, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
ShutdownStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ShutdownStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel pending shutdown action.
|
void |
cancel(AsyncCallback<java.lang.Void> asyncCallback)
Cancel pending shutdown action.
|
void |
cancel(AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Cancel pending shutdown action.
|
void |
cancel(InvocationConfig invocationConfig)
Cancel pending shutdown action.
|
ShutdownTypes.ShutdownConfig |
get()
Get details about the pending shutdown action.
|
void |
get(AsyncCallback<ShutdownTypes.ShutdownConfig> asyncCallback)
Get details about the pending shutdown action.
|
void |
get(AsyncCallback<ShutdownTypes.ShutdownConfig> asyncCallback,
InvocationConfig invocationConfig)
Get details about the pending shutdown action.
|
ShutdownTypes.ShutdownConfig |
get(InvocationConfig invocationConfig)
Get details about the pending shutdown action.
|
void |
poweroff(long delay,
java.lang.String reason)
Power off the appliance.
|
void |
poweroff(long delay,
java.lang.String reason,
AsyncCallback<java.lang.Void> asyncCallback)
Power off the appliance.
|
void |
poweroff(long delay,
java.lang.String reason,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Power off the appliance.
|
void |
poweroff(long delay,
java.lang.String reason,
InvocationConfig invocationConfig)
Power off the appliance.
|
void |
reboot(long delay,
java.lang.String reason)
Reboot the appliance.
|
void |
reboot(long delay,
java.lang.String reason,
AsyncCallback<java.lang.Void> asyncCallback)
Reboot the appliance.
|
void |
reboot(long delay,
java.lang.String reason,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Reboot the appliance.
|
void |
reboot(long delay,
java.lang.String reason,
InvocationConfig invocationConfig)
Reboot the appliance.
|
public ShutdownStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ShutdownStub(ApiProvider apiProvider, StubConfigurationBase config)
public void cancel()
Shutdown
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void cancel(InvocationConfig invocationConfig)
Shutdown
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 cancel(AsyncCallback<java.lang.Void> asyncCallback)
Shutdown
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error
public void cancel(AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Shutdown
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
Error
- Generic error
public void poweroff(long delay, java.lang.String reason)
Shutdown
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void poweroff(long delay, java.lang.String reason, InvocationConfig invocationConfig)
Shutdown
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 poweroff(long delay, java.lang.String reason, AsyncCallback<java.lang.Void> asyncCallback)
Shutdown
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error
public void poweroff(long delay, java.lang.String reason, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Shutdown
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
Error
- Generic error
poweroff
in interface Shutdown
delay
- Minutes after which poweroff should start. If 0 is specified, poweroff will
start immediately.reason
- Reason for peforming poweroff.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void reboot(long delay, java.lang.String reason)
Shutdown
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void reboot(long delay, java.lang.String reason, InvocationConfig invocationConfig)
Shutdown
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 reboot(long delay, java.lang.String reason, AsyncCallback<java.lang.Void> asyncCallback)
Shutdown
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error
public void reboot(long delay, java.lang.String reason, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Shutdown
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
Error
- Generic error
reboot
in interface Shutdown
delay
- Minutes after which reboot should start. If 0 is specified, reboot will start
immediately.reason
- Reason for peforming reboot.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public ShutdownTypes.ShutdownConfig get()
Shutdown
Synchronous method overload. Result of the invocation will be reported as a method return value.
public ShutdownTypes.ShutdownConfig get(InvocationConfig invocationConfig)
Shutdown
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 get(AsyncCallback<ShutdownTypes.ShutdownConfig> asyncCallback)
Shutdown
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Configuration of pending shutdown action.
Operation Errors:
Error
- Generic error
public void get(AsyncCallback<ShutdownTypes.ShutdownConfig> asyncCallback, InvocationConfig invocationConfig)
Shutdown
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Configuration of pending shutdown action.
Operation Errors:
Error
- Generic error