All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.experiment.RemoteEngine
java.lang.Object
|
+----java.rmi.server.RemoteObject
|
+----java.rmi.server.RemoteServer
|
+----java.rmi.server.UnicastRemoteObject
|
+----weka.experiment.RemoteEngine
- public class RemoteEngine
- extends java.rmi.server.UnicastRemoteObject
- implements Compute
A general purpose server for executing Task objects sent via RMI.
- Version:
- $Revision: 1.4 $
- Author:
- Mark Hall (mhall@cs.waikato.ac.nz)
RemoteEngine(String)
- Constructor
checkStatus(Object)
- Returns status information on a particular task
executeTask(Task)
- Takes a task object and queues it for execution
main(String[])
- Main method.
RemoteEngine
public RemoteEngine(java.lang.String hostName) throws java.rmi.RemoteException
Constructor
- Parameters:
hostName
- name of the host
- Throws:
- java.rmi.RemoteException - if something goes wrong
executeTask
public java.lang.Object executeTask(Task t) throws java.rmi.RemoteException
Takes a task object and queues it for execution
- Parameters:
t
- the Task object to execute
- Returns:
- an identifier for the Task that can be used when querying
Task status
checkStatus
public java.lang.Object checkStatus(java.lang.Object taskId) throws java.lang.Exception
Returns status information on a particular task
- Parameters:
taskId
- the ID of the task to check
- Returns:
- a
TaskStatusInfo
encapsulating task status info - Throws:
- java.lang.Exception - if an error occurs
main
public static void main(java.lang.String args[])
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
-
All Packages Class Hierarchy This Package Previous Next Index WEKA's home