Class DefaultJobMasterServiceProcessFactory
- java.lang.Object
-
- org.apache.flink.runtime.jobmaster.factories.DefaultJobMasterServiceProcessFactory
-
- All Implemented Interfaces:
JobMasterServiceProcessFactory
public class DefaultJobMasterServiceProcessFactory extends Object implements JobMasterServiceProcessFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultJobMasterServiceProcessFactory(org.apache.flink.api.common.JobID jobId, String jobName, JobType jobType, JobCheckpointingSettings checkpointingSettings, long initializationTimestamp, JobMasterServiceFactory jobMasterServiceFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobMasterServiceProcesscreate(UUID leaderSessionId)Create a newJobMasterServiceProcessfor the given leaderSessionId.ArchivedExecutionGraphcreateArchivedExecutionGraph(org.apache.flink.api.common.JobStatus jobStatus, Throwable cause)Creates anArchivedExecutionGraphfor the job for which this factory createsJobMasterServiceProcesswith the given jobStatus and failure cause.org.apache.flink.api.common.JobIDgetJobId()Gets theJobIDof the job for which this factory createsJobMasterServiceProcess.
-
-
-
Constructor Detail
-
DefaultJobMasterServiceProcessFactory
public DefaultJobMasterServiceProcessFactory(org.apache.flink.api.common.JobID jobId, String jobName, JobType jobType, @Nullable JobCheckpointingSettings checkpointingSettings, long initializationTimestamp, JobMasterServiceFactory jobMasterServiceFactory)
-
-
Method Detail
-
create
public JobMasterServiceProcess create(UUID leaderSessionId)
Description copied from interface:JobMasterServiceProcessFactoryCreate a newJobMasterServiceProcessfor the given leaderSessionId.- Specified by:
createin interfaceJobMasterServiceProcessFactory- Parameters:
leaderSessionId- leaderSessionId for which to create aJobMasterServiceProcess- Returns:
- the newly created
JobMasterServiceProcess
-
getJobId
public org.apache.flink.api.common.JobID getJobId()
Description copied from interface:JobMasterServiceProcessFactoryGets theJobIDof the job for which this factory createsJobMasterServiceProcess.- Specified by:
getJobIdin interfaceJobMasterServiceProcessFactory
-
createArchivedExecutionGraph
public ArchivedExecutionGraph createArchivedExecutionGraph(org.apache.flink.api.common.JobStatus jobStatus, @Nullable Throwable cause)
Description copied from interface:JobMasterServiceProcessFactoryCreates anArchivedExecutionGraphfor the job for which this factory createsJobMasterServiceProcesswith the given jobStatus and failure cause.- Specified by:
createArchivedExecutionGraphin interfaceJobMasterServiceProcessFactory- Parameters:
jobStatus- jobStatus which theArchivedExecutionGraphshould havecause- cause which theArchivedExecutionGraphshould be initialized with; null iff no failure cause- Returns:
- created
ArchivedExecutionGraph
-
-