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,
ClassLoader userClassLoader,
ExecutorService executor) |
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 ExecutionGraph(JobID jobId, String jobName, Configuration jobConfig, List<BlobKey> requiredJarFiles, ClassLoader userClassLoader, ExecutorService executor)
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 List<BlobKey> getRequiredJarFiles()
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 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)
public void restart()
Copyright © 2015 The Apache Software Foundation. All rights reserved.