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
ConstructorsConstructorDescriptionDefaultJobMasterServiceProcessFactory(org.apache.flink.api.common.JobID jobId, String jobName, JobType jobType, JobCheckpointingSettings checkpointingSettings, long initializationTimestamp, JobMasterServiceFactory jobMasterServiceFactory) -
Method Summary
Modifier and TypeMethodDescriptionCreate a newJobMasterServiceProcessfor the given leaderSessionId.createArchivedExecutionGraph(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 Details
-
DefaultJobMasterServiceProcessFactory
public DefaultJobMasterServiceProcessFactory(org.apache.flink.api.common.JobID jobId, String jobName, JobType jobType, @Nullable JobCheckpointingSettings checkpointingSettings, long initializationTimestamp, JobMasterServiceFactory jobMasterServiceFactory)
-
-
Method Details
-
create
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
-