Class DataServiceSrv


  • public final class DataServiceSrv
    extends Object
    This class implements the service part of the Data Service.
    • Field Detail

      • runningServer

        public boolean runningServer
        Indicates if server is running or not.
    • Constructor Detail

      • DataServiceSrv

        public DataServiceSrv​(CfgDataService thecfgDS,
                              CfgLogic thecfgLM)
                       throws Exception
        Start server
        Parameters:
        thecfgDS - DS configuration
        thecfgLM - LM configuration
        Throws:
        Exception - if some exception occurs
    • Method Detail

      • 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()
        Unbinds the service
      • disconnectFromOthers

        public void disconnectFromOthers()
        Disconnect DS from others
      • main

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

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

        public DataService getDataService()
        Used in mock testing
        Returns:
        DataSercice