Package org.ow2.joram.spring
Class JoramServer
- java.lang.Object
-
- org.ow2.joram.spring.JoramServer
-
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean
public class JoramServer extends Object implements org.springframework.beans.factory.DisposableBean
Start/Stop a Joram server.
-
-
Field Summary
Fields Modifier and Type Field Description static Loggerlogmonprivate booleanstopServer
-
Constructor Summary
Constructors Constructor Description JoramServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate(short sid, String pathToConf, String storage, boolean collocated, boolean persistent)Create and start a Joram server (only if collocated).voiddestroy()Stop the Joram serverbooleanisStopServer()voidsetStopServer(boolean stopServer)
-
-
-
Field Detail
-
logmon
public static final Logger logmon
-
stopServer
private boolean stopServer
-
-
Method Detail
-
create
public void create(short sid, String pathToConf, String storage, boolean collocated, boolean persistent)Create and start a Joram server (only if collocated).- Parameters:
sid- the server idpathToConf- the path to the configuration (a3servers.xml, ...)storage- the path to the persistent directorycollocated- true if the Joram server is collocatedpersistent- true if the Joram server if persistent
-
destroy
public void destroy() throws ExceptionStop the Joram server- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception- See Also:
DisposableBean.destroy()
-
isStopServer
public boolean isStopServer()
- Returns:
- the stopServer
-
setStopServer
public void setStopServer(boolean stopServer)
- Parameters:
stopServer- the stopServer to set
-
-