@Internal public class ApplicationDispatcherGatewayServiceFactory extends Object implements AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory
DispatcherGatewayServiceFactory
used when executing a job in Application Mode, i.e. the user's
main is executed on the same machine as the Dispatcher
and the lifecycle of the cluster
is the same as the one of the application.
It instantiates a DispatcherGatewayService
with an ApplicationDispatcherBootstrap
containing the user's
program.
Constructor and Description |
---|
ApplicationDispatcherGatewayServiceFactory(Configuration configuration,
DispatcherFactory dispatcherFactory,
PackagedProgram application,
RpcService rpcService,
PartialDispatcherServices partialDispatcherServices) |
Modifier and Type | Method and Description |
---|---|
AbstractDispatcherLeaderProcess.DispatcherGatewayService |
create(DispatcherId fencingToken,
Collection<JobGraph> recoveredJobs,
Collection<JobResult> recoveredDirtyJobResults,
JobGraphWriter jobGraphWriter,
JobResultStore jobResultStore) |
public ApplicationDispatcherGatewayServiceFactory(Configuration configuration, DispatcherFactory dispatcherFactory, PackagedProgram application, RpcService rpcService, PartialDispatcherServices partialDispatcherServices)
public AbstractDispatcherLeaderProcess.DispatcherGatewayService create(DispatcherId fencingToken, Collection<JobGraph> recoveredJobs, Collection<JobResult> recoveredDirtyJobResults, JobGraphWriter jobGraphWriter, JobResultStore jobResultStore)
create
in interface AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.