|
GigaSpaces XAP 10.0.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
JettyHolderJettyHolder.stop()
start in class JettyHolderException
public void stop()
throws Exception
JettyHolder
stop in class JettyHolderExceptionpublic org.eclipse.jetty.server.Server getServer()
JettyHolder
getServer in class JettyHolderpublic boolean isSingleInstance()
JettyHoldertrue 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 | |||||||||