weka4ws.core
Class RemoteTask

java.lang.Object
  extended byweka4ws.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

Field Summary
 
Fields inherited from interface weka4ws.core.RemoteTaskConstants
ASSOCIATOR, CLASSIFIER, CLUSTERER, CROSS_VALIDATION, DATASET_MAXSIZE, PERCENTAGE_SPLIT, TEMP_DIR, TEST_SET, TRAINING_SET
 
Constructor Summary
RemoteTask(ConnectionParameters connectionParameters, RemoteParameters parameters)
           
 
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
 

Constructor Detail

RemoteTask

public RemoteTask(ConnectionParameters connectionParameters,
                  RemoteParameters parameters)
           throws org.apache.axis.types.URI.MalformedURIException,
                  java.rmi.RemoteException,
                  javax.xml.rpc.ServiceException
Method Detail

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