@Experimental public interface ClusterManagementService extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
release any resources controlled by this service
|
<T extends CacheElement> |
create(T config)
This method will create the element on all the applicable members in the cluster and persist
the configuration in the cluster configuration if persistence is enabled.
|
<T extends CacheElement> |
delete(T config)
This method will delete the element on all the applicable members in the cluster and update the
configuration in the cluster configuration if persistence is enabled.
|
<T extends CacheElement & CorrespondWith<R>,R extends RuntimeInfo> |
get(T config)
This method will list a single instance of the element type in the cluster configuration, along
with additional runtime information from cluster members
|
boolean |
isConnected()
Test to see if this instance of ClusterManagementService retrieved from the client side is
properly connected to the locator or not
|
<A extends ClusterManagementOperation<V>,V extends OperationResult> |
list(A opType)
This method will list the status of all asynchronous cluster management operations in progress
or recently completed.
|
<T extends CacheElement & CorrespondWith<R>,R extends RuntimeInfo> |
list(T config)
This method will list instances of the element type in the cluster configuration, along with
additional runtime information from cluster members
|
<A extends ClusterManagementOperation<V>,V extends OperationResult> |
start(A op)
This method will launch a cluster management operation asynchronously.
|
<T extends CacheElement> |
update(T config)
This method will update the element on all the applicable members in the cluster and persist
the updated configuration in the cluster configuration if persistence is enabled.
|
<T extends CacheElement> ClusterManagementRealizationResult create(T config)
config
- this holds the configuration attributes of the element to be created on the
cluster, as well as the group this config belongs toClusterManagementRealizationResult
indicating the success of the creationClusterManagementRealizationException
- if unsuccessfulCacheElement
<T extends CacheElement> ClusterManagementRealizationResult delete(T config)
config
- this holds the configuration attributes of the element to be deleted on the
clusterClusterManagementRealizationResult
indicating the success of the deletionClusterManagementRealizationException
- if unsuccessfulCacheElement
<T extends CacheElement> ClusterManagementRealizationResult update(T config)
config
- this holds the configuration attributes of the element to be updated on the
clusterClusterManagementRealizationResult
indicating the success of the updateClusterManagementRealizationException
- if unsuccessfulCacheElement
<T extends CacheElement & CorrespondWith<R>,R extends RuntimeInfo> ClusterManagementListResult<T,R> list(T config)
config
- this may be used to filter the search results by id or group (check documentation
for individual element types to see if they support filtering by addition attributes)ClusterManagementListResult
holding a list of matching instances in
ClusterManagementListResult.getResult()
ClusterManagementException
- if unsuccessfulCacheElement
<T extends CacheElement & CorrespondWith<R>,R extends RuntimeInfo> ClusterManagementListResult<T,R> get(T config)
config
- this must be used to filter the search results to a single result, generally by
supplying the name (id) of the desired config elementClusterManagementListResult
holding a single element in
ClusterManagementListResult.getResult()
ClusterManagementException
- if unsuccesful or, no matching element is found, or multiple
matches are foundCacheElement
<A extends ClusterManagementOperation<V>,V extends OperationResult> ClusterManagementOperationResult<V> start(A op)
A
- the operation type (a subclass of ClusterManagementOperation
V
- the return type of the operationop
- the operation plus any parameters.ClusterManagementOperationResult
holding a CompletableFuture
(if the
operation was launched successfully) or an error code otherwise.ClusterManagementException
- if unsuccessful<A extends ClusterManagementOperation<V>,V extends OperationResult> ClusterManagementListOperationsResult<V> list(A opType)
A
- the operation type (a subclass of ClusterManagementOperation
V
- the return type of the operationopType
- the operation type to listClusterManagementOperationResult
ClusterManagementException
- if unsuccessfulboolean isConnected()
void close()
close
in interface AutoCloseable