Class AbstractExternalActor

    • Field Detail

      • m_OnTheFly

        protected boolean m_OnTheFly
        whether the flow gets built on the fly and might not be present at the start.
      • m_ExternalActor

        protected Actor m_ExternalActor
        the external actor itself.
      • m_ActorFileIsVariable

        protected Boolean m_ActorFileIsVariable
        indicates whether a variable is attached to the external file.
      • m_ActorFileVariable

        protected String m_ActorFileVariable
        the variable attached to the external file.
      • m_ActorFileChanged

        protected boolean m_ActorFileChanged
        whether the external actor file has changed.
    • Constructor Detail

      • AbstractExternalActor

        public AbstractExternalActor()
    • Method Detail

      • setMonitor

        public void setMonitor​(FileChangeMonitor value)
        Sets the file change monitor for the actor file.
        Parameters:
        value - the monitor
      • getMonitor

        public FileChangeMonitor getMonitor()
        Returns the file change monitor for the actor file.
        Returns:
        the monitor
      • monitorTipText

        public String monitorTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setOnTheFly

        public void setOnTheFly​(boolean value)
        Sets whether the flow file gets built on the fly and might not be present at start up time.
        Parameters:
        value - if true then the flow does not have to be present at start up time
      • getOnTheFly

        public boolean getOnTheFly()
        Returns whether the flow file gets built on the fly and might not be present at start up time.
        Returns:
        true if the flow is not necessarily present at start up time
      • onTheFlyTipText

        public String onTheFlyTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setParent

        public void setParent​(Actor value)
        Sets the parent of this actor, e.g., the group it belongs to.
        Specified by:
        setParent in interface Actor
        Overrides:
        setParent in class AbstractActor
        Parameters:
        value - the new parent
      • getExternalActor

        public Actor getExternalActor()
        Returns the external actor.
        Specified by:
        getExternalActor in interface ExternalActorHandler
        Returns:
        the actor, can be null if not initialized yet or failed to initialize
      • forceVariables

        protected void forceVariables​(Variables value)
        Updates the Variables instance in use.

        Use with caution!
        Overrides:
        forceVariables in class AbstractActor
        Parameters:
        value - the instance to use
      • preExecuteExternalActorHook

        protected String preExecuteExternalActorHook()
        Gets called in the doExceute() method, after an optional setUpExternalActor() call (in case a variable is used for the actor file), but before the external actor's execute() method is called.

        Default implementation does nothing.
        Returns:
        null if everything ok, otherwise error message
        See Also:
        doExecute(), setUpExternalActor()
      • doExecute

        protected String doExecute()
        Executes the flow item.
        Specified by:
        doExecute in class AbstractActor
        Returns:
        null if everything is fine, otherwise error message
      • wrapUp

        public void wrapUp()
        Cleans up after the execution has finished. Graphical output is left untouched.
        Specified by:
        wrapUp in interface Actor
        Overrides:
        wrapUp in class AbstractActor