public class TaskStateStats extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
TaskStateStats.TaskStateStatsSummary
Summary of the subtask stats of a single task/operator.
|
Modifier and Type | Method and Description |
---|---|
long |
getAlignmentBuffered()
Returns the total buffered bytes during alignment over all subtasks.
|
long |
getEndToEndDuration(long triggerTimestamp)
Returns the duration of this checkpoint at the task/operator calculated
as the time since triggering until the latest acknowledged subtask
or
-1 if no subtask was acknowledged yet. |
JobVertexID |
getJobVertexId()
Returns the ID of the operator the statistics belong to.
|
SubtaskStateStats |
getLatestAcknowledgedSubtaskStats()
Returns the latest acknowledged subtask stats or
null
if none was acknowledged yet. |
long |
getLatestAckTimestamp()
Returns the ack timestamp of the latest acknowledged subtask or
-1 if none was acknowledged yet. |
int |
getNumberOfAcknowledgedSubtasks()
Returns the number of acknowledged subtasks.
|
int |
getNumberOfSubtasks()
Returns the number of subtasks.
|
long |
getStateSize()
Returns the total checkpoint state size over all subtasks.
|
SubtaskStateStats[] |
getSubtaskStats()
Returns the stats for all subtasks.
|
TaskStateStats.TaskStateStatsSummary |
getSummaryStats()
Returns the summary of the subtask stats.
|
public JobVertexID getJobVertexId()
public int getNumberOfSubtasks()
public int getNumberOfAcknowledgedSubtasks()
@Nullable public SubtaskStateStats getLatestAcknowledgedSubtaskStats()
null
if none was acknowledged yet.public long getLatestAckTimestamp()
-1
if none was acknowledged yet.-1
.public long getStateSize()
public long getAlignmentBuffered()
Can return -1
if the runtime did not report this.
public long getEndToEndDuration(long triggerTimestamp)
-1
if no subtask was acknowledged yet.-1
if no subtask was acknowledged yet.public SubtaskStateStats[] getSubtaskStats()
Elements of the returned array are null
if no stats are
available yet for the respective subtask.
Note: The returned array must not be modified.
null
if no stats available yet).public TaskStateStats.TaskStateStatsSummary getSummaryStats()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.