public class CacheState extends Object
| Constructor and Description |
|---|
CacheState(int partsCnt) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPartitionState(int partId,
long size,
long cntr) |
void |
addPartitionState(int partId,
long size,
long cntr,
byte state) |
long |
counterByPartition(int partId)
Gets partition counter by partition ID.
|
int |
partitionByIndex(int idx) |
long |
partitionCounterByIndex(int idx) |
long |
partitionSizeByIndex(int idx) |
int |
size() |
long |
sizeByPartition(int partId)
Gets partition size by partition ID.
|
byte |
stateByIndex(int idx) |
String |
toString() |
public CacheState(int partsCnt)
partsCnt - Partitions count.public void addPartitionState(int partId,
long size,
long cntr)
partId - Partition ID to add.size - Partition size.cntr - Partition counter.public void addPartitionState(int partId,
long size,
long cntr,
byte state)
partId - Partition ID to add.size - Partition size.cntr - Partition counter.state - Partition state.public long sizeByPartition(int partId)
partId - Partition ID.-1 if partition is not present in the record).public long counterByPartition(int partId)
partId - Partition ID.-1 if partition is not present in the record).public int partitionByIndex(int idx)
idx - Index to get.public byte stateByIndex(int idx)
idx - Index to get.public long partitionSizeByIndex(int idx)
idx - Index to get.public long partitionCounterByIndex(int idx)
idx - Index to get.public int size()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020