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 |
getAlignmentBuffered()
Returns the number of bytes buffered during stream alignment (for
exactly-once only).
|
long |
getAlignmentDuration()
Returns the duration of the stream alignment (for exactly-once only).
|
long |
getAsyncCheckpointDuration()
Returns the duration of the asynchronous part of the checkpoint.
|
long |
getEndToEndDuration(long triggerTimestamp)
Computes the duration since the given trigger timestamp.
|
long |
getStateSize()
Returns the size of the checkpointed state at this subtask.
|
int |
getSubtaskIndex()
Returns the subtask index.
|
long |
getSyncCheckpointDuration()
Returns the duration of the synchronous part of the checkpoint.
|
public int getSubtaskIndex()
public long getStateSize()
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()
Can return -1
if the runtime did not report this.
-1
.public long getAsyncCheckpointDuration()
Can return -1
if the runtime did not report this.
-1
.public long getAlignmentBuffered()
Can return -1
if the runtime did not report this.
-1
.public long getAlignmentDuration()
Can return -1
if the runtime did not report this.
-1
.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.