Class EdalServer


  • public class EdalServer
    extends java.lang.Object
    Implementation of a RMI server for the eDAL system.
    • Constructor Summary

      Constructors 
      Constructor Description
      EdalServer()  
    • Method Summary

      Modifier and Type Method Description
      static org.apache.logging.log4j.Logger getLogger()  
      static void main​(java.lang.String[] args)
      static void startServer​(EdalConfiguration config, int registryPort, int dataPort, boolean cleanDB, boolean startLogging)
      Start the RMI server.
      static void stopServer​(java.lang.String host, int port)
      Stop a running eDAL RMI server.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DATA_MANAGER_NAME

        public static final java.lang.String DATA_MANAGER_NAME
        The name of the eDAL RMI service
        See Also:
        Constant Field Values
    • Constructor Detail

      • EdalServer

        public EdalServer()
    • Method Detail

      • startServer

        public static void startServer​(EdalConfiguration config,
                                       int registryPort,
                                       int dataPort,
                                       boolean cleanDB,
                                       boolean startLogging)
        Start the RMI server.
        Parameters:
        config - the configuration class to star eDal system
        registryPort - the port to start Registry
        dataPort - the data port for RMI
        cleanDB - true: TAKE CARE!! if the mount path exist; the existing database and index files will be dropped!!
        false
        : mount to existing mount path
        startLogging - true: print out server log to System.out.
        false: no output of server log.
      • stopServer

        public static void stopServer​(java.lang.String host,
                                      int port)
                               throws java.rmi.RemoteException
        Stop a running eDAL RMI server.
        Parameters:
        host - the host to stop the Registry.
        port - the port to stop the Registry.
        Throws:
        java.rmi.RemoteException - if unable to call remote function.
      • getLogger

        public static org.apache.logging.log4j.Logger getLogger()