Package weka.experiment
Class RemoteEngine
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
weka.experiment.RemoteEngine
- All Implemented Interfaces:
Serializable
,Remote
,RevisionHandler
,Compute
A general purpose server for executing Task objects sent via RMI.
- Version:
- $Revision: 11247 $
- Author:
- Mark Hall (mhall@cs.waikato.ac.nz)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncheckStatus
(Object taskId) Returns status information on a particular taskexecuteTask
(Task t) Takes a task object and queues it for executionReturns the revision string.static void
Main method.Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
Constructor Details
-
RemoteEngine
Constructor- Parameters:
hostName
- name of the host- Throws:
RemoteException
- if something goes wrong
-
-
Method Details
-
executeTask
Takes a task object and queues it for execution- Specified by:
executeTask
in interfaceCompute
- Parameters:
t
- the Task object to execute- Returns:
- an identifier for the Task that can be used when querying Task status
- Throws:
RemoteException
- if something goes wrong.
-
checkStatus
Returns status information on a particular task- Specified by:
checkStatus
in interfaceCompute
- Parameters:
taskId
- the ID of the task to check- Returns:
- a
TaskStatusInfo
encapsulating task status info - Throws:
Exception
- if an error occurs
-
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-
main
Main method. Gets address of the local host, creates a remote engine object and binds it in the RMI registry. If there is no RMI registry, then it tries to create one with default port 1099.- Parameters:
args
-
-