Class ServerPiranha

  • All Implemented Interfaces:
    Piranha, Runnable

    public class ServerPiranha
    extends Object
    implements Piranha, Runnable
    The Servlet container version of Piranha.

    This version of Piranha makes it possible for you to run multiple web applications at the same time.

    It has a shutdown mechanism that allows you to shutdown the server by removing the piranha.pid file that should be created by the startup script.

    Author:
    Manfred Riem (mriem@manorrock.com)
    • Constructor Detail

      • ServerPiranha

        public ServerPiranha()
    • Method Detail

      • get

        public static ServerPiranha get()
        Get the instance.
        Returns:
        the instance.
      • main

        public static void main​(String[] arguments)
        Main method.
        Parameters:
        arguments - the arguments.
      • getVersion

        public String getVersion()
        Get the version.
        Specified by:
        getVersion in interface Piranha
        Returns:
        the version.
      • run

        public void run()
        Start method.
        Specified by:
        run in interface Runnable