GigaSpaces XAP 7.0 API

org.openspaces.pu.container.jee.glassfish.holder
Class SharedGlassfishHolder

java.lang.Object
  extended by org.openspaces.pu.container.jee.glassfish.holder.SharedGlassfishHolder
All Implemented Interfaces:
GlassfishHolder

public class SharedGlassfishHolder
extends Object
implements GlassfishHolder

Author:
kimchy

Constructor Summary
SharedGlassfishHolder(GlassfishServer localServer)
           
 
Method Summary
 int getPort()
           
 org.glassfish.embed.Server getServer()
          Returns the Glassfish server.
 void incPort()
           
 boolean isSingleInstance()
           
 void start()
          Start Glassfish.
 void stop()
          Stops Glassfish.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedGlassfishHolder

public SharedGlassfishHolder(GlassfishServer localServer)
Method Detail

start

public void start()
           throws Exception
Description copied from interface: GlassfishHolder
Start Glassfish. Note, if this fails, make sure to call GlassfishHolder.stop()

Specified by:
start in interface GlassfishHolder
Throws:
Exception

stop

public void stop()
          throws Exception
Description copied from interface: GlassfishHolder
Stops Glassfish.

Specified by:
stop in interface GlassfishHolder
Throws:
Exception

getServer

public org.glassfish.embed.Server getServer()
Description copied from interface: GlassfishHolder
Returns the Glassfish server.

Specified by:
getServer in interface GlassfishHolder

isSingleInstance

public boolean isSingleInstance()
Specified by:
isSingleInstance in interface GlassfishHolder

getPort

public int getPort()
Specified by:
getPort in interface GlassfishHolder

incPort

public void incPort()
Specified by:
incPort in interface GlassfishHolder

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.