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 for
ExecutionJobVertex.-
Method Summary
Modifier and TypeMethodDescriptiongetExecutionVertexStats(org.apache.flink.api.common.JobID jobId, AccessExecutionJobVertex vertex, int subtaskIndex) Returns statistics for a execution vertex.getJobVertexStats(org.apache.flink.api.common.JobID jobId, AccessExecutionJobVertex vertex) Returns statistics for a job vertex.voidshutDown()Shuts theVertexStatsTrackerdown.
-
Method Details
-
getJobVertexStats
public Optional<VertexThreadInfoStats> getJobVertexStats(org.apache.flink.api.common.JobID jobId, AccessExecutionJobVertex vertex) Description copied from interface:VertexStatsTrackerReturns statistics for a job vertex. Automatically triggers sampling request if statistics are not available or outdated.- Specified by:
getJobVertexStatsin 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(org.apache.flink.api.common.JobID jobId, AccessExecutionJobVertex vertex, int subtaskIndex) Description copied from interface:VertexStatsTrackerReturns 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:
getExecutionVertexStatsin 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:VertexStatsTrackerShuts theVertexStatsTrackerdown.- Specified by:
shutDownin interfaceVertexStatsTracker<VertexThreadInfoStats>
-