public class IdleVerifyUtility extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IdleVerifyUtility.IdleChecker
Idle checker.
|
Modifier and Type | Field and Description |
---|---|
static String |
GRID_NOT_IDLE_MSG
Cluster not idle message.
|
Modifier and Type | Method and Description |
---|---|
static void |
checkPartitionsPageCrcSum(FilePageStore pageStore,
CacheGroupContext grpCtx,
int partId,
byte pageType)
Checks CRC sum of pages with
pageType page type stored in partiion with partId id and assosiated
with cache group. |
static void |
checkPartitionsPageCrcSum(@Nullable FilePageStoreManager pageStoreMgr,
CacheGroupContext grpCtx,
int partId,
byte pageType)
|
static List<Integer> |
compareUpdateCounters(IgniteEx ign,
Map<Integer,Map<Integer,PartitionUpdateCounter>> cntrsIn,
Integer grpId)
Compares two sets with partitions and upd counters per group distribution.
|
static List<Integer> |
compareUpdateCounters(IgniteEx ign,
Map<Integer,Map<Integer,PartitionUpdateCounter>> cntrsEth,
Map<Integer,Map<Integer,PartitionUpdateCounter>> curCntrs)
Compares two sets with partitions and upd counters per group distribution.
|
static String |
formatUpdateCountersDiff(IgniteEx ig,
List<Integer> diff)
Prints diff between incoming update counters snapshots.
|
static Map<Integer,Map<Integer,PartitionUpdateCounter>> |
getUpdateCountersSnapshot(IgniteEx ign,
Set<Integer> grpIds)
Gather updateCounters info.
|
public static final String GRID_NOT_IDLE_MSG
public static void checkPartitionsPageCrcSum(@Nullable @Nullable FilePageStoreManager pageStoreMgr, CacheGroupContext grpCtx, int partId, byte pageType) throws IgniteCheckedException, GridNotIdleException
public static void checkPartitionsPageCrcSum(FilePageStore pageStore, CacheGroupContext grpCtx, int partId, @Deprecated byte pageType) throws IgniteCheckedException, GridNotIdleException
pageType
page type stored in partiion with partId
id and assosiated
with cache group. pageStore
- Page store.grpCtx
- Passed cache group context.partId
- Partition id.pageType
- Page type. Possible types PageIdAllocator.FLAG_DATA
, PageIdAllocator.FLAG_IDX
and PageIdAllocator.FLAG_AUX
.IgniteCheckedException
- If reading page failed.GridNotIdleException
- If cluster not idle.public static Map<Integer,Map<Integer,PartitionUpdateCounter>> getUpdateCountersSnapshot(IgniteEx ign, Set<Integer> grpIds)
PartitionUpdateCounter.copy()
of update counters.ign
- Ignite instance.grpIds
- Group Id`s.public static String formatUpdateCountersDiff(IgniteEx ig, List<Integer> diff)
ig
- Ignite instance.diff
- Compared groups diff.public static List<Integer> compareUpdateCounters(IgniteEx ign, Map<Integer,Map<Integer,PartitionUpdateCounter>> cntrsIn, Integer grpId)
ign
- Ignite instance.cntrsIn
- Group id`s with counters per partitions per groups distribution.grpId
- Group id to compare.public static List<Integer> compareUpdateCounters(IgniteEx ign, Map<Integer,Map<Integer,PartitionUpdateCounter>> cntrsEth, Map<Integer,Map<Integer,PartitionUpdateCounter>> curCntrs)
ign
- Ignite instance.cntrsEth
- Ethalon group id`s with counters per partitions per groups distribution.curCntrs
- Group id`s with counters per partitions per groups distribution compare with.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021