public class RemoteEngine extends java.rmi.server.UnicastRemoteObject implements Compute, RevisionHandler
| Constructor and Description |
|---|
RemoteEngine(java.lang.String hostName)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
checkStatus(java.lang.Object taskId)
Returns status information on a particular task
|
java.lang.Object |
executeTask(Task t)
Takes a task object and queues it for execution
|
java.lang.String |
getRevision()
Returns the revision string.
|
static void |
main(java.lang.String[] args)
Main method.
|
clone, exportObject, exportObject, exportObject, unexportObjectpublic RemoteEngine(java.lang.String hostName)
throws java.rmi.RemoteException
hostName - name of the hostjava.rmi.RemoteException - if something goes wrongpublic java.lang.Object executeTask(Task t) throws java.rmi.RemoteException
executeTask in interface Computet - the Task object to executejava.rmi.RemoteException - if something goes wrong.public java.lang.Object checkStatus(java.lang.Object taskId)
throws java.lang.Exception
checkStatus in interface ComputetaskId - the ID of the task to checkTaskStatusInfo encapsulating task status infojava.lang.Exception - if an error occurspublic java.lang.String getRevision()
getRevision in interface RevisionHandlerpublic static void main(java.lang.String[] args)
args -