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, unexportObject
public 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 Compute
t
- 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 Compute
taskId
- the ID of the task to checkTaskStatusInfo
encapsulating task status infojava.lang.Exception
- if an error occurspublic java.lang.String getRevision()
getRevision
in interface RevisionHandler
public static void main(java.lang.String[] args)
args
-