GigaSpaces XAP 7.0 API

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

java.lang.Object
  extended by org.openspaces.pu.container.jee.jetty.holder.PlainJettyHolder
All Implemented Interfaces:
JettyHolder

public class PlainJettyHolder
extends Object
implements JettyHolder

A plain wrapper around jetty. Simply deleagate the lifecycle calls directory to jetty.

Author:
kimchy

Constructor Summary
PlainJettyHolder(org.mortbay.jetty.Server server)
           
 
Method Summary
 void closeConnectors()
          Closes Jetty ports.
 org.mortbay.jetty.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainJettyHolder

public PlainJettyHolder(org.mortbay.jetty.Server server)
Method Detail

openConnectors

public void openConnectors()
                    throws Exception
Description copied from interface: JettyHolder
Open Jetty ports.

Specified by:
openConnectors in interface JettyHolder
Throws:
Exception

closeConnectors

public void closeConnectors()
                     throws Exception
Description copied from interface: JettyHolder
Closes Jetty ports.

Specified by:
closeConnectors in interface JettyHolder
Throws:
Exception

start

public void start()
           throws Exception
Description copied from interface: JettyHolder
Start Jetty. Note, if this fails, make sure to call JettyHolder.stop()

Specified by:
start in interface JettyHolder
Throws:
Exception

stop

public void stop()
          throws Exception
Description copied from interface: JettyHolder
Stops Jetty.

Specified by:
stop in interface JettyHolder
Throws:
Exception

getServer

public org.mortbay.jetty.Server getServer()
Description copied from interface: JettyHolder
Returns the jetty server.

Specified by:
getServer in interface JettyHolder

isSingleInstance

public boolean isSingleInstance()
Description copied from interface: JettyHolder
Returns true if this is a single instance.

Specified by:
isSingleInstance in interface JettyHolder

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.