public abstract class ComputationManager extends java.lang.Object implements JobLifecycleObserver
| Modifier and Type | Class and Description |
|---|---|
static class |
ComputationManager.ComputationManagerState |
| Modifier and Type | Method and Description |
|---|---|
void |
completedExecution(java.lang.String jobId,
java.lang.String taskId,
TaskLifecycleMetrics metrics)
This method is invoked when a task has completed execution either
successfully or due to an abnormal termination or previously issued abort
request.
|
void |
completedSuccessfully(java.lang.String jobId,
ProgressTracker inTracker)
This method is invoked when all the constituent distributed tasks have
finished executing successfully.
|
void |
completedWithErrors(java.lang.String jobId,
ProgressTracker tracker)
This method is invoked when we have heard from all the sub-tasks, and one
or more errors have been encountered in the execution of constituent
tasks.
|
void |
completeJob() |
void |
deployJob(int inStreamGrp,
java.lang.String inDeployStream,
boolean inActive) |
java.lang.String |
getDeployedStream() |
ComputationDescription |
getDescription() |
java.lang.String |
getJobID() |
ComputationUsage |
getPredictedUsage() |
ComputationManager.ComputationManagerState |
getState() |
void |
setComputations(GIComputation... inComps) |
void |
startedExecution(java.lang.String jobId,
java.lang.String taskId,
TaskLifecycleMetrics metrics)
This method is invoked when the first task reports that it has
begun execution.
|
void |
terminateJob() |
public java.lang.String getJobID()
public ComputationDescription getDescription()
public ComputationUsage getPredictedUsage()
public java.lang.String getDeployedStream()
public ComputationManager.ComputationManagerState getState()
public void setComputations(GIComputation... inComps)
public void deployJob(int inStreamGrp,
java.lang.String inDeployStream,
boolean inActive)
throws DatasetException,
CommunicationsException,
DeploymentException,
MapReduceException,
MarshallingException,
ComponentException
public void completeJob()
public void terminateJob()
throws DeploymentException,
CommunicationsException,
MarshallingException
public void completedSuccessfully(java.lang.String jobId,
ProgressTracker inTracker)
JobLifecycleObservercompletedSuccessfully in interface JobLifecycleObserverjobId - The ID of the Job being reported oninTracker - Contains information about the lifecycle metrics associated
with the constituent tasks.public void completedWithErrors(java.lang.String jobId,
ProgressTracker tracker)
JobLifecycleObservercompletedWithErrors in interface JobLifecycleObserverjobId - The ID of the Job being reported ontracker - Contains information about the lifecycle metrics associated
with the constituent tasks.public void startedExecution(java.lang.String jobId,
java.lang.String taskId,
TaskLifecycleMetrics metrics)
JobLifecycleObserverstartedExecution in interface JobLifecycleObserverjobId - The ID of the Job being reported ontaskId - The taskId of one of the constituent tasks that has started
execution.metrics - The metrics associated with the task in question.public void completedExecution(java.lang.String jobId,
java.lang.String taskId,
TaskLifecycleMetrics metrics)
JobLifecycleObservertaskLifecycleMetrics.getExecutionStatus() method and
comparing it to the constants in the metrics, reveals the completion
status of the task.completedExecution in interface JobLifecycleObserverjobId - The ID of the Job being reported ontaskId - The taskId of one of the constituent tasksmetrics - The metrics associated with the task in question.