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