protected virtual void SetupGridServices()
        {
            // m_log.Info("[DATA]: Connecting to Storage Server");
            m_gridDBService = new GridDBService();
            m_gridDBService.AddPlugin(m_config.DatabaseProvider, m_config.DatabaseConnect);

            //Register the database access service so modules can fetch it
            // RegisterInterface<GridDBService>(m_gridDBService);

            m_gridMessageModule = new GridMessagingModule();
            m_gridMessageModule.Initialise(m_version, m_gridDBService, m_core, m_config);

            m_gridXmlRpcModule = new GridXmlRpcModule();
            m_gridXmlRpcModule.Initialise(m_version, m_gridDBService, m_core, m_config);

            m_gridRestModule = new GridRestModule();
            m_gridRestModule.Initialise(m_version, m_gridDBService, m_core, m_config);

            m_gridMessageModule.PostInitialise();
            m_gridXmlRpcModule.PostInitialise();
            m_gridRestModule.PostInitialise();
        }
Example #2
0
        protected virtual void SetupGridServices()
        {
           // m_log.Info("[DATA]: Connecting to Storage Server");
            m_gridDBService = new GridDBService();
            m_gridDBService.AddPlugin(m_config.DatabaseProvider, m_config.DatabaseConnect);

            //Register the database access service so modules can fetch it
            // RegisterInterface<GridDBService>(m_gridDBService);

            m_gridMessageModule = new GridMessagingModule();
            m_gridMessageModule.Initialise(m_version, m_gridDBService, m_core, m_config);

            m_gridXmlRpcModule = new GridXmlRpcModule();
            m_gridXmlRpcModule.Initialise(m_version, m_gridDBService, m_core, m_config);

            m_gridRestModule = new GridRestModule();
            m_gridRestModule.Initialise(m_version, m_gridDBService, m_core, m_config);

            m_gridMessageModule.PostInitialise();
            m_gridXmlRpcModule.PostInitialise();
            m_gridRestModule.PostInitialise();
        }
Example #3
0
 public LoginException(string message, string xmlRpcMessage, Exception e)
     : base(message, e)
 {
     // FIXME: Might be neater to refactor and put the method inside here
     m_xmlRpcErrorResponse = GridXmlRpcModule.ErrorResponse(xmlRpcMessage);
 }