Class ServerPiranha

java.lang.Object
cloud.piranha.server.ServerPiranha
All Implemented Interfaces:
Piranha, java.lang.Runnable

public class ServerPiranha
extends java.lang.Object
implements Piranha, java.lang.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 Summary

    Constructors 
    Constructor Description
    ServerPiranha()  
  • Method Summary

    Modifier and Type Method Description
    static ServerPiranha get()
    Get the instance.
    java.lang.String getVersion()
    Get the version.
    static void main​(java.lang.String[] arguments)
    Main method.
    void run()
    Start method.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • get

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

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

      public java.lang.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 java.lang.Runnable