Enum JobDispatcherFactory
- java.lang.Object
-
- java.lang.Enum<JobDispatcherFactory>
-
- org.apache.flink.runtime.dispatcher.JobDispatcherFactory
-
- All Implemented Interfaces:
Serializable
,Comparable<JobDispatcherFactory>
,DispatcherFactory
public enum JobDispatcherFactory extends Enum<JobDispatcherFactory> implements DispatcherFactory
DispatcherFactory
which creates aMiniDispatcher
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MiniDispatcher
createDispatcher(org.apache.flink.runtime.rpc.RpcService rpcService, DispatcherId fencingToken, Collection<JobGraph> recoveredJobs, Collection<JobResult> recoveredDirtyJobResults, DispatcherBootstrapFactory dispatcherBootstrapFactory, PartialDispatcherServicesWithJobPersistenceComponents partialDispatcherServicesWithJobPersistenceComponents)
Create aDispatcher
.static JobDispatcherFactory
valueOf(String name)
Returns the enum constant of this type with the specified name.static JobDispatcherFactory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final JobDispatcherFactory INSTANCE
-
-
Method Detail
-
values
public static JobDispatcherFactory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JobDispatcherFactory c : JobDispatcherFactory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JobDispatcherFactory valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
createDispatcher
public MiniDispatcher createDispatcher(org.apache.flink.runtime.rpc.RpcService rpcService, DispatcherId fencingToken, Collection<JobGraph> recoveredJobs, Collection<JobResult> recoveredDirtyJobResults, DispatcherBootstrapFactory dispatcherBootstrapFactory, PartialDispatcherServicesWithJobPersistenceComponents partialDispatcherServicesWithJobPersistenceComponents) throws Exception
Description copied from interface:DispatcherFactory
Create aDispatcher
.- Specified by:
createDispatcher
in interfaceDispatcherFactory
- Throws:
Exception
-
-