Class LogicModuleSrv


  • public final class LogicModuleSrv
    extends Object
    This class implements the service part of the Logic Module.
    • Field Detail

      • DEBUG_ENABLED

        protected static final boolean DEBUG_ENABLED
      • running

        public boolean running
        Indicates if server is running.
    • Method Detail

      • main

        public static void main​(String[] args)
                         throws Exception
        Parameters:
        args - Containing the config file
        Throws:
        Exception - if an exception occurs
      • start

        public void start()
                   throws Exception
        Start service.
        Throws:
        Exception - if some exception occurs
      • doExit

        public static void doExit​(int exitStatus)
      • stopService

        public void stopService()
                         throws Exception
        Unbinds the service
        Throws:
        Exception - if an exception occurs
      • cleanMDCaches

        public void cleanMDCaches()
                           throws Exception
        Clean MD caches
        Throws:
        Exception - if an exception occurs
      • getLogicModule

        public LogicModule getLogicModule()
        Returns:
        the reference to LM
      • waitAndProcessAllAsyncRequests

        public void waitAndProcessAllAsyncRequests()
        Wait for all asynchronous request to finish.
      • getTcpPort

        public int getTcpPort()
        Return the TCP Port for the LogicModule.
        Returns:
        The TCP port.
      • getHostname

        public String getHostname()
        Return the hostname of the LogicModule.
        Returns:
        The hostname string.
      • getForTest

        public static LogicModuleSrv getForTest​(String[] args)
                                         throws Exception
        Parameters:
        args - args[0] == the manager configuration file path with the configuration for backends and so on
        Returns:
        LogicModuleSrv for test.
        Throws:
        Exception - if some exception was thrown