GigaSpaces XAP 10.0.1 API

org.openspaces.pu.container.jee.jetty.holder
Class JettyHolder

java.lang.Object
  extended by 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 Summary
JettyHolder()
           
 
Method Summary
 void closeConnectors()
          Closes Jetty ports.
abstract  org.eclipse.jetty.server.Server getServer()
          Returns the jetty server.
abstract  boolean isSingleInstance()
          Returns true if this is a single instance.
 void openConnectors()
          Open Jetty ports.
 void start()
          Start Jetty.
 void stop()
          Stops Jetty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettyHolder

public JettyHolder()
Method Detail

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

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.