weka4ws.core
Class RemoteTask
java.lang.Object
weka4ws.core.RemoteTask
- All Implemented Interfaces:
- RemoteTaskConstants
- Direct Known Subclasses:
- RemoteAssociator, RemoteTestTask
- public abstract class RemoteTask
- extends java.lang.Object
- implements RemoteTaskConstants
Handles all the transactions with the service node.
- Author:
- Marco Lackovic
Method Summary |
boolean |
checkRemoteFile(weka4ws.stubs.service.Response response)
Checks whether a file is available on a remote host. |
java.lang.String |
getExecutionTime()
|
java.lang.String |
getLocation()
|
weka4ws.stubs.service.Result |
getResult()
Returns a String containg the model built at the host |
void |
setAlgorithm(java.lang.String name,
java.lang.String parameters)
|
void |
setDataset(java.lang.String datasetFilePath)
|
void |
stop()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteTask
public RemoteTask(ConnectionParameters connectionParameters,
RemoteParameters parameters)
throws org.apache.axis.types.URI.MalformedURIException,
java.rmi.RemoteException,
javax.xml.rpc.ServiceException
getResult
public weka4ws.stubs.service.Result getResult()
throws java.lang.Exception
- Returns a String containg the model built at the host
- Returns:
- Object
- Throws:
java.lang.Exception
checkRemoteFile
public boolean checkRemoteFile(weka4ws.stubs.service.Response response)
- Checks whether a file is available on a remote host. If not already
available, the file is copied to the remote host.
setDataset
public void setDataset(java.lang.String datasetFilePath)
throws java.lang.Exception
- Throws:
java.lang.Exception
setAlgorithm
public void setAlgorithm(java.lang.String name,
java.lang.String parameters)
getExecutionTime
public java.lang.String getExecutionTime()
- Returns:
- the executionTime
getLocation
public java.lang.String getLocation()
stop
public void stop()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException