Exemplo n.º 1
0
        public static void Initialize()
        {
            LoadConfig();

            if (!startServer)
            {
                return;
            }

            if (logger != null)
            {
                logger.Close();
            }

            logger = new Logger.Logger(logDir, typeof(GFXDServerMgr).FullName + ".log");

            locator = new GFXDLocator();
            locator.Start();

            try
            {
                for (int i = 0; i < numServers; i++)
                {
                    GFXDServer server = new GFXDServer(locator);
                    server.Start();
                    AddServer(server);
                }
            }
            catch (Exception e)
            {
                Log(DbHelper.GetExceptionDetails(e, new StringBuilder()).ToString());
            }
        }
Exemplo n.º 2
0
        public static void Initialize()
        {
            LoadConfig();

            if (!startServer)
                return;

            if (logger != null)
                logger.Close();

            logger = new Logger.Logger(logDir  , typeof(GFXDServerMgr).FullName + ".log");

            locator = new GFXDLocator();
            locator.Start();

            try
            {
                for (int i = 0; i < numServers; i++)
                {
                    GFXDServer server = new GFXDServer(locator);
                    server.Start();
                    AddServer(server);
                }
            }
            catch (Exception e)
            {
                Log(DbHelper.GetExceptionDetails(e, new StringBuilder()).ToString());
            }
        }
Exemplo n.º 3
0
        public static void StartServer(String serverName)
        {
            GFXDServer server = GetServer(serverName);

            if (server.ServerState == GFXDState.STOPPED)
            {
                server.Start();
            }
        }