public class CheckpointProgressImpl extends Object implements CheckpointProgress
| 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 |
nextCpNanos() |
void |
nextCpNanos(long nextCpNanos) |
boolean |
nextSnapshot() |
void |
nextSnapshot(boolean nextSnapshot) |
void |
onStateChanged(CheckpointState state,
Runnable clo)
Invokes a callback closure then a checkpoint reaches specific state.
|
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 delta)
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 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 nextCpNanos()
public void nextCpNanos(long nextCpNanos)
nextCpNanos - New scheduled time of checkpoint.public String reason()
reason in interface CheckpointProgresspublic 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 delta)
updateEvictedPages in interface CheckpointProgressdelta - 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 CheckpointProgresspublic void onStateChanged(CheckpointState state, Runnable clo)
onStateChanged in interface CheckpointProgressstate - State.clo - Closure to call.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023