public interface ClusterTopologyManager
Modifier and Type | Interface and Description |
---|---|
static class |
ClusterTopologyManager.ClusterManagerStatus |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
forceAvailabilityMode(String cacheName,
AvailabilityMode availabilityMode) |
CompletionStage<Void> |
forceRebalance(String cacheName) |
RebalancingStatus |
getRebalancingStatus(String cacheName)
Retrieves the rebalancing status of a cache
|
ClusterTopologyManager.ClusterManagerStatus |
getStatus() |
CompletionStage<CacheStatusResponse> |
handleJoin(String cacheName,
Address joiner,
CacheJoinInfo joinInfo,
int viewId)
Signals that a new member is joining the cache.
|
CompletionStage<Void> |
handleLeave(String cacheName,
Address leaver,
int viewId)
Signals that a member is leaving the cache.
|
CompletionStage<Void> |
handleRebalancePhaseConfirm(String cacheName,
Address node,
int topologyId,
Throwable throwable,
int viewId)
Marks the rebalance as complete on the sender.
|
CompletionStage<Void> |
handleShutdownRequest(String cacheName) |
boolean |
isRebalancingEnabled() |
boolean |
isRebalancingEnabled(String cacheName)
Returns whether rebalancing is enabled or disabled for this container.
|
void |
setInitialCacheTopologyId(String cacheName,
int topologyId)
Sets the id of the initial topology in given cache.
|
CompletionStage<Void> |
setRebalancingEnabled(boolean enabled)
Globally enables or disables whether automatic rebalancing should occur.
|
CompletionStage<Void> |
setRebalancingEnabled(String cacheName,
boolean enabled)
Enables or disables rebalancing for the specified cache
|
CompletionStage<CacheStatusResponse> handleJoin(String cacheName, Address joiner, CacheJoinInfo joinInfo, int viewId) throws Exception
CacheStatusResponse.cacheTopology
is the current cache topology before the node joined.
If the node is the first to join the cache, the returned topology does include the joiner,
and it is never null
.Exception
CompletionStage<Void> handleLeave(String cacheName, Address leaver, int viewId) throws Exception
Exception
CompletionStage<Void> handleRebalancePhaseConfirm(String cacheName, Address node, int topologyId, Throwable throwable, int viewId) throws Exception
Exception
boolean isRebalancingEnabled()
boolean isRebalancingEnabled(String cacheName)
CompletionStage<Void> setRebalancingEnabled(boolean enabled)
CompletionStage<Void> setRebalancingEnabled(String cacheName, boolean enabled)
RebalancingStatus getRebalancingStatus(String cacheName)
CompletionStage<Void> forceRebalance(String cacheName)
CompletionStage<Void> forceAvailabilityMode(String cacheName, AvailabilityMode availabilityMode)
CompletionStage<Void> handleShutdownRequest(String cacheName) throws Exception
Exception
void setInitialCacheTopologyId(String cacheName, int topologyId)
ClusterTopologyManager.ClusterManagerStatus getStatus()
Copyright © 2021 JBoss by Red Hat. All rights reserved.