public class CacheGroupContext extends Object
public boolean systemCache()
True if this is cache group for one of system caches.public UUID receivedFrom()
public boolean storeCacheIdInDataPage()
True if cacheId should be stored in data pages.public boolean deploymentEnabled()
True if deployment is enabled.public GridCachePreloader preloader()
public byte ioPolicy()
public boolean hasCache(String cacheName)
cacheName - Cache name.True if group contains cache with given name.public GridCacheContext singleCacheContext()
public void unwindUndeploys()
public boolean eventRecordable(int type)
type - Event type to check.True if given event type should be recorded.public void addRebalanceEvent(int part,
int type,
ClusterNode discoNode,
int discoType,
long discoTs)
part - Partition.type - Event type.discoNode - Discovery node.discoType - Discovery event type.discoTs - Discovery event timestamp.public void addUnloadEvent(int part)
part - Partition.public void addCacheEvent(int part,
KeyCacheObject key,
UUID evtNodeId,
int type,
@Nullable
CacheObject newVal,
boolean hasNewVal,
@Nullable
CacheObject oldVal,
boolean hasOldVal,
boolean keepBinary)
part - Partition.key - Key.evtNodeId - Event node ID.type - Event type.newVal - New value.hasNewVal - Has new value flag.oldVal - Old values.hasOldVal - Has old value flag.keepBinary - Keep binary flag.public boolean queriesEnabled()
True if contains cache with query indexing enabled.public boolean allowFastEviction()
True if fast eviction is allowed.public boolean isDrEnabled()
True in case replication is enabled.public FreeList freeList()
public ReuseList reuseList()
public CacheObjectContext cacheObjectContext()
public GridCacheSharedContext shared()
public DataRegion dataRegion()
public boolean affinityNode()
True if local node is affinity node.public GridDhtPartitionTopology topology()
public IgniteCacheOffheapManager offheap()
public boolean needsRecovery()
public void needsRecovery(boolean needsRecovery)
needsRecovery - Needs recovery flag.public AffinityTopologyVersion localStartVersion()
public boolean isLocal()
True if cache is local.public boolean isReplicated()
True if cache is local.public CacheConfiguration config()
public IgnitePredicate<ClusterNode> nodeFilter()
@Nullable public TopologyValidator topologyValidator()
public AffinityFunction affinityFunction()
public GridAffinityAssignmentCache affinity()
@Nullable public String name()
null if group name was not specified for cache.public String cacheOrGroupName()
public int groupId()
public boolean sharedGroup()
True if group can contain multiple caches.public void onKernalStop()
public List<GridCacheContext> caches()
public void onPartitionEvicted(int part)
part - Partition ID.public void addCacheWithContinuousQuery(GridCacheContext cctx)
cctx - Cache context.public void removeCacheWithContinuousQuery(GridCacheContext cctx)
cctx - Cache context.public void onPartitionCounterUpdate(int cacheId,
int part,
long cntr,
AffinityTopologyVersion topVer,
boolean primary)
cacheId - ID of cache initiated counter update.part - Partition number.cntr - Counter.topVer - Topology version for current operation.public void start()
throws IgniteCheckedException
IgniteCheckedException - If failed.public boolean persistenceEnabled()
public void onDisconnected(IgniteFuture reconnectFut)
reconnectFut - Reconnect future.public boolean rebalanceEnabled()
True if rebalance is enabled.public void onReconnected()
public CacheGroupMetricsMXBean mxBean()
public boolean walEnabled()
public void walEnabled(boolean enabled)
enabled - WAL enabled flag.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018