|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.core.AbstractActor
adams.flow.core.AbstractScriptActor
adams.flow.core.AbstractJythonActor
adams.flow.sink.Jython
public class Jython
A sink that uses a Jython script for processing the token(s).
Input/output:-D (property: debug) If set to true, scheme may output additional info to the console.
-name <java.lang.String> (property: name) The name of the actor. default: Jython
-annotation <adams.core.base.BaseText> (property: annotations) The annotations to attach to this actor. default:
-skip (property: skip) If set to true, transformation is skipped and the input token is just forwarded as it is.
-script <adams.core.io.PlaceholderFile> (property: scriptFile) The script file to load and execute. default: .
-options <java.lang.String> (property: scriptOptions) The options for the Jython script; must consist of 'key=value' pairs separated by blanks; the value of 'key' can be accessed via the 'getAdditionalOption (String)' in the Jython actor. default:
| Field Summary | |
|---|---|
static String |
BACKUP_INPUT
the key for storing the current input in the backup. |
protected Token |
m_InputToken
the current input token. |
| Fields inherited from class adams.flow.core.AbstractJythonActor |
|---|
m_ActorObject, m_InlineScript |
| Fields inherited from class adams.flow.core.AbstractScriptActor |
|---|
m_ScriptFile, m_ScriptObject, m_ScriptOptions |
| Fields inherited from class adams.flow.core.AbstractActor |
|---|
m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, m_Executing, m_FullName, m_Headless, m_Name, m_Parent, m_Root, m_Self, m_Skip, m_StopFlowOnError, m_StopMessage, m_Stopped, m_StorageHandler, m_VariablesUpdated |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Fields inherited from interface adams.flow.core.Actor |
|---|
FILE_EXTENSION, FILE_EXTENSION_GZ |
| Constructor Summary | |
|---|---|
Jython()
|
|
| Method Summary | |
|---|---|
Class[] |
accepts()
Returns the class of objects that it accepts. |
protected Hashtable<String,Object> |
backupState()
Backs up the current state of the actor before update the variables. |
protected String |
doExecute()
Executes the flow item. |
String |
globalInfo()
Returns a string describing the object. |
void |
input(Token token)
The method that accepts the input token and then processes it. |
protected void |
pruneBackup()
Removes entries from the backup. |
protected void |
restoreState(Hashtable<String,Object> state)
Restores the state of the actor before the variables got updated. |
void |
wrapUp()
Cleans up after the execution has finished. |
| Methods inherited from class adams.flow.core.AbstractJythonActor |
|---|
checkScriptObject, defineOptions, getDefaultInlineScript, getInlineScript, getQuickInfo, inlineScriptTipText, loadScriptObject, scriptOptionsTipText, setInlineScript, setUp |
| Methods inherited from class adams.flow.core.AbstractScriptActor |
|---|
getScriptFile, getScriptOptions, initScriptObject, scriptFileTipText, setScriptFile, setScriptOptions |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface adams.flow.core.Actor |
|---|
cleanUp, compareTo, debug, destroy, equals, execute, findVariables, getAnnotations, getDefaultName, getDetectedVariables, getErrorHandler, getFullName, getName, getNextSibling, getParent, getPreviousSibling, getQuickInfo, getRoot, getSkip, getStopFlowOnError, getStopMessage, getStorageHandler, getVariables, handleError, hasErrorHandler, hasStopMessage, index, isExecuted, isFinished, isHeadless, isStopped, setAnnotations, setErrorHandler, setHeadless, setName, setParent, setSkip, setStopFlowOnError, setUp, setVariables, sizeOf, stopExecution, stopExecution, variableChanged |
| Methods inherited from interface adams.core.AdditionalInformationHandler |
|---|
getAdditionalInformation |
| Methods inherited from interface adams.core.option.OptionHandler |
|---|
cleanUpOptions, defineOptions, getOptionManager |
| Field Detail |
|---|
public static final String BACKUP_INPUT
protected Token m_InputToken
| Constructor Detail |
|---|
public Jython()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerprotected void pruneBackup()
pruneBackup in class AbstractActorprotected Hashtable<String,Object> backupState()
backupState in class AbstractActorprotected void restoreState(Hashtable<String,Object> state)
restoreState in class AbstractActorstate - the backup of the state to restore frompublic Class[] accepts()
accepts in interface InputConsumerpublic void input(Token token)
input in interface InputConsumertoken - the token to accept and processprotected String doExecute()
doExecute in class AbstractActorpublic void wrapUp()
wrapUp in interface ActorwrapUp in class AbstractJythonActor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||