|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EBSchedulingHeuristic
Interface to be implemented by the scheduling heuristics. It defines the basic methods that these heuristics should implement.
Method Summary | |
---|---|
void |
addJob(int jobId,
JobSpec jobSpec)
Adds a new Job . |
void |
cancelJob(int jobId)
Cancels the given job and put an Event indicating that in the responseQueue. |
GridManager |
getEBGridManager()
Returns the EBGridManager . |
JobManager |
getEBJobManager()
Returns the EBJobManager . |
void |
newPeersHaveBeenSet()
Notifies the heuristic that new GridMachineProvider s have
been set. |
void |
replicaAborted(ReplicaExecutorResult result)
Notifies that a task replica has been aborted. |
void |
replicaCanceled(ReplicaExecutorResult result)
Notifies that a task replica has canceled. |
void |
replicaFailed(ReplicaExecutorResult result)
Notifies that a task replica has failed. |
void |
replicaFinished(ReplicaExecutorResult result)
Notifies that a task replica has finished. |
boolean |
schedule()
Schedules a task replica to a machine. |
Method Detail |
---|
void addJob(int jobId, JobSpec jobSpec)
Job
.
jobId
- The job identification.jobSpec
- The new Job specification.void newPeersHaveBeenSet()
GridMachineProvider
s have
been set. GridMachine
s should be requested to the
GridMachineProvider
s.
GridManager getEBGridManager()
EBGridManager
.
EBGridManager
.JobManager getEBJobManager()
EBJobManager
.
EBJobManager
.void replicaFinished(ReplicaExecutorResult result)
result
- The ReplicaExecutorResult
that contains all
information about the replica execution.void replicaFailed(ReplicaExecutorResult result)
result
- The ReplicaExecutorResult
that contains all
information about the replica execution.void replicaAborted(ReplicaExecutorResult result)
result
- The ReplicaExecutorResult
that contains all
information about the replica execution.void replicaCanceled(ReplicaExecutorResult result)
result
- The ReplicaExecutorResult
that contains all
information about the replica execution.boolean schedule()
void cancelJob(int jobId) throws JobNotFoundException, JobCouldNotBeCancelledException
jobId
- The job identification
JobNotFoundException
- if asked to cancel an invalid job.
JobCouldNoBeCancelledException
- if asked to cancel a job that
cannot be cancelled anymore.
JobCouldNotBeCancelledException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |