Class QueryScopeInfo

java.lang.Object
org.apache.flink.runtime.metrics.dump.QueryScopeInfo
Direct Known Subclasses:
QueryScopeInfo.JobManagerOperatorQueryScopeInfo, QueryScopeInfo.JobManagerQueryScopeInfo, QueryScopeInfo.JobQueryScopeInfo, QueryScopeInfo.OperatorQueryScopeInfo, QueryScopeInfo.TaskManagerQueryScopeInfo, QueryScopeInfo.TaskQueryScopeInfo

public abstract class QueryScopeInfo extends Object
Container for scope related information as required by the MetricQueryService.
  • Field Details

    • INFO_CATEGORY_JM

      public static final byte INFO_CATEGORY_JM
      Categories to be returned by getCategory() to avoid instanceof checks.
      See Also:
    • INFO_CATEGORY_TM

      public static final byte INFO_CATEGORY_TM
      See Also:
    • INFO_CATEGORY_JOB

      public static final byte INFO_CATEGORY_JOB
      See Also:
    • INFO_CATEGORY_TASK

      public static final byte INFO_CATEGORY_TASK
      See Also:
    • INFO_CATEGORY_OPERATOR

      public static final byte INFO_CATEGORY_OPERATOR
      See Also:
    • INFO_CATEGORY_JM_OPERATOR

      public static final byte INFO_CATEGORY_JM_OPERATOR
      See Also:
    • scope

      public final String scope
      The remaining scope not covered by specific fields.
  • Method Details

    • copy

      public abstract QueryScopeInfo copy(String userScope)
      Create a copy of this QueryScopeInfo and append the given scope.
      Parameters:
      userScope - scope to append
      Returns:
      modified copy of this QueryScopeInfo
    • getCategory

      public abstract byte getCategory()
      Returns the category for this QueryScopeInfo.
      Returns:
      category
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • concatScopes

      protected String concatScopes(String additionalScope)