Class VertexThreadInfoStats
- java.lang.Object
-
- org.apache.flink.runtime.webmonitor.threadinfo.VertexThreadInfoStats
-
- All Implemented Interfaces:
Statistics
public class VertexThreadInfoStats extends Object implements Statistics
Thread info statistics of single JobVertex or ExecutionVertex.
-
-
Constructor Summary
Constructors Constructor Description VertexThreadInfoStats(int requestId, long startTime, long endTime, Map<ExecutionAttemptID,Collection<ThreadInfoSample>> samplesBySubtask)
Creates a thread details sample.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getEndTime()
Returns the timestamp, when all samples where collected.int
getNumberOfSubtasks()
int
getRequestId()
Returns the ID of the sample.Map<ExecutionAttemptID,Collection<ThreadInfoSample>>
getSamplesBySubtask()
Returns the a map of thread info samples by subtask (execution ID).long
getStartTime()
Returns the timestamp, when the sample was triggered.String
toString()
-
-
-
Constructor Detail
-
VertexThreadInfoStats
public VertexThreadInfoStats(int requestId, long startTime, long endTime, Map<ExecutionAttemptID,Collection<ThreadInfoSample>> samplesBySubtask)
Creates a thread details sample.- Parameters:
requestId
- ID of the sample.startTime
- Timestamp, when the sample was triggered.endTime
- Timestamp, when all thread info samples were collected.samplesBySubtask
- Map of thread info samples by subtask (execution ID).
-
-
Method Detail
-
getRequestId
public int getRequestId()
Returns the ID of the sample.- Returns:
- ID of the sample
-
getStartTime
public long getStartTime()
Returns the timestamp, when the sample was triggered.- Returns:
- Timestamp, when the sample was triggered
-
getEndTime
public long getEndTime()
Returns the timestamp, when all samples where collected.- Specified by:
getEndTime
in interfaceStatistics
- Returns:
- Timestamp, when all samples where collected
-
getSamplesBySubtask
public Map<ExecutionAttemptID,Collection<ThreadInfoSample>> getSamplesBySubtask()
Returns the a map of thread info samples by subtask (execution ID).- Returns:
- Map of thread info samples by task (execution ID)
-
getNumberOfSubtasks
public int getNumberOfSubtasks()
-
-