public class ServicesStub extends com.vmware.vapi.internal.bindings.Stub implements Services
Services
API service.
WARNING: Internal class, subject to change in future versions.
ServicesTypes.Info, ServicesTypes.State
Constructor and Description |
---|
ServicesStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ServicesStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
ServicesTypes.Info |
get(java.lang.String service)
Returns the state of a service.
|
void |
get(java.lang.String service,
AsyncCallback<ServicesTypes.Info> asyncCallback)
Returns the state of a service.
|
void |
get(java.lang.String service,
AsyncCallback<ServicesTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns the state of a service.
|
ServicesTypes.Info |
get(java.lang.String service,
InvocationConfig invocationConfig)
Returns the state of a service.
|
java.util.Map<java.lang.String,ServicesTypes.Info> |
list()
Lists details of vCenter services.
|
void |
list(AsyncCallback<java.util.Map<java.lang.String,ServicesTypes.Info>> asyncCallback)
Lists details of vCenter services.
|
void |
list(AsyncCallback<java.util.Map<java.lang.String,ServicesTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Lists details of vCenter services.
|
java.util.Map<java.lang.String,ServicesTypes.Info> |
list(InvocationConfig invocationConfig)
Lists details of vCenter services.
|
void |
restart(java.lang.String service)
Restarts a service.
|
void |
restart(java.lang.String service,
AsyncCallback<java.lang.Void> asyncCallback)
Restarts a service.
|
void |
restart(java.lang.String service,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Restarts a service.
|
void |
restart(java.lang.String service,
InvocationConfig invocationConfig)
Restarts a service.
|
void |
start(java.lang.String service)
Starts a service.
|
void |
start(java.lang.String service,
AsyncCallback<java.lang.Void> asyncCallback)
Starts a service.
|
void |
start(java.lang.String service,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Starts a service.
|
void |
start(java.lang.String service,
InvocationConfig invocationConfig)
Starts a service.
|
void |
stop(java.lang.String service)
Stops a service.
|
void |
stop(java.lang.String service,
AsyncCallback<java.lang.Void> asyncCallback)
Stops a service.
|
void |
stop(java.lang.String service,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Stops a service.
|
void |
stop(java.lang.String service,
InvocationConfig invocationConfig)
Stops a service.
|
public ServicesStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ServicesStub(ApiProvider apiProvider, StubConfigurationBase config)
public void start(java.lang.String service)
Services
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void start(java.lang.String service, InvocationConfig invocationConfig)
Services
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 start(java.lang.String service, AsyncCallback<java.lang.Void> asyncCallback)
Services
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the service associated with service
does not exist.
NotAllowedInCurrentState
- if the operation is denied in the current state of the service. If a stop or
restart operation is in progress, the start operation will not be allowed.
NotAllowedInCurrentState
- if start operation is issued on a service which has startup type StartupType#DISABLED
.
TimedOut
- if any timeout occurs during the execution of the start operation. Timeout
occurs when the service takes longer than StartTimeout to start.
Error
- if any other error occurs during the execution of the operation.
public void start(java.lang.String service, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Services
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:
NotFound
- if the service associated with service
does not exist.
NotAllowedInCurrentState
- if the operation is denied in the current state of the service. If a stop or
restart operation is in progress, the start operation will not be allowed.
NotAllowedInCurrentState
- if start operation is issued on a service which has startup type StartupType#DISABLED
.
TimedOut
- if any timeout occurs during the execution of the start operation. Timeout
occurs when the service takes longer than StartTimeout to start.
Error
- if any other error occurs during the execution of the operation.
start
in interface Services
service
- identifier of the service to start
The parameter must be an identifier for the resource type: com.vmware.appliance.services
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void stop(java.lang.String service)
Services
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void stop(java.lang.String service, InvocationConfig invocationConfig)
Services
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 stop(java.lang.String service, AsyncCallback<java.lang.Void> asyncCallback)
Services
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the service associated with service
does not exist.
Error
- if any other error occurs during the execution of the operation.
NotAllowedInCurrentState
- if the operation is denied in the current state of the service. If a stop
operation is in progress, issuing another stop operation will lead to this
error.
public void stop(java.lang.String service, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Services
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:
NotFound
- if the service associated with service
does not exist.
Error
- if any other error occurs during the execution of the operation.
NotAllowedInCurrentState
- if the operation is denied in the current state of the service. If a stop
operation is in progress, issuing another stop operation will lead to this
error.
stop
in interface Services
service
- identifier of the service to stop
The parameter must be an identifier for the resource type: com.vmware.appliance.services
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void restart(java.lang.String service)
Services
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void restart(java.lang.String service, InvocationConfig invocationConfig)
Services
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 restart(java.lang.String service, AsyncCallback<java.lang.Void> asyncCallback)
Services
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the service associated with service
does not exist.
TimedOut
- if any timeout occurs during the execution of the restart operation.
NotAllowedInCurrentState
- if the operation is denied in the current state of the service. If a stop or
start operation is in progress, issuing a restart operation will lead to this
error.
NotAllowedInCurrentState
- if a restart operation is issued on a service which has startup type StartupType#DISABLED
Error
- if any other error occurs during the execution of the operation.
public void restart(java.lang.String service, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Services
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:
NotFound
- if the service associated with service
does not exist.
TimedOut
- if any timeout occurs during the execution of the restart operation.
NotAllowedInCurrentState
- if the operation is denied in the current state of the service. If a stop or
start operation is in progress, issuing a restart operation will lead to this
error.
NotAllowedInCurrentState
- if a restart operation is issued on a service which has startup type StartupType#DISABLED
Error
- if any other error occurs during the execution of the operation.
restart
in interface Services
service
- identifier of the service to restart
The parameter must be an identifier for the resource type: com.vmware.appliance.services
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public ServicesTypes.Info get(java.lang.String service)
Services
Synchronous method overload. Result of the invocation will be reported as a method return value.
public ServicesTypes.Info get(java.lang.String service, InvocationConfig invocationConfig)
Services
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(java.lang.String service, AsyncCallback<ServicesTypes.Info> asyncCallback)
Services
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Service Info structure.
Operation Errors:
NotFound
- if the service associated with service
does not exist.
Error
- if any other error occurs during the execution of the operation.
public void get(java.lang.String service, AsyncCallback<ServicesTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Services
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:
Service Info structure.
Operation Errors:
NotFound
- if the service associated with service
does not exist.
Error
- if any other error occurs during the execution of the operation.
get
in interface Services
service
- identifier of the service whose state is being queried.
The parameter must be an identifier for the resource type: com.vmware.appliance.services
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.Map<java.lang.String,ServicesTypes.Info> list()
Services
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.Map<java.lang.String,ServicesTypes.Info> list(InvocationConfig invocationConfig)
Services
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 list(AsyncCallback<java.util.Map<java.lang.String,ServicesTypes.Info>> asyncCallback)
Services
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Map of service identifiers to service Info structures.
The key in the return value Map
will be an identifier for the
resource type: com.vmware.appliance.services
.
Operation Errors:
Error
- if any error occurs during the execution of the operation.
public void list(AsyncCallback<java.util.Map<java.lang.String,ServicesTypes.Info>> asyncCallback, InvocationConfig invocationConfig)
Services
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:
Map of service identifiers to service Info structures.
The key in the return value Map
will be an identifier for the
resource type: com.vmware.appliance.services
.
Operation Errors:
Error
- if any error occurs during the execution of the operation.