Package adams.flow.rest.flow
Class AbstractCallablePipeline<T>
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.rest.AbstractRESTPlugin
-
- adams.flow.rest.AbstractRESTPluginWithFlowContext
-
- adams.flow.rest.flow.AbstractCallablePipeline<T>
-
- All Implemented Interfaces:
adams.core.AdditionalInformationHandler,adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.SizeOfHandler,adams.flow.core.CallableActorUser,adams.flow.core.FlowContextHandler,RESTPlugin,Serializable
- Direct Known Subclasses:
CallableJsonPipeline,CallableTextPipeline
public abstract class AbstractCallablePipeline<T> extends AbstractRESTPluginWithFlowContext implements adams.flow.core.CallableActorUser
Ancestor for pipeline that process data with a callable pipeline template.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.flow.core.CallableActorHelperm_Helperthe helper class.protected adams.flow.core.CallableActorReferencem_Pipelinethe callable transformer to use as processing pipeline.protected adams.flow.core.Actorm_PipelineActorthe actual actor.protected booleanm_PipelineActorInitializedwhether the pipeline actor has been set up.protected adams.flow.control.ScopeHandler.ScopeHandlingm_ScopeHandlingStoragehow to handle the storage.protected adams.flow.control.ScopeHandler.ScopeHandlingm_ScopeHandlingVariableshow to handle the variables.-
Fields inherited from class adams.flow.rest.AbstractRESTPluginWithFlowContext
m_FlowContext
-
-
Constructor Summary
Constructors Constructor Description AbstractCallablePipeline()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcheckCompatibility()Hook method to add compatibility checks.voiddefineOptions()Adds options to the internal list of options.protected ObjectdoProcess(Object input, adams.core.MessageCollection errors)Processes the incoming data.adams.flow.core.ActorgetCallableActor()Returns the currently set callable actor.adams.flow.core.CallableActorReferencegetPipeline()Returns the name of the callable actor to use as pipeline.adams.flow.control.ScopeHandler.ScopeHandlinggetScopeHandlingStorage()Returns how storage is handled in the local scope.adams.flow.control.ScopeHandler.ScopeHandlinggetScopeHandlingVariables()Returns how variables are handled in the local scope.protected StringglobalInfoBase()Returns a string describing the object.protected voidinitialize()Initializes the members.protected StringinitPipeline()Initializes the pipeline.StringpipelineTipText()Returns the tip text for this property.protected voidreset()Resets the scheme.StringscopeHandlingStorageTipText()Returns the tip text for this property.StringscopeHandlingVariablesTipText()Returns the tip text for this property.voidsetPipeline(adams.flow.core.CallableActorReference value)Sets the name of the callable actor to use as pipeline.voidsetScopeHandlingStorage(adams.flow.control.ScopeHandler.ScopeHandling value)Sets how to handle storage in the local scope.voidsetScopeHandlingVariables(adams.flow.control.ScopeHandler.ScopeHandling value)Sets how to handle variables into the local scope.-
Methods inherited from class adams.flow.rest.AbstractRESTPluginWithFlowContext
getFlowContext, setFlowContext
-
Methods inherited from class adams.flow.rest.AbstractRESTPlugin
getAdditionalInformation
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, loggingLevelTipText, newOptionManager, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Pipeline
protected adams.flow.core.CallableActorReference m_Pipeline
the callable transformer to use as processing pipeline.
-
m_PipelineActor
protected transient adams.flow.core.Actor m_PipelineActor
the actual actor.
-
m_PipelineActorInitialized
protected boolean m_PipelineActorInitialized
whether the pipeline actor has been set up.
-
m_ScopeHandlingVariables
protected adams.flow.control.ScopeHandler.ScopeHandling m_ScopeHandlingVariables
how to handle the variables.
-
m_ScopeHandlingStorage
protected adams.flow.control.ScopeHandler.ScopeHandling m_ScopeHandlingStorage
how to handle the storage.
-
m_Helper
protected adams.flow.core.CallableActorHelper m_Helper
the helper class.
-
-
Method Detail
-
globalInfoBase
protected String globalInfoBase()
Returns a string describing the object.- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classadams.core.option.AbstractOptionHandler
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initializein classadams.core.option.AbstractOptionHandler
-
reset
protected void reset()
Resets the scheme.- Overrides:
resetin classadams.core.option.AbstractOptionHandler
-
setPipeline
public void setPipeline(adams.flow.core.CallableActorReference value)
Sets the name of the callable actor to use as pipeline.- Parameters:
value- the callable name
-
getPipeline
public adams.flow.core.CallableActorReference getPipeline()
Returns the name of the callable actor to use as pipeline.- Returns:
- the callable name
-
pipelineTipText
public String pipelineTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setScopeHandlingVariables
public void setScopeHandlingVariables(adams.flow.control.ScopeHandler.ScopeHandling value)
Sets how to handle variables into the local scope.- Parameters:
value- the scope handling
-
getScopeHandlingVariables
public adams.flow.control.ScopeHandler.ScopeHandling getScopeHandlingVariables()
Returns how variables are handled in the local scope.- Returns:
- the scope handling
-
scopeHandlingVariablesTipText
public String scopeHandlingVariablesTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setScopeHandlingStorage
public void setScopeHandlingStorage(adams.flow.control.ScopeHandler.ScopeHandling value)
Sets how to handle storage in the local scope.- Parameters:
value- the scope handling
-
getScopeHandlingStorage
public adams.flow.control.ScopeHandler.ScopeHandling getScopeHandlingStorage()
Returns how storage is handled in the local scope.- Returns:
- the scope handling
-
scopeHandlingStorageTipText
public String scopeHandlingStorageTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getCallableActor
public adams.flow.core.Actor getCallableActor()
Returns the currently set callable actor.- Specified by:
getCallableActorin interfaceadams.flow.core.CallableActorUser- Returns:
- the actor, can be null
-
checkCompatibility
protected String checkCompatibility()
Hook method to add compatibility checks.
Default implementation does nothing.- Returns:
- null if compatible, otherwise error message
-
initPipeline
protected String initPipeline()
Initializes the pipeline.- Returns:
- null if successfully initialized
-
-