Class CheckpointMetricsBuilder
java.lang.Object
org.apache.flink.runtime.checkpoint.CheckpointMetricsBuilder
A builder for
CheckpointMetrics.
This class is not thread safe, but parts of it can actually be used from different threads.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()longlonglonglonglongsetAlignmentDurationNanos(long alignmentDurationNanos) setAlignmentDurationNanos(CompletableFuture<Long> alignmentDurationNanos) setAsyncDurationMillis(long asyncDurationMillis) setBytesPersistedDuringAlignment(long bytesPersistedDuringAlignment) setBytesPersistedOfThisCheckpoint(long bytesPersistedOfThisCheckpoint) setBytesProcessedDuringAlignment(long bytesProcessedDuringAlignment) setBytesProcessedDuringAlignment(CompletableFuture<Long> bytesProcessedDuringAlignment) setCheckpointStartDelayNanos(long checkpointStartDelayNanos) setSyncDurationMillis(long syncDurationMillis) setTotalBytesPersisted(long totalBytesPersisted)
-
Constructor Details
-
CheckpointMetricsBuilder
public CheckpointMetricsBuilder()
-
-
Method Details
-
setBytesProcessedDuringAlignment
public CheckpointMetricsBuilder setBytesProcessedDuringAlignment(long bytesProcessedDuringAlignment) -
setBytesProcessedDuringAlignment
public CheckpointMetricsBuilder setBytesProcessedDuringAlignment(CompletableFuture<Long> bytesProcessedDuringAlignment) -
getBytesProcessedDuringAlignment
-
setBytesPersistedDuringAlignment
public CheckpointMetricsBuilder setBytesPersistedDuringAlignment(long bytesPersistedDuringAlignment) -
getAlignmentDurationNanosOrDefault
public long getAlignmentDurationNanosOrDefault() -
setAlignmentDurationNanos
-
setAlignmentDurationNanos
public CheckpointMetricsBuilder setAlignmentDurationNanos(CompletableFuture<Long> alignmentDurationNanos) -
getAlignmentDurationNanos
-
setSyncDurationMillis
-
getSyncDurationMillis
public long getSyncDurationMillis() -
setAsyncDurationMillis
-
getAsyncDurationMillis
public long getAsyncDurationMillis() -
setCheckpointStartDelayNanos
-
getCheckpointStartDelayNanos
public long getCheckpointStartDelayNanos() -
setTotalBytesPersisted
-
getBytesPersistedOfThisCheckpoint
public long getBytesPersistedOfThisCheckpoint() -
setBytesPersistedOfThisCheckpoint
public CheckpointMetricsBuilder setBytesPersistedOfThisCheckpoint(long bytesPersistedOfThisCheckpoint) -
build
-
buildIncomplete
-