示例#1
0
        void restart(string hostname, string system)
        {
            if (BloombergTagsTable.TAGS.anyAutoExecute(system) && !FerretControl.status().Equals("Stage"))
            {
                var answer = gui.askUser("This will put Ferret into Stage mode.  Are you sure you want to do this?");
                if (answer != YesNoCancel.YES)
                {
                    return;
                }
                FerretControl.requestFerretChange("Stage");
                wait(() => FerretControl.status().Equals("Stage"));
            }
            var fields = new Fields();

            fields.put("System", system);
            fields.put("Hostname", hostname);
            fields.put("Timestamp", ymdHuman(now()));
            LiveLauncher.restartTopic().send(fields);
        }