Class VertexThreadInfoStats
java.lang.Object
org.apache.flink.runtime.webmonitor.threadinfo.VertexThreadInfoStats
- All Implemented Interfaces:
Statistics
Thread info statistics of single JobVertex or ExecutionVertex.
-
Constructor Summary
ConstructorsConstructorDescriptionVertexThreadInfoStats(int requestId, long startTime, long endTime, Map<ExecutionAttemptID, Collection<ThreadInfoSample>> samplesBySubtask) Creates a thread details sample. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the timestamp, when all samples where collected.intintReturns the ID of the sample.Returns the a map of thread info samples by subtask (execution ID).longReturns the timestamp, when the sample was triggered.toString()
-
Constructor Details
-
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 Details
-
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:
getEndTimein interfaceStatistics- Returns:
- Timestamp, when all samples where collected
-
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() -
toString
-