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) |
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 - Topology version.public boolean onCacheChangeRequested(DynamicCacheChangeBatch batch, AffinityTopologyVersion topVer)
batch - Cache change request.topVer - 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 cleanupRemovedCache(String cacheName)
cacheName - Cache name.public void cleanupRemovedGroup(int grpId)
grpId - Group ID.@Nullable public @Nullable DynamicCacheDescriptor markedForDeletionCacheDesc(String cacheName)
cacheName - Cache name.@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)
data - Joining node data.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.9.1 Release Date : December 9 2020