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.The ExecutionGraph implements Serializable, because it can be archived by
sending it to an archive actor via an actor message. The execution graph does contain some
non-serializable fields. These fields are not required in the archived form and are cleared
in the prepareForArchiving() method.
| Constructor and Description |
|---|
ExecutionGraph(org.apache.flink.api.common.JobID jobId,
String jobName,
org.apache.flink.configuration.Configuration jobConfig,
scala.concurrent.duration.FiniteDuration timeout,
List<BlobKey> requiredJarFiles,
ClassLoader userClassLoader) |
public ExecutionGraph(org.apache.flink.api.common.JobID jobId,
String jobName,
org.apache.flink.configuration.Configuration jobConfig,
scala.concurrent.duration.FiniteDuration timeout,
List<BlobKey> requiredJarFiles,
ClassLoader userClassLoader)
public void setNumberOfRetriesLeft(int numberOfRetriesLeft)
public int getNumberOfRetriesLeft()
public void setDelayBeforeRetrying(long delayBeforeRetrying)
public long getDelayBeforeRetrying()
public boolean isQueuedSchedulingAllowed()
public void setQueuedSchedulingAllowed(boolean allowed)
public void setScheduleMode(ScheduleMode scheduleMode)
public ScheduleMode getScheduleMode()
public void enableSnaphotCheckpointing(long interval,
long checkpointTimeout,
List<ExecutionJobVertex> verticesToTrigger,
List<ExecutionJobVertex> verticesToWaitFor,
List<ExecutionJobVertex> verticesToCommitTo,
akka.actor.ActorSystem actorSystem)
public void disableSnaphotCheckpointing()
public boolean isSnapshotCheckpointsEnabled()
public CheckpointCoordinator getCheckpointCoordinator()
public List<BlobKey> getRequiredJarFiles()
public Scheduler getScheduler()
public org.apache.flink.api.common.JobID getJobID()
public String getJobName()
public org.apache.flink.configuration.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 void attachJobGraph(List<JobVertex> topologiallySorted) throws JobException
JobExceptionpublic void scheduleForExecution(Scheduler scheduler) throws JobException
JobExceptionpublic void cancel()
public void fail(Throwable t)
public void restart()
public void prepareForArchiving()
public org.apache.flink.api.common.ExecutionConfig getExecutionConfig()
public void waitUntilFinished()
throws InterruptedException
InterruptedExceptionpublic boolean updateState(TaskExecutionState state)
public void scheduleOrUpdateConsumers(ResultPartitionID partitionId)
public Map<ExecutionAttemptID,Execution> getRegisteredExecutions()
public void registerJobStatusListener(akka.actor.ActorRef listener)
public void registerExecutionListener(akka.actor.ActorRef listener)
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.