diff options
author | Justin Clark-Casey (justincc) | 2013-06-17 22:39:00 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-06-17 22:39:00 +0100 |
commit | 0d2fd0d914581f755661455b8db2b9e399154632 (patch) | |
tree | b3c8f5634d946d8e623f761eb7001f254d2af9be /OpenSim/Framework/Servers/BaseOpenSimServer.cs | |
parent | correct method doc for llRot2Axis() (diff) | |
download | opensim-SC-0d2fd0d914581f755661455b8db2b9e399154632.zip opensim-SC-0d2fd0d914581f755661455b8db2b9e399154632.tar.gz opensim-SC-0d2fd0d914581f755661455b8db2b9e399154632.tar.bz2 opensim-SC-0d2fd0d914581f755661455b8db2b9e399154632.tar.xz |
Make general server stats available on the robust console as well as the simulator console
This means the "show stats" command is now active on the robust console.
Diffstat (limited to 'OpenSim/Framework/Servers/BaseOpenSimServer.cs')
-rw-r--r-- | OpenSim/Framework/Servers/BaseOpenSimServer.cs | 46 |
1 files changed, 13 insertions, 33 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs index 035b3ad..4ab6908 100644 --- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs +++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs | |||
@@ -86,26 +86,23 @@ namespace OpenSim.Framework.Servers | |||
86 | /// </summary> | 86 | /// </summary> |
87 | protected virtual void StartupSpecific() | 87 | protected virtual void StartupSpecific() |
88 | { | 88 | { |
89 | if (m_console == null) | 89 | StatsManager.SimExtraStats = new SimExtraStatsCollector(); |
90 | return; | ||
91 | |||
92 | RegisterCommonCommands(); | 90 | RegisterCommonCommands(); |
93 | 91 | RegisterCommonComponents(Config); | |
94 | m_console.Commands.AddCommand("General", false, "quit", | 92 | } |
95 | "quit", | 93 | |
96 | "Quit the application", HandleQuit); | 94 | protected override void ShutdownSpecific() |
95 | { | ||
96 | m_log.Info("[SHUTDOWN]: Shutdown processing on main thread complete. Exiting..."); | ||
97 | |||
98 | RemovePIDFile(); | ||
99 | |||
100 | base.ShutdownSpecific(); | ||
97 | 101 | ||
98 | m_console.Commands.AddCommand("General", false, "shutdown", | 102 | Environment.Exit(0); |
99 | "shutdown", | ||
100 | "Quit the application", HandleQuit); | ||
101 | } | 103 | } |
102 | 104 | ||
103 | /// <summary> | 105 | /// <summary> |
104 | /// Should be overriden and referenced by descendents if they need to perform extra shutdown processing | ||
105 | /// </summary> | ||
106 | public virtual void ShutdownSpecific() {} | ||
107 | |||
108 | /// <summary> | ||
109 | /// Provides a list of help topics that are available. Overriding classes should append their topics to the | 106 | /// Provides a list of help topics that are available. Overriding classes should append their topics to the |
110 | /// information returned when the base method is called. | 107 | /// information returned when the base method is called. |
111 | /// </summary> | 108 | /// </summary> |
@@ -143,25 +140,8 @@ namespace OpenSim.Framework.Servers | |||
143 | timeTaken.Minutes, timeTaken.Seconds); | 140 | timeTaken.Minutes, timeTaken.Seconds); |
144 | } | 141 | } |
145 | 142 | ||
146 | /// <summary> | 143 | public string osSecret |
147 | /// Should be overriden and referenced by descendents if they need to perform extra shutdown processing | ||
148 | /// </summary> | ||
149 | public virtual void Shutdown() | ||
150 | { | 144 | { |
151 | ShutdownSpecific(); | ||
152 | |||
153 | m_log.Info("[SHUTDOWN]: Shutdown processing on main thread complete. Exiting..."); | ||
154 | RemovePIDFile(); | ||
155 | |||
156 | Environment.Exit(0); | ||
157 | } | ||
158 | |||
159 | private void HandleQuit(string module, string[] args) | ||
160 | { | ||
161 | Shutdown(); | ||
162 | } | ||
163 | |||
164 | public string osSecret { | ||
165 | // Secret uuid for the simulator | 145 | // Secret uuid for the simulator |
166 | get { return m_osSecret; } | 146 | get { return m_osSecret; } |
167 | } | 147 | } |