GigaSpaces XAP 9.7.2 API

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

All Known Implementing Classes:
PlainJettyHolder, SharedJettyHolder

public interface JettyHolder

A generic holder that holds a Jetty server and controls its lifecycle. Note, make not to call start and stop on Server.

Author:
kimchy

Method Summary
 void closeConnectors()
          Closes Jetty ports.
 org.eclipse.jetty.server.Server getServer()
          Returns the jetty server.
 boolean isSingleInstance()
          Returns true if this is a single instance.
 void openConnectors()
          Open Jetty ports.
 void start()
          Start Jetty.
 void stop()
          Stops Jetty.
 

Method Detail

openConnectors

void openConnectors()
                    throws Exception
Open Jetty ports.

Throws:
Exception

closeConnectors

void closeConnectors()
                     throws Exception
Closes Jetty ports.

Throws:
Exception

start

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

Throws:
Exception

stop

void stop()
          throws Exception
Stops Jetty.

Throws:
Exception

getServer

org.eclipse.jetty.server.Server getServer()
Returns the jetty server.


isSingleInstance

boolean isSingleInstance()
Returns true if this is a single instance.


GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.