|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JobManager
Method Summary | |
---|---|
void |
addJob(int jobId,
JobSpec jobSpec)
Adds a new Job . |
void |
addJobInterested(JobInterested jobInterested)
|
void |
addNewListener(JobManagerListenerRemote newListener)
|
void |
cleanFinishedJobs()
Clean the list of terminated jobs |
java.util.Collection<JobEntry> |
clonedJobList()
|
ReplicaEntry |
createNewReplica(TaskEntry task)
|
JobEntry |
getJobById(int jobId)
|
ExecutionStatus |
getJobState(int jobID)
|
java.util.Collection<JobEntry> |
jobList()
Returns the Job list. |
void |
removeJob(int jobId)
Remove the information about the specified job |
void |
removeListener(JobManagerListenerRemote listener)
|
void |
replicaAborted(ReplicaExecutorResult result)
Sets the Replica state to aborted. |
void |
replicaCanceled(ReplicaExecutorResult result)
Sets the Replica state to canceled. |
void |
replicaFailed(ReplicaExecutorResult result)
Sets the Replica state to failed. |
void |
replicaFinished(ReplicaExecutorResult result)
Sets the Replica state to finished. |
void |
replicaRunning(ReplicaEntry replica,
GumID gumID)
|
void |
setCanceled(int jobId)
Sets the given job as canceled. |
void |
setMaxFails(java.lang.String string)
|
void |
setMaxReplicas(java.lang.String string)
|
void |
shutdown()
|
Method Detail |
---|
void addJob(int jobId, JobSpec jobSpec)
Job
.
jobSpec
- The job specification.void replicaFinished(ReplicaExecutorResult result)
Replica
state to finished. It also
notifies JobInteresteds
case it is necessary.
result
- The ReplicaExecutorResult
.void replicaFailed(ReplicaExecutorResult result)
Replica
state to failed. It also notifies
JobInteresteds
case it is necessary.
result
- The ReplicaExecutorResult
.void replicaAborted(ReplicaExecutorResult result)
Replica
state to aborted. It also
notifies JobInteresteds
case it is necessary.
result
- The ReplicaExecutorResult
.void replicaCanceled(ReplicaExecutorResult result)
Replica
state to canceled. It also
notifies JobInteresteds
case it is necessary.
result
- The ReplicaExecutorResult
.void setCanceled(int jobId) throws JobNotFoundException, JobCouldNotBeCancelledException
jobId
- The job identification
JobNotFoundException
- when the job was not found
JobCouldNotBeCancelledException
- when the job could not be
canceledvoid cleanFinishedJobs()
void removeJob(int jobId) throws JobCannotBeRemovedException
jobId
-
JobCannotBeRemovedException
java.util.Collection<JobEntry> jobList()
Job
list.
Job
list.java.util.Collection<JobEntry> clonedJobList()
JobEntry getJobById(int jobId)
ReplicaEntry createNewReplica(TaskEntry task)
ExecutionStatus getJobState(int jobID)
void addJobInterested(JobInterested jobInterested)
void setMaxReplicas(java.lang.String string) throws ConfigException
ConfigException
void setMaxFails(java.lang.String string) throws ConfigException
ConfigException
void addNewListener(JobManagerListenerRemote newListener)
void replicaRunning(ReplicaEntry replica, GumID gumID)
void removeListener(JobManagerListenerRemote listener)
void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |