Class ResinRun

  • All Implemented Interfaces:
    Runnable

    public class ResinRun
    extends DefaultServerRun
    Starts/stop Resin by setting up a listener socket. Supports Resin 2.0.x, 2.1.x and 3.x.
    • Field Detail

      • DEFAULT_KEEPALIVE_SOCKET_PORT

        public static final int DEFAULT_KEEPALIVE_SOCKET_PORT
        Default keepalive socket port for Resin 3.x. We create a server socket on this port that acts as a keepalive for Resin. When this socket closes Resin stops. This is a Resin feature.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResinRun

        public ResinRun​(String[] args)
        Parameters:
        args - the command line arguments
    • Method Detail

      • main

        public static void main​(String[] args)
        Entry point to start/stop the Resin server.
        Parameters:
        args - the command line arguments
      • doStartServer

        protected void doStartServer​(String[] args)
        Start the Resin server. We use reflection so that the Resin jars do not need to be in the classpath to compile this class. Starts the server (in a blocking mode) and set up a socket listener.
        Overrides:
        doStartServer in class DefaultServerRun
        Parameters:
        args - the command line arguments
      • doStopServer

        protected void doStopServer​(String[] args)
        Stops the Resin server. We use reflection so that the Resin jars do not need to be in the classpath to compile this class. Stops the server by connecting to the socket set up when the server was started.
        Overrides:
        doStopServer in class DefaultServerRun
        Parameters:
        args - the command line arguments