public class SubtaskStateStats extends Object implements Serializable
Collects data that is spread over different close places: CheckpointMetaData
, SubtaskState
, and PendingCheckpoint
.
This is the smallest immutable unit of the stats.
Modifier and Type | Method and Description |
---|---|
long |
getAckTimestamp()
Returns the timestamp when the acknowledgement of this subtask was received at the
coordinator.
|
long |
getAlignmentDuration() |
long |
getAsyncCheckpointDuration() |
long |
getCheckpointedSize()
Returns the incremental state size.
|
long |
getCheckpointStartDelay() |
long |
getEndToEndDuration(long triggerTimestamp)
Computes the duration since the given trigger timestamp.
|
long |
getPersistedData() |
long |
getProcessedData() |
long |
getStateSize()
Returns the size of the checkpointed state at this subtask.
|
int |
getSubtaskIndex() |
long |
getSyncCheckpointDuration() |
boolean |
getUnalignedCheckpoint() |
boolean |
isCompleted() |
public int getSubtaskIndex()
public long getStateSize()
public long getCheckpointedSize()
public long getAckTimestamp()
public long getEndToEndDuration(long triggerTimestamp)
If the trigger timestamp is greater than the ACK timestamp, this returns 0
.
triggerTimestamp
- Trigger timestamp of the checkpoint.public long getSyncCheckpointDuration()
-1
if the runtime
did not report this.public long getAsyncCheckpointDuration()
-1
if the runtime
did not report this.public long getProcessedData()
public long getPersistedData()
public long getAlignmentDuration()
-1
if the
runtime did not report this.public long getCheckpointStartDelay()
public boolean getUnalignedCheckpoint()
public boolean isCompleted()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.