org.embl.ebi.escience.scuflworkers.rserv
Class RservProcessor

java.lang.Object
  extended by org.embl.ebi.escience.scufl.Processor
      extended by org.embl.ebi.escience.scuflworkers.rserv.RservProcessor
All Implemented Interfaces:
java.io.Serializable, IProcessor

public class RservProcessor
extends Processor
implements java.io.Serializable

A processor that uses the Rserv scripting engine to allow R (the free version of S) to be invoked on workflow data. Rserv (which allows R scripts to be executed remotely) must be runniTomng on localhost. Support for other hosts and authentication will be added later.

Author:
Stian Soiland
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.embl.ebi.escience.scufl.IProcessor
ENACTOR
 
Constructor Summary
RservProcessor(ScuflModel model, java.lang.String name)
           
RservProcessor(ScuflModel model, java.lang.String name, java.lang.String script, java.lang.String[] inputs)
          Construct a new processor with the given model and name, delegates to the superclass and sets the script up correctly along with the input and output port name arrays.
 
Method Summary
 java.lang.String getHostname()
           
 java.lang.String getPassword()
           
 int getPort()
           
 java.util.Properties getProperties()
          Get the properties for this processor for display purposes
 java.lang.String getScript()
          Get the script
 java.lang.String getUsername()
           
 void setHostname(java.lang.String hostname)
           
 void setPassword(java.lang.String password)
           
 void setPort(int port)
           
 void setScript(java.lang.String script)
          Set the script
 void setUsername(java.lang.String username)
           
 
Methods inherited from class org.embl.ebi.escience.scufl.Processor
addAlternate, addAnnotationTemplate, addBreakpoint, addPort, defaultAnnotationTemplates, fireModelEvent, getAlternatesArray, getAlternatesList, getAnnotationTemplates, getBackoff, getBoundInputPorts, getBoundOutputPorts, getCritical, getDefaultWorkers, getDescription, getInputPorts, getIterationStrategy, getLogLevel, getMaximumWorkers, getModel, getName, getOutputPorts, getPorts, getRealLogLevel, getResourceHost, getRetries, getRetryDelay, getTimeout, getWorkers, hasBreakpoint, isBoring, isOffline, locatePort, locatePort, removeAlternate, removeAnnotationTemplate, removePort, rmvBreakpoint, setBackoff, setBoring, setCritical, setDescription, setIterationStrategy, setLogLevel, setName, setOffline, setOnline, setRetries, setRetryDelay, setTimeout, setWorkers, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RservProcessor

public RservProcessor(ScuflModel model,
                      java.lang.String name)
               throws ProcessorCreationException,
                      DuplicateProcessorNameException
Throws:
ProcessorCreationException
DuplicateProcessorNameException

RservProcessor

public RservProcessor(ScuflModel model,
                      java.lang.String name,
                      java.lang.String script,
                      java.lang.String[] inputs)
               throws ProcessorCreationException,
                      DuplicateProcessorNameException
Construct a new processor with the given model and name, delegates to the superclass and sets the script up correctly along with the input and output port name arrays.

Throws:
ProcessorCreationException
DuplicateProcessorNameException
Method Detail

setScript

public void setScript(java.lang.String script)
Set the script


getScript

public java.lang.String getScript()
Get the script


getProperties

public java.util.Properties getProperties()
Get the properties for this processor for display purposes

Specified by:
getProperties in interface IProcessor
Specified by:
getProperties in class Processor
Returns:
a Properties instance containing all processor-specific properties, or optinally null if there are none

getHostname

public java.lang.String getHostname()

setHostname

public void setHostname(java.lang.String hostname)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

getPort

public int getPort()

setPort

public void setPort(int port)

getUsername

public java.lang.String getUsername()

setUsername

public void setUsername(java.lang.String username)