ConfigType
- the configuration type used for this activitypublic abstract class AbstractAsynchronousActivity<ConfigType> extends AbstractActivity<ConfigType> implements AsynchronousActivity<ConfigType>
inputPortMapping, inputPorts, outputPortMapping, outputPorts
Constructor and Description |
---|
AbstractAsynchronousActivity() |
Modifier and Type | Method and Description |
---|---|
abstract void |
configure(ConfigType conf)
Called immediately after object construction by the deserialisation
framework with a configuration bean built from the auto-generated XML.
|
abstract void |
executeAsynch(Map<String,T2Reference> data,
AsynchronousActivityCallback callback)
Request an asynchronous invocation of the activity on the specified data.
|
abstract ConfigType |
getConfiguration()
Get a configuration bean representing the definition of the activity.
|
addInput, addOutput, addOutput, configurePorts, getEdits, getInputPortMapping, getInputPorts, getOutputPortMapping, getOutputPorts, removeInputs, removeOutputs, setEdits
getAddAnnotationEdit, getAnnotations, getRemoveAnnotationEdit, setAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputPortMapping, getInputPorts, getOutputPortMapping, getOutputPorts, setEdits
getAddAnnotationEdit, getAnnotations, getRemoveAnnotationEdit, setAnnotations
public abstract void configure(ConfigType conf) throws ActivityConfigurationException
This method is responsible for the creation of input and output ports, something that is currently done in the constructor of the Taverna 1 Processor class.
configure
in interface Configurable<ConfigType>
configure
in interface Activity<ConfigType>
configure
in class AbstractActivity<ConfigType>
ActivityConfigurationException
Activity.configure(java.lang.Object)
public abstract ConfigType getConfiguration()
getConfiguration
in interface Configurable<ConfigType>
getConfiguration
in class AbstractActivity<ConfigType>
Configurable.getConfiguration()
public abstract void executeAsynch(Map<String,T2Reference> data, AsynchronousActivityCallback callback)
This method must not block! However it happens this method must return immediately after creating the new activity invocation. Do not do any heavy lifting in the body of this method without creating a new thread specifically for it.
executeAsynch
in interface AsynchronousActivity<ConfigType>
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.