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.
|
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()
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 checkpointCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.