public interface Supervisor
| Modifier and Type | Method and Description |
|---|---|
void |
checkpoint(int taskGroupId,
DataSourceMetadata checkpointMetadata)
The definition of checkpoint is not very strict as currently it does not affect data or control path.
|
LagStats |
computeLagStats()
Computes maxLag, totalLag and avgLag
|
int |
getActiveTaskGroupsCount() |
default List<ParseExceptionReport> |
getParseErrors() |
SupervisorStateManager.State |
getState() |
default Map<String,Map<String,Object>> |
getStats() |
SupervisorReport |
getStatus() |
default Boolean |
isHealthy() |
void |
reset(DataSourceMetadata dataSourceMetadata) |
void |
start() |
void |
stop(boolean stopGracefully) |
void start()
void stop(boolean stopGracefully)
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.SupervisorReport getStatus()
SupervisorStateManager.State getState()
default List<ParseExceptionReport> getParseErrors()
void reset(DataSourceMetadata dataSourceMetadata)
void checkpoint(int taskGroupId,
DataSourceMetadata checkpointMetadata)
taskGroupId - unique Identifier to figure out for which sequence to do checkpointingcheckpointMetadata - metadata for the sequence to currently checkpointLagStats computeLagStats()
int getActiveTaskGroupsCount()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.