@Internal public class ApplicationDispatcherBootstrap extends Object implements DispatcherBootstrap
DispatcherBootstrap
used for running the user's main()
in "Application Mode"
(see FLIP-85).
This dispatcher bootstrap submits the recovered job graphs
for re-execution
(in case of recovery from a failure), and then submits the remaining jobs of the application for
execution.
To achieve this, it works in conjunction with the EmbeddedExecutor
which decides if it should submit a job for execution (in case of a new job) or the job was
already recovered and is running.
Constructor and Description |
---|
ApplicationDispatcherBootstrap(PackagedProgram application,
Collection<JobID> recoveredJobIds,
Configuration configuration,
DispatcherGateway dispatcherGateway,
ScheduledExecutor scheduledExecutor,
FatalErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
void |
stop()
Stops and frees any resources (e.g. threads) acquired during the execution of the bootstrap.
|
public ApplicationDispatcherBootstrap(PackagedProgram application, Collection<JobID> recoveredJobIds, Configuration configuration, DispatcherGateway dispatcherGateway, ScheduledExecutor scheduledExecutor, FatalErrorHandler errorHandler)
public void stop()
DispatcherBootstrap
stop
in interface DispatcherBootstrap
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.