|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.ourgrid.common.rmi.OurgridUnicastRemoteObject
org.ourgrid.mygrid.scheduler.SchedulerImpl
public class SchedulerImpl
The Scheduler
remote object responsible for receiving RMI
calls and translating them to calls on the EBSchedulerFacade
.
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
protected |
SchedulerImpl(EBSchedulerFacade ebSchedulerFacade)
The constructor. |
|
SchedulerImpl(EBSchedulerFacade ebSchedulerFacade,
MGSecureClientSocketFactory secureClientSocketFactory,
MGSecureServerSocketFactory secureServerSocketFactory,
int securePort)
The constructor with SecureSocketFactories. |
Method Summary | |
---|---|
int |
addJob(JobSpec jobSpec)
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. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected SchedulerImpl(EBSchedulerFacade ebSchedulerFacade) throws java.rmi.RemoteException
ebSchedulerFacade
- The EBSchedulerFacade
java.rmi.RemoteException
public SchedulerImpl(EBSchedulerFacade ebSchedulerFacade, MGSecureClientSocketFactory secureClientSocketFactory, MGSecureServerSocketFactory secureServerSocketFactory, int securePort) throws java.rmi.RemoteException
ebSchedulerFacade
- The EBSchedulerFacade
secureClientSocketFactory
- The SecureClientSocketFactory.secureServerSocketFactory
- The SecureServerSocketFactory.securePort
- The port where the secure services will be bound.
java.rmi.RemoteException
Method Detail |
---|
public java.util.Collection<JobEntry> jobList(JobManagerListenerRemote newListener) throws java.rmi.RemoteException
Scheduler
jobList
in interface Scheduler
newListener
- TODO
java.rmi.RemoteException
Scheduler.jobList(JobManagerListenerRemote)
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.Scheduler.waitForJob(int)
public void cancelJob(int jobId) throws JobNotFoundException, JobCouldNotBeCancelledException, 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.
JobCouldNotBeCancelledException
- If asked to cancel a job that
canot be cancelled anymore.
java.rmi.RemoteException
- If there is a communication exception during the
execution of a remote method call.Scheduler.cancelJob(int)
public int addJob(JobSpec jobSpec) throws java.rmi.RemoteException
Scheduler
addJob
in interface Scheduler
jobSpec
- 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.Scheduler.addJob(JobSpec)
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.Scheduler.cleanFinishedJobs()
public void removeJob(int jobId) throws JobCannotBeRemovedException, java.rmi.RemoteException
Scheduler
removeJob
in interface Scheduler
JobCannotBeRemovedException
java.rmi.RemoteException
- if there is a communication exception during the
execution of a remote method call.Scheduler.removeJob(int)
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) throws java.rmi.RemoteException
removeJobManagerListener
in interface Scheduler
java.rmi.RemoteException
public void removeGridManagerListener(GridManagerListenerRemote listener) throws java.rmi.RemoteException
removeGridManagerListener
in interface Scheduler
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |