Beispiel #1
0
        public string Exec()
        {
            PcsManager pcs = PcsPool.GetByPid(pid);

            if (pcs != null)
            {
                pcs.Crash(pid);
            }

            return(String.Empty);
        }
Beispiel #2
0
        public string Exec()
        {
            StringBuilder result = new StringBuilder();

            foreach (string pid in PcsPool.GetAllPids())
            {
                PcsManager pcs = PcsPool.GetByPid(pid);
                if (pcs != null)
                {
                    string globalStatus = pcs.GlobalStatus(pid);
                    result.Append(globalStatus);
                }
            }

            return(result.ToString());
        }
Beispiel #3
0
        public string Exec()
        {
            PcsManager pcs = PcsPool.GetByUrl(pcsUrl);

            string serverURLs = String.Join(",", ServerList.Servers);

            bool result = pcs.StartClient(pid, clientUrl, msecPerRound, numPlayers, filename, serverURLs);

            if (result == true)
            {
                PcsPool.LinkPid(pid, pcsUrl);

                return(String.Empty);
            }
            else
            {
                return("Error - process not started");
            }
        }