public interface IApplicationExitController extends AutoCloseable
Behind the scene, Kafka is (typically) used for this. An application (for example a spark or punch light stream punchline) once completed instead of exiting, send an exit wish to a platform topic. In turn this interface let some controller be notified, and request a clean exit of that application.
This interface is used in the dag management.
Modifier and Type | Method and Description |
---|---|
List<IApplication> |
getTerminatedApplications(List<IApplication> list,
Duration timeout) |
close
List<IApplication> getTerminatedApplications(List<IApplication> list, Duration timeout)
list
- a list of known applicationstimeout
- the delay used to read and possibly wait for
the kafka queueCopyright © 2014–2023. All rights reserved.