Interface JobMasterServiceProcessFactory
- All Known Implementing Classes:
DefaultJobMasterServiceProcessFactory
public interface JobMasterServiceProcessFactory
Factory for the
JobMasterServiceProcess.-
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.
-
Method Details
-
create
Create a newJobMasterServiceProcessfor the given leaderSessionId.- Parameters:
leaderSessionId- leaderSessionId for which to create aJobMasterServiceProcess- Returns:
- the newly created
JobMasterServiceProcess
-
getJobId
org.apache.flink.api.common.JobID getJobId()Gets theJobIDof the job for which this factory createsJobMasterServiceProcess. -
createArchivedExecutionGraph
ArchivedExecutionGraph createArchivedExecutionGraph(org.apache.flink.api.common.JobStatus jobStatus, @Nullable Throwable cause) Creates anArchivedExecutionGraphfor the job for which this factory createsJobMasterServiceProcesswith the given jobStatus and failure cause.- Parameters:
jobStatus- jobStatus which theArchivedExecutionGraphshould havecause- cause which theArchivedExecutionGraphshould be initialized with; null iff no failure cause- Returns:
- created
ArchivedExecutionGraph
-