Class SharedJettyHolder
java.lang.Object
org.openspaces.pu.container.jee.jetty.holder.JettyHolder
org.openspaces.pu.container.jee.jetty.holder.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.
- Author:
- kimchy
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openspaces.pu.container.jee.jetty.holder.JettyHolder
closeConnectors, getConfidentialPort, getHttpConfig, getSslConnectionPort, getSslPort, openConnectors, updateConfidentialPort
-
Constructor Details
-
SharedJettyHolder
public SharedJettyHolder(org.eclipse.jetty.server.Server localServer)
-
-
Method Details
-
start
Description copied from class:JettyHolderStart Jetty. Note, if this fails, make sure to callJettyHolder.stop()- Overrides:
startin classJettyHolder- Throws:
Exception
-
stop
Description copied from class:JettyHolderStops Jetty.- Overrides:
stopin classJettyHolder- Throws:
Exception
-
getServer
public org.eclipse.jetty.server.Server getServer()Description copied from class:JettyHolderReturns the jetty server.- Specified by:
getServerin classJettyHolder
-
isSingleInstance
public boolean isSingleInstance()Description copied from class:JettyHolderReturnstrueif this is a single instance.- Specified by:
isSingleInstancein classJettyHolder
-