GigaSpaces - Open Spaces

org.openspaces.pu.container.jee.jetty
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.mortbay.jetty.Server getServer()
          Returns the jetty server.
 boolean isSingleInstance()
           
 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.mortbay.jetty.Server getServer()
Returns the jetty server.


isSingleInstance

boolean isSingleInstance()

GigaSpaces - Open Spaces

Copyright © GigaSpaces.