Class NoopSupervisorSpec
- java.lang.Object
-
- org.apache.druid.indexing.overlord.supervisor.NoopSupervisorSpec
-
- All Implemented Interfaces:
SupervisorSpec
public class NoopSupervisorSpec extends Object implements SupervisorSpec
Used as a tombstone marker in the supervisors metadata table to indicate that the supervisor has been removed.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SupervisorSpeccreateRunningSpec()SupervisorcreateSupervisor()Create a newSupervisorinstance.SupervisorSpeccreateSuspendedSpec()booleanequals(Object o)List<String>getDataSources()StringgetId()Return an unique id ofSupervisor.Set<ResourceAction>getInputSourceResources()StringgetSource()This API is only used for informational purposes in org.apache.druid.sql.calcite.schema.SystemSchema.SupervisorsTableStringgetType()This API is only used for informational purposes in org.apache.druid.sql.calcite.schema.SystemSchema.SupervisorsTableinthashCode()booleanisSuspended()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.indexing.overlord.supervisor.SupervisorSpec
createAutoscaler
-
-
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:SupervisorSpecReturn an unique id ofSupervisor.- Specified by:
getIdin interfaceSupervisorSpec
-
getDataSources
@Nullable public List<String> getDataSources()
- Specified by:
getDataSourcesin interfaceSupervisorSpec
-
isSuspended
public boolean isSuspended()
- Specified by:
isSuspendedin interfaceSupervisorSpec
-
getType
public String getType()
Description copied from interface:SupervisorSpecThis API is only used for informational purposes in org.apache.druid.sql.calcite.schema.SystemSchema.SupervisorsTable- Specified by:
getTypein interfaceSupervisorSpec- Returns:
- supervisor type
-
getInputSourceResources
@Nonnull public Set<ResourceAction> getInputSourceResources()
- Specified by:
getInputSourceResourcesin interfaceSupervisorSpec- Returns:
- The types of
InputSourcethat the task uses. Empty set is returned if the task does not use any. Users can be given permission to access particular types of input sources but not others, using theAuthConfig.enableInputSourceSecurityconfig.
-
getSource
public String getSource()
Description copied from interface:SupervisorSpecThis API is only used for informational purposes in org.apache.druid.sql.calcite.schema.SystemSchema.SupervisorsTable- Specified by:
getSourcein interfaceSupervisorSpec- Returns:
- source like stream or topic name
-
createSupervisor
public Supervisor createSupervisor()
Description copied from interface:SupervisorSpecCreate a newSupervisorinstance.- Specified by:
createSupervisorin interfaceSupervisorSpec
-
createRunningSpec
public SupervisorSpec createRunningSpec()
- Specified by:
createRunningSpecin interfaceSupervisorSpec
-
createSuspendedSpec
public SupervisorSpec createSuspendedSpec()
- Specified by:
createSuspendedSpecin interfaceSupervisorSpec
-
-