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