@Internal public class EmbeddedExecutorFactory extends Object implements PipelineExecutorFactory
PipelineExecutorFactory
for the EmbeddedExecutor
.Constructor and Description |
---|
EmbeddedExecutorFactory(Collection<JobID> submittedJobIds,
DispatcherGateway dispatcherGateway,
ScheduledExecutor retryExecutor)
Creates an
EmbeddedExecutorFactory . |
Modifier and Type | Method and Description |
---|---|
PipelineExecutor |
getExecutor(Configuration configuration)
Instantiates an
PipelineExecutor compatible with the provided configuration. |
String |
getName()
Returns the name of the executor that this factory creates.
|
boolean |
isCompatibleWith(Configuration configuration)
Returns
true if this factory is compatible with the options in the provided
configuration, false otherwise. |
public EmbeddedExecutorFactory(Collection<JobID> submittedJobIds, DispatcherGateway dispatcherGateway, ScheduledExecutor retryExecutor)
EmbeddedExecutorFactory
.submittedJobIds
- a list that is going to be filled with the job ids of the new jobs
that will be submitted. This is essentially used to return the submitted job ids to the
caller.dispatcherGateway
- the dispatcher of the cluster which is going to be used to submit
jobs.public String getName()
PipelineExecutorFactory
getName
in interface PipelineExecutorFactory
public boolean isCompatibleWith(Configuration configuration)
PipelineExecutorFactory
true
if this factory is compatible with the options in the provided
configuration, false
otherwise.isCompatibleWith
in interface PipelineExecutorFactory
public PipelineExecutor getExecutor(Configuration configuration)
PipelineExecutorFactory
PipelineExecutor
compatible with the provided configuration.getExecutor
in interface PipelineExecutorFactory
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.