Class AbstractPyroCall

    • Field Detail

      • m_RemoteObjectName

        protected String m_RemoteObjectName
        the name of the remote object.
      • m_MethodName

        protected String m_MethodName
        the name of the method.
      • m_FlowContext

        protected transient Actor m_FlowContext
        the flow context.
      • m_NameServer

        protected transient PyroNameServer m_NameServer
        the nameserver.
      • m_RemoteObject

        protected transient net.razorvine.pyro.PyroProxy m_RemoteObject
        the remote object.
    • Constructor Detail

      • AbstractPyroCall

        public AbstractPyroCall()
    • Method Detail

      • reset

        protected void reset()
        Description copied from class: AbstractOptionHandler
        Resets the scheme. Derived classes must call this method in set-methods of parameters to assure the invalidation of previously generated data.
        Overrides:
        reset in class AbstractOptionHandler
      • getDefaultRemoteObjectName

        protected String getDefaultRemoteObjectName()
        Returns the default remote object name.
        Returns:
        the name
      • setRemoteObjectName

        public void setRemoteObjectName​(String value)
        Sets the name of the remote object to use.
        Specified by:
        setRemoteObjectName in interface PyroCall
        Parameters:
        value - the name
      • getRemoteObjectName

        public String getRemoteObjectName()
        Returns the name of the remote object to use.
        Specified by:
        getRemoteObjectName in interface PyroCall
        Returns:
        the name
      • remoteObjectNameTipText

        public String remoteObjectNameTipText()
        Returns the tip text for this property.
        Specified by:
        remoteObjectNameTipText in interface PyroCall
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getDefaultMethodName

        protected String getDefaultMethodName()
        Returns the default method name.
        Returns:
        the name
      • setMethodName

        public void setMethodName​(String value)
        Sets the name of the method to call.
        Specified by:
        setMethodName in interface PyroCall
        Parameters:
        value - the name
      • getMethodName

        public String getMethodName()
        Returns the name of the method to call.
        Specified by:
        getMethodName in interface PyroCall
        Returns:
        the name
      • methodNameTipText

        public String methodNameTipText()
        Returns the tip text for this property.
        Specified by:
        methodNameTipText in interface PyroCall
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the actor, which will be displayed in the GUI.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • getFlowContext

        public Actor getFlowContext()
        Returns the flow context, if any.
        Specified by:
        getFlowContext in interface FlowContextHandler
        Returns:
        the actor, null if none available
      • setUp

        public String setUp()
        Configures the call.
        Specified by:
        setUp in interface PyroCall
        Returns:
        null if successful, otherwise error message
      • preExecute

        protected String preExecute()
        Before performing the actual call. Attempts to obtain the remote object if no instance yet available.
        Returns:
        null if successful, otherwise error message
      • doExecute

        protected abstract String doExecute()
        Performs the actual call.
        Returns:
        null if successful, otherwise error message
      • postExecute

        protected String postExecute()
        After performing the actual call.
        Default implementation does nothing, returns null.
        Returns:
        null if successful, otherwise error message
      • execute

        public String execute()
        Performs the call.
        Specified by:
        execute in interface PyroCall
        Returns:
        null if successful, otherwise error message
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.
        Specified by:
        cleanUp in interface CleanUpHandler