Interface SupervisorSpec
- All Known Implementing Classes:
NoopSupervisorSpec
public interface SupervisorSpec
-
Method Summary
Modifier and TypeMethodDescriptiondefault SupervisorTaskAutoScalercreateAutoscaler(Supervisor supervisor) default SupervisorSpecCreate a newSupervisorinstance.default SupervisorSpecgetId()Return an unique id ofSupervisor.default Set<ResourceAction>This API is only used for informational purposes in org.apache.druid.sql.calcite.schema.SystemSchema.SupervisorsTablegetType()This API is only used for informational purposes in org.apache.druid.sql.calcite.schema.SystemSchema.SupervisorsTabledefault booleandefault voidvalidateSpecUpdateTo(SupervisorSpec proposedSpec) Checks if a spec can be replaced with a proposed spec (proposesSpec).
-
Method Details
-
getId
String getId()Return an unique id ofSupervisor. -
createSupervisor
Supervisor createSupervisor()Create a newSupervisorinstance. -
createAutoscaler
-
getDataSources
-
createSuspendedSpec
-
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
- 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
-
validateSpecUpdateTo
Checks if a spec can be replaced with a proposed spec (proposesSpec).By default, this method does no validation checks. Implementations of this method can choose to define rules for spec updates and throw an exception if the update is not allowed.
- Parameters:
proposedSpec- the proposed supervisor spec- Throws:
DruidException- if the spec update is not allowed
-