Class NoopTaskHolder

java.lang.Object
org.apache.druid.java.util.metrics.NoopTaskHolder
All Implemented Interfaces:
TaskHolder

public class NoopTaskHolder extends Object implements TaskHolder
A TaskHolder implementation for all servers that are not CliPeon.

This holder does not provide task information and will return null from all its methods.

  • Constructor Details

    • NoopTaskHolder

      public NoopTaskHolder()
  • Method Details

    • getDataSource

      @Nullable public String getDataSource()
      Specified by:
      getDataSource in interface TaskHolder
      Returns:
      the datasource name for the task, or null if called from a server that is not CliPeon.
    • getTaskId

      @Nullable public String getTaskId()
      Specified by:
      getTaskId in interface TaskHolder
      Returns:
      the taskId, or null if called from a server that is not CliPeon.
    • getTaskType

      @Nullable public String getTaskType()
      Specified by:
      getTaskType in interface TaskHolder
      Returns:
      the type name of this task, or null if called from a server that is not CliPeon.
    • getGroupId

      @Nullable public String getGroupId()
      Specified by:
      getGroupId in interface TaskHolder
      Returns:
      the group ID of this task, or null if called from a server that is not CliPeon.
    • getMetricDimensions

      public Map<String,String> getMetricDimensions()
      Specified by:
      getMetricDimensions in interface TaskHolder
      Returns:
      a map of task holder dimensions, or an empty map if called from a server that is not CliPeon.