Class 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 Detail

      • logmon

        public static final Logger logmon
      • stopServer

        private boolean stopServer
    • Constructor Detail

      • JoramServer

        public JoramServer()
    • 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 id
        pathToConf - the path to the configuration (a3servers.xml, ...)
        storage - the path to the persistent directory
        collocated - true if the Joram server is collocated
        persistent - true if the Joram server if persistent
      • destroy

        public void destroy()
                     throws Exception
        Stop the Joram server
        Specified by:
        destroy in interface org.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