Class NoopTaskHolder
java.lang.Object
org.apache.druid.java.util.metrics.NoopTaskHolder
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
NoopTaskHolder
public NoopTaskHolder()
-
-
Method Details
-
getDataSource
- Specified by:
getDataSourcein interfaceTaskHolder- Returns:
- the datasource name for the task, or
nullif called from a server that is notCliPeon.
-
getTaskId
- Specified by:
getTaskIdin interfaceTaskHolder- Returns:
- the taskId, or
nullif called from a server that is notCliPeon.
-
getTaskType
- Specified by:
getTaskTypein interfaceTaskHolder- Returns:
- the type name of this task, or
nullif called from a server that is notCliPeon.
-
getGroupId
- Specified by:
getGroupIdin interfaceTaskHolder- Returns:
- the group ID of this task, or
nullif called from a server that is notCliPeon.
-
getMetricDimensions
- Specified by:
getMetricDimensionsin interfaceTaskHolder- Returns:
- a map of task holder dimensions, or an empty map if called from a server that is not
CliPeon.
-