T
- type of the snapshot result.public abstract class AbstractSnapshotStrategy<T extends StateObject> extends Object implements SnapshotStrategy<SnapshotResult<T>>
SnapshotStrategy
, that gives a consistent logging
across state backends.Modifier and Type | Field and Description |
---|---|
protected String |
description
Descriptive name of the snapshot strategy that will appear in the log outputs and
toString() . |
Modifier | Constructor and Description |
---|---|
protected |
AbstractSnapshotStrategy(String description) |
Modifier and Type | Method and Description |
---|---|
void |
logAsyncCompleted(Object checkpointOutDescription,
long startTime)
Logs the duration of the asynchronous snapshot part from the given start time.
|
void |
logSyncCompleted(Object checkpointOutDescription,
long startTime)
Logs the duration of the synchronous snapshot part from the given start time.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
snapshot
@Nonnull protected final String description
toString()
.public void logSyncCompleted(@Nonnull Object checkpointOutDescription, long startTime)
public void logAsyncCompleted(@Nonnull Object checkpointOutDescription, long startTime)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.