|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.mygrid.ui.test.FakeScheduler
public class FakeScheduler
Nested Class Summary | |
---|---|
class |
FakeScheduler.FakeJob
|
class |
FakeScheduler.FakeReplica
|
class |
FakeScheduler.FakeTask
|
Constructor Summary | |
---|---|
FakeScheduler()
|
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 |
setJobList(java.util.Map<java.lang.Integer,JobEntry> c)
|
void |
waitForJob(int jobId)
Puts the calling thread to wait until a certain job is finished. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FakeScheduler()
Method Detail |
---|
public java.util.Collection<JobEntry> jobList(JobManagerListenerRemote newListener) throws java.rmi.RemoteException
Scheduler
jobList
in interface Scheduler
newListener
- TODO
java.rmi.RemoteException
public void waitForJob(int jobId) throws JobNotFoundException, java.rmi.RemoteException
Scheduler
waitForJob
in interface Scheduler
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.public void cancelJob(int jobId) throws JobNotFoundException, java.rmi.RemoteException
Scheduler
cancelJob
in interface Scheduler
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.public int addJob(JobSpec newJob) throws java.rmi.RemoteException
Scheduler
addJob
in interface Scheduler
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.public void setJobList(java.util.Map<java.lang.Integer,JobEntry> c)
public void cleanFinishedJobs() throws java.rmi.RemoteException
Scheduler
cleanFinishedJobs
in interface Scheduler
java.rmi.RemoteException
- If there is a communication exception during the
execution of a remote method call.public void removeJob(int jobId) throws java.rmi.RemoteException
Scheduler
removeJob
in interface Scheduler
java.rmi.RemoteException
- if there is a communication exception during the
execution of a remote method call.public java.util.Collection<GridManagerEntry> getGumEntries(GridManagerListenerRemote newListener) throws java.rmi.RemoteException
Scheduler
getGumEntries
in interface Scheduler
java.rmi.RemoteException
- if there is a communication exception during the
execution of a remote method call.public java.util.Collection<GumSpec> getGumSpecs() throws java.rmi.RemoteException
Scheduler
getGumSpecs
in interface Scheduler
java.rmi.RemoteException
- if there is a communication exception during the
execution of a remote method call.public void removeJobManagerListener(JobManagerListenerRemote listener)
removeJobManagerListener
in interface Scheduler
public void removeGridManagerListener(GridManagerListenerRemote listener)
removeGridManagerListener
in interface Scheduler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |