Ejemplo n.º 1
0
 public static void Exit()
 {
     Logger.Warn("[MAIN] Exit the Server...");
     stop = false;
     if (!BlazeServer._exit)
     {
         BlazeServer.Stop();
     }
     if (!MagmaServer._exit)
     {
         MagmaServer.Stop();
     }
     if (!QOSServer._exit)
     {
         QOSServer.Stop();
     }
     if (!RedirectorServer._exit)
     {
         RedirectorServer.Stop();
     }
     if (!Webserver._exit)
     {
         Webserver.Stop();
     }
 }
Ejemplo n.º 2
0
        public static void StartServers()
        {
            bool useQOS       = Config.useQOS;
            bool useWebServer = Config.useWebServer;
            bool RediSSL      = Config.RediSSL;
            bool useShark     = Config.useShark;
            bool DEDISRV      = Config.DEDIServer;

            ProviderInfo.backendIP = Config.IPAddress;

            if (useQOS)
            {
                ProviderInfo.QOS_IP = ProviderInfo.backendIP;
            }
            else
            {
                ProviderInfo.QOS_IP = "gossjcprod-qos01.ea.com";
            }

            if (RediSSL)
            {
                RedirectorServer.useSSL = true;
            }
            else
            {
                RedirectorServer.useSSL = false;
            }

            if (!useShark)
            {
                RedirectorServer.targetPort = 30001;
            }

            RedirectorServer.Start();
            BlazeServer.Start();

            MagmaServer.basicMode = true;
            MagmaServer.Start();

            if (useQOS)
            {
                QOSServer.Start();
            }

            if (useWebServer)
            {
                Webserver.Start();
            }

            if (DEDISRV)
            {
                StartDEDServer();
            }
        }