Class MetricStore
java.lang.Object
org.apache.flink.runtime.rest.handler.legacy.metrics.MetricStore
Nested data-structure to store metrics.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classStructure containing metrics of a single component.static classSub-structure containing metrics of a single subtask.static classSub-structure containing metrics of a single TaskManager.static classSub-structure containing metrics of a single Task. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(MetricDump metric) Returns theMetricStore.ComponentMetricStorefor the JobManager.getJobManagerOperatorMetricStore(String jobID, String taskID) getJobMetricStore(String jobID) Returns theMetricStore.ComponentMetricStorefor the given job ID.getJobs()getSubtaskAttemptMetricStore(String jobID, String taskID, int subtaskIndex, int attemptNumber) getSubtaskMetricStore(String jobID, String taskID, int subtaskIndex) Returns theMetricStore.ComponentMetricStorefor the given job/task ID and subtask index.Returns theMetricStore.TaskManagerMetricStorefor the given taskmanager ID.getTaskMetricStore(String jobID, String taskID) Returns theMetricStore.ComponentMetricStorefor the given job/task ID.void
-
Constructor Details
-
MetricStore
public MetricStore()
-
-
Method Details
-
updateCurrentExecutionAttempts
-
getRepresentativeAttempts
-
getJobManagerMetricStore
Returns theMetricStore.ComponentMetricStorefor the JobManager.- Returns:
- ComponentMetricStore for the JobManager
-
getJobManagerOperatorMetricStore
public MetricStore.ComponentMetricStore getJobManagerOperatorMetricStore(String jobID, String taskID) -
getTaskManagerMetricStore
Returns theMetricStore.TaskManagerMetricStorefor the given taskmanager ID.- Parameters:
tmID- taskmanager ID- Returns:
- TaskManagerMetricStore for the given ID, or null if no store for the given argument exists
-
getJobMetricStore
Returns theMetricStore.ComponentMetricStorefor the given job ID.- Parameters:
jobID- job ID- Returns:
- ComponentMetricStore for the given ID, or null if no store for the given argument exists
-
getTaskMetricStore
Returns theMetricStore.ComponentMetricStorefor the given job/task ID.- Parameters:
jobID- job IDtaskID- task ID- Returns:
- ComponentMetricStore for given IDs, or null if no store for the given arguments exists
-
getSubtaskMetricStore
public MetricStore.ComponentMetricStore getSubtaskMetricStore(String jobID, String taskID, int subtaskIndex) Returns theMetricStore.ComponentMetricStorefor the given job/task ID and subtask index.- Parameters:
jobID- job IDtaskID- task IDsubtaskIndex- subtask index- Returns:
- SubtaskMetricStore for the given IDs and index, or null if no store for the given arguments exists
-
getSubtaskAttemptMetricStore
public MetricStore.ComponentMetricStore getSubtaskAttemptMetricStore(String jobID, String taskID, int subtaskIndex, int attemptNumber) -
getJobs
-
getTaskManagers
-
add
-