|
GigaSpaces XAP 9.7.2 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.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 | |
---|---|
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. |
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 openConnectors() throws Exception
JettyHolder
openConnectors
in interface JettyHolder
Exception
public void closeConnectors() throws Exception
JettyHolder
closeConnectors
in interface JettyHolder
Exception
public void start() throws Exception
JettyHolder
JettyHolder.stop()
start
in interface JettyHolder
Exception
public void stop() throws Exception
JettyHolder
stop
in interface JettyHolder
Exception
public org.eclipse.jetty.server.Server getServer()
JettyHolder
getServer
in interface JettyHolder
public boolean isSingleInstance()
JettyHolder
true
if this is a single instance.
isSingleInstance
in interface JettyHolder
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |