diff options
Diffstat (limited to 'OpenSim/Framework/Servers/BaseOpenSimServer.cs')
-rw-r--r-- | OpenSim/Framework/Servers/BaseOpenSimServer.cs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs index 811a0db..fcbc5a1 100644 --- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs +++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs | |||
@@ -44,16 +44,16 @@ namespace OpenSim.Framework.Servers | |||
44 | { | 44 | { |
45 | get { return m_httpServer; } | 45 | get { return m_httpServer; } |
46 | } | 46 | } |
47 | 47 | ||
48 | /// <summary> | 48 | /// <summary> |
49 | /// Holds the non-viewer statistics collection object for this service/server | 49 | /// Holds the non-viewer statistics collection object for this service/server |
50 | /// </summary> | 50 | /// </summary> |
51 | protected IStatsCollector m_stats; | 51 | protected IStatsCollector m_stats; |
52 | 52 | ||
53 | public BaseOpenSimServer() | 53 | public BaseOpenSimServer() |
54 | { | 54 | { |
55 | m_startuptime = DateTime.Now; | 55 | m_startuptime = DateTime.Now; |
56 | } | 56 | } |
57 | 57 | ||
58 | /// <summary> | 58 | /// <summary> |
59 | /// Should be overriden by descendents if they need to perform extra shutdown processing | 59 | /// Should be overriden by descendents if they need to perform extra shutdown processing |
@@ -66,7 +66,7 @@ namespace OpenSim.Framework.Servers | |||
66 | } | 66 | } |
67 | Environment.Exit(0); | 67 | Environment.Exit(0); |
68 | } | 68 | } |
69 | 69 | ||
70 | /// <summary> | 70 | /// <summary> |
71 | /// Runs commands issued by the server console from the operator | 71 | /// Runs commands issued by the server console from the operator |
72 | /// </summary> | 72 | /// </summary> |
@@ -75,17 +75,17 @@ namespace OpenSim.Framework.Servers | |||
75 | public virtual void RunCmd(string command, string[] cmdparams) | 75 | public virtual void RunCmd(string command, string[] cmdparams) |
76 | { | 76 | { |
77 | switch (command) | 77 | switch (command) |
78 | { | 78 | { |
79 | case "help": | 79 | case "help": |
80 | Notice("quit - equivalent to shutdown."); | 80 | Notice("quit - equivalent to shutdown."); |
81 | 81 | ||
82 | if (m_stats != null) | 82 | if (m_stats != null) |
83 | Notice("show stats - statistical information for this server"); | 83 | Notice("show stats - statistical information for this server"); |
84 | 84 | ||
85 | Notice("show uptime - show server startup and uptime."); | 85 | Notice("show uptime - show server startup and uptime."); |
86 | Notice("shutdown - shutdown the server.\n"); | 86 | Notice("shutdown - shutdown the server.\n"); |
87 | break; | 87 | break; |
88 | 88 | ||
89 | case "show": | 89 | case "show": |
90 | if (cmdparams.Length > 0) | 90 | if (cmdparams.Length > 0) |
91 | { | 91 | { |
@@ -96,10 +96,10 @@ namespace OpenSim.Framework.Servers | |||
96 | case "quit": | 96 | case "quit": |
97 | case "shutdown": | 97 | case "shutdown": |
98 | Shutdown(); | 98 | Shutdown(); |
99 | break; | 99 | break; |
100 | } | 100 | } |
101 | } | 101 | } |
102 | 102 | ||
103 | /// <summary> | 103 | /// <summary> |
104 | /// Outputs to the console information about the region | 104 | /// Outputs to the console information about the region |
105 | /// </summary> | 105 | /// </summary> |
@@ -107,18 +107,18 @@ namespace OpenSim.Framework.Servers | |||
107 | public virtual void Show(string ShowWhat) | 107 | public virtual void Show(string ShowWhat) |
108 | { | 108 | { |
109 | switch (ShowWhat) | 109 | switch (ShowWhat) |
110 | { | 110 | { |
111 | case "stats": | 111 | case "stats": |
112 | if (m_stats != null) | 112 | if (m_stats != null) |
113 | { | 113 | { |
114 | Notice(m_stats.Report()); | 114 | Notice(m_stats.Report()); |
115 | } | 115 | } |
116 | break; | 116 | break; |
117 | 117 | ||
118 | case "uptime": | 118 | case "uptime": |
119 | Notice("Server has been running since " + m_startuptime.DayOfWeek + ", " + m_startuptime.ToString()); | 119 | Notice("Server has been running since " + m_startuptime.DayOfWeek + ", " + m_startuptime.ToString()); |
120 | Notice("That is an elapsed time of " + (DateTime.Now - m_startuptime).ToString()); | 120 | Notice("That is an elapsed time of " + (DateTime.Now - m_startuptime).ToString()); |
121 | break; | 121 | break; |
122 | } | 122 | } |
123 | } | 123 | } |
124 | 124 | ||