|
||||||||||
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
jist.runtime.RemoteJist.JobQueueServer
public static class RemoteJist.JobQueueServer
Job queue server.
Field Summary | |
---|---|
static java.lang.String |
JIST_JOBSERVER_RMI_NAME
RMI name of job queue server. |
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
RemoteJist.JobQueueServer(int port,
java.io.PrintStream out)
Start new job queue server. |
Method Summary | |
---|---|
void |
addJob(RemoteJist.Job job,
boolean front)
Add job to queue. |
RemoteJist.Job |
getJob(long maxMem)
Return next job from queue, or null if queue is empty. |
static RemoteJist.JobQueueServerRemote |
getRemote(Node n)
Return stub of remote job queue server. |
RemoteIO.RemoteOutputStreamRemote |
getStdOut()
Return RMI handle to queue standard output stream. |
void |
waitForJob(long maxMem)
Wait for job. |
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 |
Field Detail |
---|
public static final java.lang.String JIST_JOBSERVER_RMI_NAME
Constructor Detail |
---|
public RemoteJist.JobQueueServer(int port, java.io.PrintStream out) throws java.rmi.RemoteException
port
- rmi listen portout
- local server output stream
java.rmi.RemoteException
- rpc failureMethod Detail |
---|
public static RemoteJist.JobQueueServerRemote getRemote(Node n) throws java.rmi.NotBoundException, java.net.MalformedURLException, java.rmi.RemoteException
n
- node (host:port) of remote job queue server
java.rmi.NotBoundException
- when jist not bound (started) on remote server
java.net.MalformedURLException
- never
java.rmi.RemoteException
- rpc failurepublic void addJob(RemoteJist.Job job, boolean front) throws java.rmi.RemoteException
addJob
in interface RemoteJist.JobQueueServerRemote
job
- job to enqueuefront
- whether job should be added to the front of the queue
java.rmi.RemoteException
- rpc failurepublic void waitForJob(long maxMem) throws java.rmi.RemoteException
waitForJob
in interface RemoteJist.JobQueueServerRemote
maxMem
- maximum available server memory
java.rmi.RemoteException
- rpc failurepublic RemoteJist.Job getJob(long maxMem) throws java.rmi.RemoteException
getJob
in interface RemoteJist.JobQueueServerRemote
maxMem
- maximum available server memory
java.rmi.RemoteException
- rpc failurepublic RemoteIO.RemoteOutputStreamRemote getStdOut() throws java.rmi.RemoteException
getStdOut
in interface RemoteJist.JobQueueServerRemote
java.rmi.RemoteException
- rpc failure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |