public class ExecutionGraph extends Object implements Serializable
ExecutionJobVertex represents one vertex from the JobGraph (usually one operation like
"map" or "join") during execution. It holds the aggregated state of all parallel subtasks.
The ExecutionJobVertex is identified inside the graph by the JobVertexID, which it takes
from the JobGraph's corresponding JobVertex.ExecutionVertex represents one parallel subtask. For each ExecutionJobVertex, there are
as many ExecutionVertices as the parallelism. The ExecutionVertex is identified by
the ExecutionJobVertex and the number of the parallel subtaskExecution is one attempt to execute a ExecutionVertex. There may be multiple Executions
for the ExecutionVertex, in case of a failure, or in the case where some data needs to be recomputed
because it is no longer available when requested by later operations. An Execution is always
identified by an ExecutionAttemptID. All messages between the JobManager and the TaskManager
about deployment of tasks and updates in the task status always use the ExecutionAttemptID to
address the message receiver.| Constructor and Description |
|---|
ExecutionGraph(JobID jobId,
String jobName,
Configuration jobConfig,
scala.concurrent.duration.FiniteDuration timeout) |
ExecutionGraph(JobID jobId,
String jobName,
Configuration jobConfig,
scala.concurrent.duration.FiniteDuration timeout,
List<BlobKey> requiredJarFiles) |
ExecutionGraph(JobID jobId,
String jobName,
Configuration jobConfig,
scala.concurrent.duration.FiniteDuration timeout,
List<BlobKey> requiredJarFiles,
ClassLoader userClassLoader) |
public ExecutionGraph(JobID jobId, String jobName, Configuration jobConfig, scala.concurrent.duration.FiniteDuration timeout)
public ExecutionGraph(JobID jobId, String jobName, Configuration jobConfig, scala.concurrent.duration.FiniteDuration timeout, List<BlobKey> requiredJarFiles)
public ExecutionGraph(JobID jobId, String jobName, Configuration jobConfig, scala.concurrent.duration.FiniteDuration timeout, List<BlobKey> requiredJarFiles, ClassLoader userClassLoader)
public void setStateCheckpointerActor(akka.actor.ActorRef stateCheckpointerActor)
public akka.actor.ActorRef getStateCheckpointerActor()
public void setParentContext(akka.actor.ActorContext parentContext)
public void setNumberOfRetriesLeft(int numberOfRetriesLeft)
public int getNumberOfRetriesLeft()
public void setDelayBeforeRetrying(long delayBeforeRetrying)
public long getDelayBeforeRetrying()
public void attachJobGraph(List<AbstractJobVertex> topologiallySorted) throws JobException
JobExceptionpublic void setCheckpointingEnabled(boolean checkpointingEnabled)
public void setCheckpointingInterval(long checkpointingInterval)
public List<BlobKey> getRequiredJarFiles()
public Scheduler getScheduler()
public JobID getJobID()
public String getJobName()
public Configuration getJobConfiguration()
public ClassLoader getUserClassLoader()
public JobStatus getState()
public Throwable getFailureCause()
public ExecutionJobVertex getJobVertex(JobVertexID id)
public Map<JobVertexID,ExecutionJobVertex> getAllVertices()
public Iterable<ExecutionJobVertex> getVerticesTopologically()
public Map<IntermediateDataSetID,IntermediateResult> getAllIntermediateResults()
public Iterable<ExecutionVertex> getAllExecutionVertices()
public long getStatusTimestamp(JobStatus status)
public boolean isQueuedSchedulingAllowed()
public void setQueuedSchedulingAllowed(boolean allowed)
public void setScheduleMode(ScheduleMode scheduleMode)
public ScheduleMode getScheduleMode()
public void scheduleForExecution(Scheduler scheduler) throws JobException
JobExceptionpublic void cancel()
public void fail(Throwable t)
public boolean updateState(TaskExecutionState state)
public void loadOperatorStates(Map<scala.Tuple3<JobVertexID,Integer,Long>,StateHandle> states)
public void scheduleOrUpdateConsumers(ResultPartitionID partitionId)
public Map<ExecutionAttemptID,Execution> getRegisteredExecutions()
public void registerJobStatusListener(akka.actor.ActorRef listener)
public void registerExecutionListener(akka.actor.ActorRef listener)
public boolean containsJobStatusListener(akka.actor.ActorRef listener)
public void restart()
public void prepareForArchiving()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.