public interface Shutdown extends Service, ShutdownTypes
Shutdown
interface provides methods Performs reboot/shutdown operations
on appliance. This interface was added in vSphere API 6.7.ShutdownTypes.ShutdownConfig
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.
|
void cancel()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Error
- Generic errorvoid cancel(InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
invocationConfig
- Configuration for the method invocation.Error
- Generic errorvoid cancel(AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void cancel(AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
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
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void poweroff(long delay, java.lang.String reason)
Synchronous method overload. Result of the invocation will be reported as a method return value.
delay
- Minutes after which poweroff should start. If 0 is specified, poweroff will
start immediately.reason
- Reason for peforming poweroff.Error
- Generic errorvoid poweroff(long delay, java.lang.String reason, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
delay
- Minutes after which poweroff should start. If 0 is specified, poweroff will
start immediately.reason
- Reason for peforming poweroff.invocationConfig
- Configuration for the method invocation.Error
- Generic errorvoid poweroff(long delay, java.lang.String reason, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error
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.void poweroff(long delay, java.lang.String reason, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
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
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.void reboot(long delay, java.lang.String reason)
Synchronous method overload. Result of the invocation will be reported as a method return value.
delay
- Minutes after which reboot should start. If 0 is specified, reboot will start
immediately.reason
- Reason for peforming reboot.Error
- Generic errorvoid reboot(long delay, java.lang.String reason, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
delay
- Minutes after which reboot should start. If 0 is specified, reboot will start
immediately.reason
- Reason for peforming reboot.invocationConfig
- Configuration for the method invocation.Error
- Generic errorvoid reboot(long delay, java.lang.String reason, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error
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.void reboot(long delay, java.lang.String reason, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
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
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.ShutdownTypes.ShutdownConfig get()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Error
- Generic errorShutdownTypes.ShutdownConfig get(InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
invocationConfig
- Configuration for the method invocation.Error
- Generic errorvoid get(AsyncCallback<ShutdownTypes.ShutdownConfig> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Configuration of pending shutdown action.
Operation Errors:
Error
- Generic error
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(AsyncCallback<ShutdownTypes.ShutdownConfig> asyncCallback, InvocationConfig invocationConfig)
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:
Configuration of pending shutdown action.
Operation Errors:
Error
- Generic error
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.