public class ServicesStub extends com.vmware.vapi.internal.bindings.Stub implements Services
Services
API service.
WARNING: Internal API, subject to change in future versions.
ServicesTypes.ServiceInfo, ServicesTypes.ServiceOps
Constructor and Description |
---|
ServicesStub(ApiProvider apiProvider,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
void |
control(List<String> args,
String name,
long timeout)
Manage a service with arbitrary command and arguments.
|
void |
control(List<String> args,
String name,
long timeout,
AsyncCallback<Void> asyncCallback)
Manage a service with arbitrary command and arguments.
|
void |
control(List<String> args,
String name,
long timeout,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Manage a service with arbitrary command and arguments.
|
void |
control(List<String> args,
String name,
long timeout,
InvocationConfig invocationConfig)
Manage a service with arbitrary command and arguments.
|
List<ServicesTypes.ServiceInfo> |
list()
Get a list of all known services.
|
void |
list(AsyncCallback<List<ServicesTypes.ServiceInfo>> asyncCallback)
Get a list of all known services.
|
void |
list(AsyncCallback<List<ServicesTypes.ServiceInfo>> asyncCallback,
InvocationConfig invocationConfig)
Get a list of all known services.
|
List<ServicesTypes.ServiceInfo> |
list(InvocationConfig invocationConfig)
Get a list of all known services.
|
void |
restart(String name,
long timeout)
start or restart a service
|
void |
restart(String name,
long timeout,
AsyncCallback<Void> asyncCallback)
start or restart a service
|
void |
restart(String name,
long timeout,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
start or restart a service
|
void |
restart(String name,
long timeout,
InvocationConfig invocationConfig)
start or restart a service
|
void |
stop(String name,
long timeout)
Stop a service
|
void |
stop(String name,
long timeout,
AsyncCallback<Void> asyncCallback)
Stop a service
|
void |
stop(String name,
long timeout,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Stop a service
|
void |
stop(String name,
long timeout,
InvocationConfig invocationConfig)
Stop a service
|
public ServicesStub(ApiProvider apiProvider, StubConfigurationBase config)
public void control(List<String> args, String name, long timeout)
Services
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void control(List<String> args, String name, long timeout, 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 control(List<String> args, String name, long timeout, AsyncCallback<Void> asyncCallback)
Services
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error
public void control(List<String> args, String name, long timeout, AsyncCallback<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:
Error
- Generic error
control
in interface Services
args
- Array of arguments.name
- Name of the service.timeout
- Timeout in seconds. Zero (0) means no timeout.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public List<ServicesTypes.ServiceInfo> list()
Services
Synchronous method overload. Result of the invocation will be reported as a method return value.
public List<ServicesTypes.ServiceInfo> 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<List<ServicesTypes.ServiceInfo>> asyncCallback)
Services
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
List of services.
Operation Errors:
Error
- Generic error
public void list(AsyncCallback<List<ServicesTypes.ServiceInfo>> 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:
List of services.
Operation Errors:
Error
- Generic error
public void stop(String name, long timeout)
Services
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void stop(String name, long timeout, 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(String name, long timeout, AsyncCallback<Void> asyncCallback)
Services
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error
public void stop(String name, long timeout, AsyncCallback<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:
Error
- Generic error
public void restart(String name, long timeout)
Services
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void restart(String name, long timeout, 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(String name, long timeout, AsyncCallback<Void> asyncCallback)
Services
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error
public void restart(String name, long timeout, AsyncCallback<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:
Error
- Generic error
restart
in interface Services
name
- Name of the service to start or restart.timeout
- Timeout in seconds. Zero (0) means no timeout.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.Copyright © 2016. All Rights Reserved.