Class VertexThreadInfoTracker
- java.lang.Object
-
- org.apache.flink.runtime.webmonitor.threadinfo.VertexThreadInfoTracker
-
- All Implemented Interfaces:
VertexStatsTracker<VertexThreadInfoStats>
public class VertexThreadInfoTracker extends Object implements VertexStatsTracker<VertexThreadInfoStats>
Tracker of thread infos forExecutionJobVertex
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<VertexThreadInfoStats>
getExecutionVertexStats(JobID jobId, AccessExecutionJobVertex vertex, int subtaskIndex)
Returns statistics for a execution vertex.Optional<VertexThreadInfoStats>
getJobVertexStats(JobID jobId, AccessExecutionJobVertex vertex)
Returns statistics for a job vertex.void
shutDown()
Shuts theVertexStatsTracker
down.
-
-
-
Method Detail
-
getJobVertexStats
public Optional<VertexThreadInfoStats> getJobVertexStats(JobID jobId, AccessExecutionJobVertex vertex)
Description copied from interface:VertexStatsTracker
Returns statistics for a job vertex. Automatically triggers sampling request if statistics are not available or outdated.- Specified by:
getJobVertexStats
in interfaceVertexStatsTracker<VertexThreadInfoStats>
- Parameters:
jobId
- job the vertex belongs tovertex
- Vertex to get the stats for.- Returns:
- Statistics for a job vertex. This interface is intended to be used for polling request and for the duration while the statistics are being gathered, the returned Optional can be empty.
-
getExecutionVertexStats
public Optional<VertexThreadInfoStats> getExecutionVertexStats(JobID jobId, AccessExecutionJobVertex vertex, int subtaskIndex)
Description copied from interface:VertexStatsTracker
Returns statistics for a execution vertex. Automatically triggers sampling request if statistics are not available or outdated.Note: A single subtask may have multiple attempts, it will return the result of all attempts.
- Specified by:
getExecutionVertexStats
in interfaceVertexStatsTracker<VertexThreadInfoStats>
- Parameters:
jobId
- job the vertex belongs tovertex
- Vertex to get the stats for.subtaskIndex
- SubtaskIndex to get the stats for.- Returns:
- Statistics for a execution vertex. This interface is intended to be used for polling request and for the duration while the statistics are being gathered, the returned Optional can be empty.
-
shutDown
public void shutDown()
Description copied from interface:VertexStatsTracker
Shuts theVertexStatsTracker
down.- Specified by:
shutDown
in interfaceVertexStatsTracker<VertexThreadInfoStats>
-
-