public class CheckpointProgressImpl extends Object implements CheckpointProgress
| Constructor and Description |
|---|
CheckpointProgressImpl(long cpFreq) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCounters()
Clear cp progress counters.
|
int |
currentCheckpointPagesCount() |
void |
currentCheckpointPagesCount(int num)
Sets current checkpoint pages num to store.
|
AtomicInteger |
evictedPagesCounter() |
void |
fail(Throwable error)
Mark this checkpoint execution as failed.
|
GridFutureAdapter |
futureFor(CheckpointState state) |
PartitionDestroyQueue |
getDestroyQueue() |
boolean |
greaterOrEqualTo(CheckpointState expectedState) |
void |
initCounters(int pagesSize)
Initialize all counters before checkpoint.
|
boolean |
inProgress() |
long |
nextCopyNanos() |
void |
nextCopyNanos(long nextCpNanos) |
boolean |
nextSnapshot() |
void |
nextSnapshot(boolean nextSnapshot) |
String |
reason() |
void |
reason(String reason) |
SnapshotOperation |
snapshotOperation() |
void |
snapshotOperation(SnapshotOperation snapshotOperation) |
AtomicInteger |
syncedPagesCounter() |
void |
transitTo(@NotNull CheckpointState newState)
Changing checkpoint state if order of state is correct.
|
void |
updateEvictedPages(int deltha)
Update evicted pages in checkpoint;
|
void |
updateSyncedPages(int deltha)
Update synced pages in checkpoint;
|
void |
updateWrittenPages(int deltha)
Update written pages in checkpoint;
|
AtomicInteger |
writtenPagesCounter() |
public CheckpointProgressImpl(long cpFreq)
cpFreq - Timeout until next checkpoint.public boolean inProgress()
inProgress in interface CheckpointProgresstrue If checkpoint already started but have not finished yet.public boolean greaterOrEqualTo(CheckpointState expectedState)
expectedState - Expected state.true if current state equal to given state.public GridFutureAdapter futureFor(CheckpointState state)
futureFor in interface CheckpointProgressstate - State for which future should be returned.public void fail(Throwable error)
fail in interface CheckpointProgresserror - Causal error of fail.public void transitTo(@NotNull
@NotNull CheckpointState newState)
transitTo in interface CheckpointProgressnewState - New checkpoint state.public PartitionDestroyQueue getDestroyQueue()
getDestroyQueue in interface CheckpointProgresspublic boolean nextSnapshot()
public long nextCopyNanos()
public void nextCopyNanos(long nextCpNanos)
nextCpNanos - New scheduled time of checkpoint.public String reason()
public void reason(String reason)
reason - New wakeup reason.public SnapshotOperation snapshotOperation()
public void snapshotOperation(SnapshotOperation snapshotOperation)
snapshotOperation - New snapshot operation that should be performed if set to true.public void nextSnapshot(boolean nextSnapshot)
nextSnapshot - New flag indicates that snapshot operation will be performed after checkpoint.public AtomicInteger writtenPagesCounter()
writtenPagesCounter in interface CheckpointProgressnull only if checkpoint is running.public void updateWrittenPages(int deltha)
updateWrittenPages in interface CheckpointProgressdeltha - Pages num to update.public AtomicInteger syncedPagesCounter()
syncedPagesCounter in interface CheckpointProgressnull only if checkpoint is running.public void updateSyncedPages(int deltha)
updateSyncedPages in interface CheckpointProgressdeltha - Pages num to update.public AtomicInteger evictedPagesCounter()
evictedPagesCounter in interface CheckpointProgressnull only if checkpoint is running.public void updateEvictedPages(int deltha)
updateEvictedPages in interface CheckpointProgressdeltha - Pages num to update.public int currentCheckpointPagesCount()
currentCheckpointPagesCount in interface CheckpointProgresspublic void currentCheckpointPagesCount(int num)
currentCheckpointPagesCount in interface CheckpointProgressnum - Pages to store.public void initCounters(int pagesSize)
initCounters in interface CheckpointProgresspublic void clearCounters()
clearCounters in interface CheckpointProgress
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020