Interface SupervisorSpec
-
- All Known Implementing Classes:
NoopSupervisorSpec
public interface SupervisorSpec
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SupervisorTaskAutoScalercreateAutoscaler(Supervisor supervisor)default SupervisorSpeccreateRunningSpec()SupervisorcreateSupervisor()Create a newSupervisorinstance.default SupervisorSpeccreateSuspendedSpec()List<String>getDataSources()StringgetId()Return an unique id ofSupervisor.default 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.SupervisorsTabledefault booleanisSuspended()
-
-
-
Method Detail
-
getId
String getId()
Return an unique id ofSupervisor.
-
createSupervisor
Supervisor createSupervisor()
Create a newSupervisorinstance.
-
createAutoscaler
default SupervisorTaskAutoScaler createAutoscaler(Supervisor supervisor)
-
createSuspendedSpec
default SupervisorSpec createSuspendedSpec()
-
createRunningSpec
default SupervisorSpec createRunningSpec()
-
isSuspended
default boolean isSuspended()
-
getType
String getType()
This API is only used for informational purposes in org.apache.druid.sql.calcite.schema.SystemSchema.SupervisorsTable- Returns:
- supervisor type
-
getInputSourceResources
@Nonnull default Set<ResourceAction> getInputSourceResources() throws UnsupportedOperationException
- 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. - Throws:
UnsupportedOperationException
-
getSource
String getSource()
This API is only used for informational purposes in org.apache.druid.sql.calcite.schema.SystemSchema.SupervisorsTable- Returns:
- source like stream or topic name
-
-