public class DefaultJobMasterServiceProcessFactory extends Object implements JobMasterServiceProcessFactory
Constructor and Description |
---|
DefaultJobMasterServiceProcessFactory(JobID jobId,
String jobName,
JobCheckpointingSettings checkpointingSettings,
long initializationTimestamp,
JobMasterServiceFactory jobMasterServiceFactory) |
Modifier and Type | Method and Description |
---|---|
JobMasterServiceProcess |
create(UUID leaderSessionId)
Create a new
JobMasterServiceProcess for the given leaderSessionId. |
ArchivedExecutionGraph |
createArchivedExecutionGraph(JobStatus jobStatus,
Throwable cause)
Creates an
ArchivedExecutionGraph for the job for which this factory creates JobMasterServiceProcess with the given jobStatus and failure cause. |
JobID |
getJobId()
Gets the
JobID of the job for which this factory creates JobMasterServiceProcess . |
public DefaultJobMasterServiceProcessFactory(JobID jobId, String jobName, @Nullable JobCheckpointingSettings checkpointingSettings, long initializationTimestamp, JobMasterServiceFactory jobMasterServiceFactory)
public JobMasterServiceProcess create(UUID leaderSessionId)
JobMasterServiceProcessFactory
JobMasterServiceProcess
for the given leaderSessionId.create
in interface JobMasterServiceProcessFactory
leaderSessionId
- leaderSessionId for which to create a JobMasterServiceProcess
JobMasterServiceProcess
public JobID getJobId()
JobMasterServiceProcessFactory
JobID
of the job for which this factory creates JobMasterServiceProcess
.getJobId
in interface JobMasterServiceProcessFactory
public ArchivedExecutionGraph createArchivedExecutionGraph(JobStatus jobStatus, @Nullable Throwable cause)
JobMasterServiceProcessFactory
ArchivedExecutionGraph
for the job for which this factory creates JobMasterServiceProcess
with the given jobStatus and failure cause.createArchivedExecutionGraph
in interface JobMasterServiceProcessFactory
jobStatus
- jobStatus which the ArchivedExecutionGraph
should havecause
- cause which the ArchivedExecutionGraph
should be initialized with; null
iff no failure causeArchivedExecutionGraph
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.