jist.runtime
Interface RemoteJist.JobQueueServerRemote

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
RemoteJist.JobQueueServer
Enclosing class:
RemoteJist

public static interface RemoteJist.JobQueueServerRemote
extends java.rmi.Remote

Remote job queue server interface.


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.
 RemoteIO.RemoteOutputStreamRemote getStdOut()
          Return RMI handle to queue standard output stream.
 void waitForJob(long maxMem)
          Wait for job.
 

Method Detail

addJob

void addJob(RemoteJist.Job job,
            boolean front)
            throws java.rmi.RemoteException
Add job to queue.

Parameters:
job - job to enqueue
front - whether job should be added to the front of the queue
Throws:
java.rmi.RemoteException - rpc failure

waitForJob

void waitForJob(long maxMem)
                throws java.rmi.RemoteException
Wait for job. Returns when there might be a job available.

Parameters:
maxMem - maximum available server memory
Throws:
java.rmi.RemoteException - rpc failure

getJob

RemoteJist.Job getJob(long maxMem)
                      throws java.rmi.RemoteException
Return next job from queue, or null if queue is empty.

Parameters:
maxMem - maximum available server memory
Returns:
next job from queue; null if none exists
Throws:
java.rmi.RemoteException - rpc failure

getStdOut

RemoteIO.RemoteOutputStreamRemote getStdOut()
                                            throws java.rmi.RemoteException
Return RMI handle to queue standard output stream.

Returns:
remote output stream RMI handle
Throws:
java.rmi.RemoteException - rpc failure