public class ExecutionGraph extends Object
| Constructor and Description |
|---|
ExecutionGraph(JobID jobId,
String jobName,
Configuration jobConfig) |
ExecutionGraph(JobID jobId,
String jobName,
Configuration jobConfig,
List<BlobKey> requiredJarFiles,
ExecutorService executor) |
public ExecutionGraph(JobID jobId, String jobName, Configuration jobConfig)
public ExecutionGraph(JobID jobId, String jobName, Configuration jobConfig, List<BlobKey> requiredJarFiles, ExecutorService executor)
public void attachJobGraph(List<AbstractJobVertex> topologiallySorted) throws JobException
JobExceptionpublic List<BlobKey> getRequiredJarFiles()
public JobID getJobID()
public String getJobName()
public Configuration getJobConfiguration()
public JobStatus getState()
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 scheduleForExecution(Scheduler scheduler) throws JobException
JobExceptionpublic void cancel()
public void fail(Throwable t)
public void waitForJobEnd(long timeout)
throws InterruptedException
InterruptedExceptionpublic void waitForJobEnd()
throws InterruptedException
InterruptedExceptionpublic boolean updateState(TaskExecutionState state)
public ConnectionInfoLookupResponse lookupConnectionInfoAndDeployReceivers(InstanceConnectionInfo caller, ChannelID sourceChannelID)
public Map<ExecutionAttemptID,Execution> getRegisteredExecutions()
public void registerJobStatusListener(JobStatusListener jobStatusListener)
public void registerExecutionListener(ExecutionListener executionListener)
public void execute(Runnable action)
Copyright © 2014 The Apache Software Foundation. All rights reserved.