|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Scheduler
The Scheduler interface that should be implemented by a remote object to provide access to the Scheduler from a different Java Virtual Machine.
Method Summary | |
---|---|
int |
addJob(JobSpec newJob)
Adds a new job to the scheduler. |
void |
cancelJob(int jobId)
Cancels a job specified by jobId parameter. |
void |
cleanFinishedJobs()
Clean all jobs that are not Running and will not run anymore. |
java.util.Collection<GridManagerEntry> |
getGumEntries(GridManagerListenerRemote newListener)
Provides information about the gums currently in use by the scheduler |
java.util.Collection<GumSpec> |
getGumSpecs()
Provides information about the gums currently in use by the scheduler |
java.util.Collection<JobEntry> |
jobList(JobManagerListenerRemote newListener)
Gives access to the list of jobs on the scheduler. |
void |
removeGridManagerListener(GridManagerListenerRemote listener)
|
void |
removeJob(int jobId)
Remove the information about the specified job |
void |
removeJobManagerListener(JobManagerListenerRemote listener)
|
void |
waitForJob(int jobId)
Puts the calling thread to wait until a certain job is finished. |
Method Detail |
---|
java.util.Collection<JobEntry> jobList(JobManagerListenerRemote newListener) throws java.rmi.RemoteException
newListener
- TODO
java.rmi.RemoteException
void waitForJob(int jobId) throws JobNotFoundException, java.rmi.RemoteException
jobId
- The identifier of the job the thread must wait for. This
identifier is obtained when the job is added to the scheduler.
JobNotFoundException
- if there is no job with this id
java.rmi.RemoteException
- if any exception occurs while contacting with
this remote object.void cancelJob(int jobId) throws JobNotFoundException, java.rmi.RemoteException, JobCouldNotBeCancelledException
jobId
- The identification of the job to be canceled.
JobNotFoundException
- If the job specified by jobId does not
exist.
java.rmi.RemoteException
- If there is a communication exception during the
execution of a remote method call.
JobCouldNotBeCancelledException
- If asked to cancel a job that
canot be cancelled anymore.int addJob(JobSpec newJob) throws java.rmi.RemoteException
newJob
- The JobInfo object that describes the job to be added.
java.rmi.RemoteException
- If there is a communication exception during the
execution of a remote method call.void cleanFinishedJobs() throws java.rmi.RemoteException
java.rmi.RemoteException
- If there is a communication exception during the
execution of a remote method call.void removeJob(int jobId) throws java.rmi.RemoteException, JobCannotBeRemovedException
java.rmi.RemoteException
- if there is a communication exception during the
execution of a remote method call.
JobCannotBeRemovedException
java.util.Collection<GridManagerEntry> getGumEntries(GridManagerListenerRemote newListener) throws java.rmi.RemoteException
java.rmi.RemoteException
- if there is a communication exception during the
execution of a remote method call.java.util.Collection<GumSpec> getGumSpecs() throws java.rmi.RemoteException
java.rmi.RemoteException
- if there is a communication exception during the
execution of a remote method call.void removeJobManagerListener(JobManagerListenerRemote listener) throws java.rmi.RemoteException
java.rmi.RemoteException
void removeGridManagerListener(GridManagerListenerRemote listener) throws java.rmi.RemoteException
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |