public void Initialize(ISimulationBase simulationBase)
        {
            m_simulationBase = simulationBase;

            Timer PeriodicDiagnosticsTimer = new Timer(60 * 60 * 1000); // One hour

            PeriodicDiagnosticsTimer.Elapsed += LogDiagnostics;
            PeriodicDiagnosticsTimer.Enabled  = true;
            PeriodicDiagnosticsTimer.Start();
            if (MainConsole.Instance != null)
            {
                MainConsole.Instance.Commands.AddCommand("show threads", "show threads", "List tracked threads",
                                                         HandleShowThreads);
                MainConsole.Instance.Commands.AddCommand("show uptime", "show uptime",
                                                         "Show server startup time and uptime", HandleShowUptime);
                MainConsole.Instance.Commands.AddCommand("show queues", "show queues [full]",
                                                         "Shows the queues for the given agent (if full is given as a parameter, child agents are displayed as well)",
                                                         HandleShowQueues);
                MainConsole.Instance.Commands.AddCommand("show stats", "show stats",
                                                         "Show statistical information for this server", HandleShowStats);

                MainConsole.Instance.Commands.AddCommand("stats report",
                                                         "stats report",
                                                         "Returns a variety of statistics about the current region and/or simulator",
                                                         DebugMonitors);
            }

            m_simulationBase.ApplicationRegistry.RegisterModuleInterface <IMonitorModule>(this);
            m_registry = new MonitorRegistry(this);
        }
        public void OnAddedScene(IScene scene)
        {
            //Register all the commands for this region
            MonitorRegistry reg = new MonitorRegistry(this);

            reg.AddScene(scene);
            lock (m_regionRegistry)
                m_regionRegistry[scene.RegionInfo.RegionID] = reg;
            scene.RegisterModuleInterface <IMonitorModule>(this);
        }
Example #3
0
        protected override void ProcessRecord()
        {
            string[] _DisplayNumbers = DisplayNumbers.Select(x => string.Format("{0:00}", x)).ToArray();

            MonitorRegistry mr = new MonitorRegistry();

            mr.CheckRegMonitor();
            mr.ChangeRegResolution(_DisplayNumbers, Width, Height);

            if (mr.IsChanged && Reload)
            {
                new ChangeStatePNPDevice("Display").Reload();
            }
        }
Example #4
0
        public void OnAddedScene(IScene scene)
        {
            if (m_registry.ContainsKey(scene.RegionInfo.RegionID.ToString()))
            {
                //Kill the old!
                m_registry[scene.RegionInfo.RegionID.ToString()].Close();
                m_registry.Remove(scene.RegionInfo.RegionID.ToString());
            }
            //Register all the commands for this region
            MonitorRegistry reg = new MonitorRegistry(this);

            reg.AddScene(scene);
            m_registry[scene.RegionInfo.RegionID.ToString()] = reg;
            scene.RegisterModuleInterface <IMonitorModule>(this);
        }
Example #5
0
 public void OnAddedScene(Scene scene)
 {
     if (m_registry.ContainsKey(scene.RegionInfo.RegionID.ToString()))
     {
         //Kill the old!
         m_registry[scene.RegionInfo.RegionID.ToString()].Close();
         m_registry.Remove(scene.RegionInfo.RegionID.ToString());
     }
     //Register all the commands for this region
     MonitorRegistry reg = new MonitorRegistry(this);
     reg.AddScene(scene);
     m_registry[scene.RegionInfo.RegionID.ToString()] = reg;
     scene.RegisterModuleInterface<IMonitorModule>(this);
 }
Example #6
0
        public void Initialize(ISimulationBase simulationBase)
        {
            m_simulationBase = simulationBase;

            Timer PeriodicDiagnosticsTimer = new Timer(60 * 60 * 1000); // One hour
            PeriodicDiagnosticsTimer.Elapsed += LogDiagnostics;
            PeriodicDiagnosticsTimer.Enabled = true;
            PeriodicDiagnosticsTimer.Start ();
            if (MainConsole.Instance != null)
            {
                MainConsole.Instance.Commands.AddCommand ("show threads", "show threads", "List tracked threads", HandleShowThreads);
                MainConsole.Instance.Commands.AddCommand ("show uptime", "show uptime", "Show server startup time and uptime", HandleShowUptime);
                MainConsole.Instance.Commands.AddCommand ("show queues", "show queues [full]", "Shows the queues for the given agent (if full is given as a parameter, child agents are displayed as well)", HandleShowQueues);
                MainConsole.Instance.Commands.AddCommand ("show stats", "show stats", "Show statistical information for this server", HandleShowStats);

                MainConsole.Instance.Commands.AddCommand ("stats report",
                                   "stats report",
                                   "Returns a variety of statistics about the current region and/or simulator",
                                   DebugMonitors);
            }

            MonitorRegistry reg = new MonitorRegistry(this);
            //This registers the default commands, but not region specific ones
            reg.AddScene(null);
            m_registry.Add("", reg);

            m_simulationBase.ApplicationRegistry.RegisterModuleInterface<IMonitorModule>(this);
        }
Example #7
0
 public void OnAddedScene(Scene scene)
 {
     //Register all the commands for this region
     MonitorRegistry reg = new MonitorRegistry(this);
     reg.AddScene(scene);
     m_registry.Add(scene.RegionInfo.RegionID.ToString(), reg);
     scene.RegisterModuleInterface<IMonitorModule>(this);
 }
Example #8
0
        public void Initialize(ISimulationBase simulationBase)
        {
            m_simulationBase = simulationBase;

            Timer PeriodicDiagnosticsTimer = new Timer(60 * 60 * 1000); // One hour
            PeriodicDiagnosticsTimer.Elapsed += LogDiagnostics;
            PeriodicDiagnosticsTimer.Enabled = true;
            PeriodicDiagnosticsTimer.Start();

            MainConsole.Instance.Commands.AddCommand("region", false, "show", "show",
                "Shows information about this simulator", HandleShow);

            MainConsole.Instance.Commands.AddCommand("Stats", false, "stats report",
                               "stats report",
                               "Returns a variety of statistics about the current region and/or simulator",
                               DebugMonitors);

            MonitorRegistry reg = new MonitorRegistry(this);
            //This registers the default commands, but not region specific ones
            reg.AddScene(null);
            m_registry.Add("", reg);

            m_simulationBase.ApplicationRegistry.RegisterModuleInterface<IMonitorModule>(this);
        }