public class RemoteEngine extends UnicastRemoteObject implements Compute, RevisionHandler
| Constructor and Description |
|---|
RemoteEngine(String hostName)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
checkStatus(Object taskId)
Returns status information on a particular task
|
Object |
executeTask(Task t)
Takes a task object and queues it for execution
|
String |
getRevision()
Returns the revision string.
|
static void |
main(String[] args)
Main method.
|
clone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic RemoteEngine(String hostName) throws RemoteException
hostName - name of the hostRemoteException - if something goes wrongpublic Object executeTask(Task t) throws RemoteException
executeTask in interface Computet - the Task object to executeRemoteException - if something goes wrong.public Object checkStatus(Object taskId) throws Exception
checkStatus in interface ComputetaskId - the ID of the task to checkTaskStatusInfo encapsulating task status infoException - if an error occurspublic String getRevision()
getRevision in interface RevisionHandlerpublic static void main(String[] args)
args - Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.