Class DefaultScriptingEngine

    • Field Detail

      • m_Server

        protected transient ServerSocket m_Server
        for accepting connections.
      • m_Timeout

        protected int m_Timeout
        the timeout for the socket.
      • m_Port

        protected int m_Port
        the port to listen on.
    • Constructor Detail

      • DefaultScriptingEngine

        public DefaultScriptingEngine()
    • Method Detail

      • setPort

        public void setPort​(int value)
        Sets the port to listen on.
        Parameters:
        value - the port to listen on
      • getPort

        public int getPort()
        Returns the port to listen on.
        Returns:
        the port listening on
      • portTipText

        public String portTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setTimeout

        public void setTimeout​(int value)
        Sets the timeout in milli-second to wait for new connections.
        Parameters:
        value - the timeout in msec
      • getTimeout

        public int getTimeout()
        Returns the timeout in milli-second to wait for new connections.
        Returns:
        the timeout in msec
      • timeoutTipText

        public String timeoutTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • closeSocket

        protected void closeSocket()
        Closes the server socket if necessary.
      • handleClient

        protected void handleClient​(Socket client)
        Handles the client connection.
        Parameters:
        client - the connection to handle
      • doExecute

        protected String doExecute()
        Executes the scripting engine.
        Specified by:
        doExecute in class AbstractScriptingEngine
        Returns:
        error message in case of failure to start up or run, otherwise null
      • main

        public static void main​(String[] args)
        Starts the scripting engine from commandline.
        Parameters:
        args - additional options for the scripting engine