public interface Services extends Service, ServicesTypes
Services
interface provides methods Manages services.ServicesTypes.ServiceInfo, ServicesTypes.ServiceOps
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
|
void control(List<String> args, String name, long timeout)
Synchronous method overload. Result of the invocation will be reported as a method return value.
args
- Array of arguments.name
- Name of the service.timeout
- Timeout in seconds. Zero (0) means no timeout.Error
- Generic errorvoid control(List<String> args, String name, long timeout, 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.
args
- Array of arguments.name
- Name of the service.timeout
- Timeout in seconds. Zero (0) means no timeout.invocationConfig
- Configuration for the method invocation.Error
- Generic errorvoid control(List<String> args, String name, long timeout, AsyncCallback<Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error
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.void control(List<String> args, String name, long timeout, AsyncCallback<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
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.List<ServicesTypes.ServiceInfo> list()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Error
- Generic errorList<ServicesTypes.ServiceInfo> list(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 list(AsyncCallback<List<ServicesTypes.ServiceInfo>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
List of services.
Operation Errors:
Error
- Generic error
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<List<ServicesTypes.ServiceInfo>> 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:
List of services.
Operation Errors:
Error
- Generic error
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void stop(String name, long timeout)
Synchronous method overload. Result of the invocation will be reported as a method return value.
name
- Name of service.timeout
- Timeout in seconds. Zero (0) means no timeout.Error
- Generic errorvoid stop(String name, long timeout, 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.
name
- Name of service.timeout
- Timeout in seconds. Zero (0) means no timeout.invocationConfig
- Configuration for the method invocation.Error
- Generic errorvoid stop(String name, long timeout, AsyncCallback<Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error
name
- Name of service.timeout
- Timeout in seconds. Zero (0) means no timeout.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void stop(String name, long timeout, AsyncCallback<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
name
- Name of 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.void restart(String name, long timeout)
Synchronous method overload. Result of the invocation will be reported as a method return value.
name
- Name of the service to start or restart.timeout
- Timeout in seconds. Zero (0) means no timeout.Error
- Generic errorvoid restart(String name, long timeout, 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.
name
- Name of the service to start or restart.timeout
- Timeout in seconds. Zero (0) means no timeout.invocationConfig
- Configuration for the method invocation.Error
- Generic errorvoid restart(String name, long timeout, AsyncCallback<Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- Generic error
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.void restart(String name, long timeout, AsyncCallback<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
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.