public interface Supervisor
| Modifier and Type | Method and Description |
|---|---|
void |
checkpoint(Integer taskGroupId,
String baseSequenceName,
DataSourceMetadata previousCheckPoint,
DataSourceMetadata currentCheckPoint)
The definition of checkpoint is not very strict as currently it does not affect data or control path.
|
default Map<String,Map<String,Object>> |
getStats() |
SupervisorReport |
getStatus() |
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()
void reset(DataSourceMetadata dataSourceMetadata)
void checkpoint(@Nullable Integer taskGroupId, @Deprecated String baseSequenceName, DataSourceMetadata previousCheckPoint, DataSourceMetadata currentCheckPoint)
taskGroupId - unique Identifier to figure out for which sequence to do checkpointingbaseSequenceName - baseSequenceNamepreviousCheckPoint - DataSourceMetadata checkpointed in previous callcurrentCheckPoint - current DataSourceMetadata to be checkpointedCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.