public class ClusterCachesInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_GRPS_VIEW |
static String |
CACHE_GRPS_VIEW_DESC |
static String |
CACHES_VIEW |
static String |
CACHES_VIEW_DESC |
| Constructor and Description |
|---|
ClusterCachesInfo(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupRemovedCacheGroups(AffinityTopologyVersion topVer)
Cleanups cache group descriptors that belong to the
topVer and earlier. |
void |
cleanupRemovedCaches(AffinityTopologyVersion topVer)
Cleanups cache descriptors that belong to the
topVer and earlier. |
void |
collectGridNodeData(DiscoveryDataBag dataBag,
CacheConfigurationSplitter splitter) |
void |
filterDynamicCacheDescriptors(Set<String> localCachesOnStart)
Filters all dynamic cache descriptors and groups that were not presented on node start
and were received with grid discovery data.
|
boolean |
isMergeConfigSupports(ClusterNode joiningNode) |
boolean |
isRestarting(String cacheName) |
@Nullable LocalJoinCachesContext |
localJoinCachesContext()
Called from exchange worker.
|
@Nullable CacheGroupDescriptor |
markedForDeletionCacheGroupDesc(int grpId) |
boolean |
onCacheChangeRequested(DynamicCacheChangeBatch batch,
AffinityTopologyVersion topVer) |
void |
onCacheChangeRequested(DynamicCacheChangeFailureMessage failMsg,
AffinityTopologyVersion topVer)
Creates exchanges actions.
|
void |
onClientCacheChange(ClientCacheChangeDiscoveryMessage msg,
ClusterNode node) |
void |
onDisconnected() |
void |
onDiscoveryEvent(int type,
ClusterNode node,
AffinityTopologyVersion topVer)
Discovery event callback, executed from discovery thread.
|
void |
onGridDataReceived(DiscoveryDataBag.GridDiscoveryData data) |
void |
onJoiningNodeDataReceived(DiscoveryDataBag.JoiningNodeDiscoveryData data) |
void |
onKernalStart(boolean checkConsistency) |
org.apache.ignite.internal.processors.cache.ClusterCachesReconnectResult |
onReconnected(boolean active,
boolean transition) |
void |
onStart(CacheJoinNodeDiscoveryData joinDiscoData) |
void |
onStateChangeFinish(ChangeGlobalStateFinishMessage msg) |
ExchangeActions |
onStateChangeRequest(ChangeGlobalStateMessage msg,
AffinityTopologyVersion topVer,
DiscoveryDataClusterState curState) |
void |
removeRestartingCache(String cacheName) |
void |
removeRestartingCaches()
Clear up information about restarting caches.
|
String |
validateJoiningNodeData(DiscoveryDataBag.JoiningNodeDiscoveryData data,
boolean joiningNodeClient) |
void |
validateNoNewCachesWithNewFormat(CacheNodeCommonDiscoveryData clusterWideCacheData)
Validates that joining node doesn't have newly configured caches
in case when there is no cluster-wide support of SPLITTED_CACHE_CONFIGURATIONS.
|
public static final String CACHES_VIEW
public static final String CACHES_VIEW_DESC
public static final String CACHE_GRPS_VIEW
public static final String CACHE_GRPS_VIEW_DESC
public ClusterCachesInfo(GridKernalContext ctx)
ctx - Context.public void filterDynamicCacheDescriptors(Set<String> localCachesOnStart)
localCachesOnStart - Caches which were already presented on node start.public void onStart(CacheJoinNodeDiscoveryData joinDiscoData) throws IgniteCheckedException
joinDiscoData - Information about configured caches and templates.IgniteCheckedException - If configuration validation failed.public void onKernalStart(boolean checkConsistency)
throws IgniteCheckedException
checkConsistency - True if need check cache configurations consistency.IgniteCheckedException - If failed.public void onClientCacheChange(ClientCacheChangeDiscoveryMessage msg, ClusterNode node)
msg - Message.node - Node sent message.public void onCacheChangeRequested(DynamicCacheChangeFailureMessage failMsg, AffinityTopologyVersion topVer)
failMsg - Dynamic change request fail message.topVer - Current topology version.public boolean onCacheChangeRequested(DynamicCacheChangeBatch batch, AffinityTopologyVersion topVer)
batch - Cache change request.topVer - Current topology version.True if minor topology version should be increased.@Nullable public @Nullable LocalJoinCachesContext localJoinCachesContext()
public void onDiscoveryEvent(int type,
ClusterNode node,
AffinityTopologyVersion topVer)
type - Event type.node - Event node.topVer - Topology version.public void collectGridNodeData(DiscoveryDataBag dataBag, CacheConfigurationSplitter splitter)
dataBag - Discovery data bag.splitter - Cache configuration splitter.public void onGridDataReceived(DiscoveryDataBag.GridDiscoveryData data)
data - Discovery data.public void validateNoNewCachesWithNewFormat(CacheNodeCommonDiscoveryData clusterWideCacheData)
clusterWideCacheData - Cluster wide cache data.public void cleanupRemovedCaches(AffinityTopologyVersion topVer)
topVer and earlier.topVer - Topology version.public void cleanupRemovedCacheGroups(AffinityTopologyVersion topVer)
topVer and earlier.topVer - Topology version.@Nullable public @Nullable CacheGroupDescriptor markedForDeletionCacheGroupDesc(int grpId)
grpId - Group id.public void onStateChangeFinish(ChangeGlobalStateFinishMessage msg)
msg - Message.public ExchangeActions onStateChangeRequest(ChangeGlobalStateMessage msg, AffinityTopologyVersion topVer, DiscoveryDataClusterState curState) throws IgniteCheckedException
msg - Message.topVer - Current topology version.curState - Current cluster state.IgniteCheckedException - If configuration validation failed.public void onJoiningNodeDataReceived(DiscoveryDataBag.JoiningNodeDiscoveryData data)
data - Joining node data.public String validateJoiningNodeData(DiscoveryDataBag.JoiningNodeDiscoveryData data, boolean joiningNodeClient)
data - Joining node data.joiningNodeClient - Joining node is client flag.public boolean isMergeConfigSupports(ClusterNode joiningNode)
true if grid supports merge of config and False otherwise.public void onDisconnected()
public org.apache.ignite.internal.processors.cache.ClusterCachesReconnectResult onReconnected(boolean active,
boolean transition)
active - True if reconnected to active cluster.transition - True if reconnected while state transition in progress.public boolean isRestarting(String cacheName)
cacheName - Cache name.True if cache is restarting.public void removeRestartingCache(String cacheName)
cacheName - Cache name which restart were cancelled.public void removeRestartingCaches()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023