Class VertexThreadInfoTracker

    • Method Detail

      • getJobVertexStats

        public Optional<VertexThreadInfoStats> getJobVertexStats​(org.apache.flink.api.common.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 interface VertexStatsTracker<VertexThreadInfoStats>
        Parameters:
        jobId - job the vertex belongs to
        vertex - 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: 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 interface VertexStatsTracker<VertexThreadInfoStats>
        Parameters:
        jobId - job the vertex belongs to
        vertex - 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.