org.embl.ebi.escience.scuflworkers.java
Class LocalServiceProcessor

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

public class LocalServiceProcessor
extends Processor

A processor that runs the quick Java plugins defined by the LocalService interface in this package.

Author:
Tom Oinn
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.embl.ebi.escience.scufl.IProcessor
ENACTOR
 
Constructor Summary
LocalServiceProcessor(ScuflModel model, java.lang.String name, LocalWorker worker)
           
LocalServiceProcessor(ScuflModel model, java.lang.String name, java.lang.String workerClassName)
           
LocalServiceProcessor(ScuflModel model, java.lang.String name, java.lang.String workerClassName, org.jdom.Element additionalXML)
           
 
Method Summary
 int getMaximumWorkers()
          Return the maximum number of task implementations that should be launched for this processor.
 java.util.Properties getProperties()
          Get the properties for this processor
 LocalWorker getWorker()
           
 java.lang.String getWorkerClassName()
           
 
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, 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

LocalServiceProcessor

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

LocalServiceProcessor

public LocalServiceProcessor(ScuflModel model,
                             java.lang.String name,
                             java.lang.String workerClassName,
                             org.jdom.Element additionalXML)
                      throws ProcessorCreationException,
                             DuplicateProcessorNameException
Throws:
ProcessorCreationException
DuplicateProcessorNameException

LocalServiceProcessor

public LocalServiceProcessor(ScuflModel model,
                             java.lang.String name,
                             java.lang.String workerClassName)
                      throws ProcessorCreationException,
                             DuplicateProcessorNameException
Throws:
ProcessorCreationException
DuplicateProcessorNameException
Method Detail

getWorkerClassName

public java.lang.String getWorkerClassName()

getWorker

public LocalWorker getWorker()

getMaximumWorkers

public int getMaximumWorkers()
Description copied from class: Processor
Return the maximum number of task implementations that should be launched for this processor. This is ignored unless the processor is being iterated over in which case a number of threads up to the value specified are created to process the information. You must be particularly careful that the task implementation is thread safe before changing this from the default specified here, at the current time the web service processor is not thread safe!

Specified by:
getMaximumWorkers in interface IProcessor
Overrides:
getMaximumWorkers in class Processor

getProperties

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

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