Interface Supervisor
- All Known Subinterfaces:
StreamSupervisor
public interface Supervisor
An interface representing a general supervisor for managing ingestion tasks. For streaming ingestion use cases,
see
StreamSupervisor.-
Method Summary
Modifier and TypeMethodDescriptiondefault SupervisorTaskAutoScalerdefault List<ParseExceptionReport>getState()getStats()Returns all stats from stream consumer.default Booleanvoidreset(DataSourceMetadata dataSourceMetadata) Resets any stored metadata by the supervisor.voidstart()voidstop(boolean stopGracefully) default com.google.common.util.concurrent.ListenableFuture<Void>Starts non-graceful shutdown of the supervisor and returns a future that completes when shutdown is complete.
-
Method Details
-
start
void start() -
stop
void stop(boolean stopGracefully) - Parameters:
stopGracefully- If true, supervisor will cleanly shutdown managed tasks if possible (for example signalling them to publish their segments and exit). The implementation may block until the tasks have either acknowledged or completed. If false, supervisor will stop immediately and leave any running tasks as they are.
-
stopAsync
Starts non-graceful shutdown of the supervisor and returns a future that completes when shutdown is complete. -
getStatus
SupervisorReport getStatus() -
getState
SupervisorStateManager.State getState() -
getStats
Returns all stats from stream consumer. IfincludeOnlyStreamConsumerStatsis true, returns only stream platform stats, like Kafka metrics. -
getParseErrors
-
isHealthy
-
createAutoscaler
-
reset
Resets any stored metadata by the supervisor.- Parameters:
dataSourceMetadata- optional dataSource metadata.
-