java.lang.Object
org.openspaces.pu.container.jee.jetty.holder.JettyHolder
Direct Known Subclasses:
PlainJettyHolder, SharedJettyHolder

public abstract class JettyHolder extends Object
A generic holder that holds a Jetty server and controls its lifecycle. Note, make not to call start and stop on Server.
Author:
kimchy
  • Constructor Details

    • JettyHolder

      public JettyHolder()
  • Method Details

    • getServer

      public abstract org.eclipse.jetty.server.Server getServer()
      Returns the jetty server.
    • isSingleInstance

      public abstract boolean isSingleInstance()
      Returns true if this is a single instance.
    • openConnectors

      public void openConnectors() throws Exception
      Open Jetty ports.
      Throws:
      Exception
    • closeConnectors

      public void closeConnectors() throws Exception
      Closes Jetty ports.
      Throws:
      Exception
    • start

      public void start() throws Exception
      Start Jetty. Note, if this fails, make sure to call stop()
      Throws:
      Exception
    • stop

      public void stop() throws Exception
      Stops Jetty.
      Throws:
      Exception
    • updateConfidentialPort

      public void updateConfidentialPort(int port, int newPort)
    • getConfidentialPort

      public static int getConfidentialPort(org.eclipse.jetty.server.Connector connector)
    • getHttpConfig

      public static org.eclipse.jetty.server.HttpConfiguration getHttpConfig(org.eclipse.jetty.server.Connector connector)
    • getSslPort

      public static int getSslPort(org.eclipse.jetty.server.Connector connector)
    • getSslConnectionPort

      public static int getSslConnectionPort(org.eclipse.jetty.server.Connector connector)