|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.pu.container.jee.jetty.holder.JettyHolder org.openspaces.pu.container.jee.jetty.holder.SharedJettyHolder
public class SharedJettyHolder
A shared jetty holder that keeps upon first construction will store a static jetty instance and will reused it from then on. Upon the "last" call to stop, will actually stop the jetty instance.
Constructor Summary | |
---|---|
SharedJettyHolder(org.eclipse.jetty.server.Server localServer)
|
Method Summary | |
---|---|
org.eclipse.jetty.server.Server |
getServer()
Returns the jetty server. |
boolean |
isSingleInstance()
Returns true if this is a single instance. |
void |
start()
Start Jetty. |
void |
stop()
Stops Jetty. |
Methods inherited from class org.openspaces.pu.container.jee.jetty.holder.JettyHolder |
---|
closeConnectors, openConnectors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SharedJettyHolder(org.eclipse.jetty.server.Server localServer)
Method Detail |
---|
public void start() throws Exception
JettyHolder
JettyHolder.stop()
start
in class JettyHolder
Exception
public void stop() throws Exception
JettyHolder
stop
in class JettyHolder
Exception
public org.eclipse.jetty.server.Server getServer()
JettyHolder
getServer
in class JettyHolder
public boolean isSingleInstance()
JettyHolder
true
if this is a single instance.
isSingleInstance
in class JettyHolder
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |