diff options
author | UbitUmarov | 2012-03-09 03:00:31 +0000 |
---|---|---|
committer | UbitUmarov | 2012-03-09 03:00:31 +0000 |
commit | fc4dc7708dc07dc41791de64d7a6b2586d3170b5 (patch) | |
tree | 2b807fd97cdef06e671b52f3e735b849b05f9cfc /OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |
parent | more changes on undo/redo group scaling seems to work better (diff) | |
parent | Merge branch 'master' into careminster (diff) | |
download | opensim-SC-fc4dc7708dc07dc41791de64d7a6b2586d3170b5.zip opensim-SC-fc4dc7708dc07dc41791de64d7a6b2586d3170b5.tar.gz opensim-SC-fc4dc7708dc07dc41791de64d7a6b2586d3170b5.tar.bz2 opensim-SC-fc4dc7708dc07dc41791de64d7a6b2586d3170b5.tar.xz |
Merge branch 'master' of ssh://3dhosting.de/var/git/careminster into ubitwork
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/XEngine.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 02d47bd..db6a407 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -50,7 +50,10 @@ using OpenSim.Region.ScriptEngine.Shared; | |||
50 | using OpenSim.Region.ScriptEngine.Shared.ScriptBase; | 50 | using OpenSim.Region.ScriptEngine.Shared.ScriptBase; |
51 | using OpenSim.Region.ScriptEngine.Shared.CodeTools; | 51 | using OpenSim.Region.ScriptEngine.Shared.CodeTools; |
52 | using OpenSim.Region.ScriptEngine.Shared.Instance; | 52 | using OpenSim.Region.ScriptEngine.Shared.Instance; |
53 | using OpenSim.Region.ScriptEngine.Shared.Api; | ||
54 | using OpenSim.Region.ScriptEngine.Shared.Api.Plugins; | ||
53 | using OpenSim.Region.ScriptEngine.Interfaces; | 55 | using OpenSim.Region.ScriptEngine.Interfaces; |
56 | using Timer = OpenSim.Region.ScriptEngine.Shared.Api.Plugins.Timer; | ||
54 | 57 | ||
55 | using ScriptCompileQueue = OpenSim.Framework.LocklessQueue<object[]>; | 58 | using ScriptCompileQueue = OpenSim.Framework.LocklessQueue<object[]>; |
56 | 59 | ||
@@ -342,22 +345,22 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
342 | } | 345 | } |
343 | 346 | ||
344 | MainConsole.Instance.Commands.AddCommand( | 347 | MainConsole.Instance.Commands.AddCommand( |
345 | "scripts", false, "xengine status", "xengine status", "Show status information", | 348 | "Scripts", false, "xengine status", "xengine status", "Show status information", |
346 | "Show status information on the script engine.", | 349 | "Show status information on the script engine.", |
347 | HandleShowStatus); | 350 | HandleShowStatus); |
348 | 351 | ||
349 | MainConsole.Instance.Commands.AddCommand( | 352 | MainConsole.Instance.Commands.AddCommand( |
350 | "scripts", false, "scripts show", "scripts show [<script-item-uuid>]", "Show script information", | 353 | "Scripts", false, "scripts show", "scripts show [<script-item-uuid>]", "Show script information", |
351 | "Show information on all scripts known to the script engine." | 354 | "Show information on all scripts known to the script engine." |
352 | + "If a <script-item-uuid> is given then only information on that script will be shown.", | 355 | + "If a <script-item-uuid> is given then only information on that script will be shown.", |
353 | HandleShowScripts); | 356 | HandleShowScripts); |
354 | 357 | ||
355 | MainConsole.Instance.Commands.AddCommand( | 358 | MainConsole.Instance.Commands.AddCommand( |
356 | "scripts", false, "show scripts", "show scripts [<script-item-uuid>]", "Show script information", | 359 | "Scripts", false, "show scripts", "show scripts [<script-item-uuid>]", "Show script information", |
357 | "Synonym for scripts show command", HandleShowScripts); | 360 | "Synonym for scripts show command", HandleShowScripts); |
358 | 361 | ||
359 | MainConsole.Instance.Commands.AddCommand( | 362 | MainConsole.Instance.Commands.AddCommand( |
360 | "scripts", false, "scripts suspend", "scripts suspend [<script-item-uuid>]", "Suspends all running scripts", | 363 | "Scripts", false, "scripts suspend", "scripts suspend [<script-item-uuid>]", "Suspends all running scripts", |
361 | "Suspends all currently running scripts. This only suspends event delivery, it will not suspend a" | 364 | "Suspends all currently running scripts. This only suspends event delivery, it will not suspend a" |
362 | + " script that is currently processing an event.\n" | 365 | + " script that is currently processing an event.\n" |
363 | + "Suspended scripts will continue to accumulate events but won't process them.\n" | 366 | + "Suspended scripts will continue to accumulate events but won't process them.\n" |
@@ -365,20 +368,20 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
365 | (module, cmdparams) => HandleScriptsAction(cmdparams, HandleSuspendScript)); | 368 | (module, cmdparams) => HandleScriptsAction(cmdparams, HandleSuspendScript)); |
366 | 369 | ||
367 | MainConsole.Instance.Commands.AddCommand( | 370 | MainConsole.Instance.Commands.AddCommand( |
368 | "scripts", false, "scripts resume", "scripts resume [<script-item-uuid>]", "Resumes all suspended scripts", | 371 | "Scripts", false, "scripts resume", "scripts resume [<script-item-uuid>]", "Resumes all suspended scripts", |
369 | "Resumes all currently suspended scripts.\n" | 372 | "Resumes all currently suspended scripts.\n" |
370 | + "Resumed scripts will process all events accumulated whilst suspended." | 373 | + "Resumed scripts will process all events accumulated whilst suspended." |
371 | + "If a <script-item-uuid> is given then only that script will be resumed. Otherwise, all suitable scripts are resumed.", | 374 | + "If a <script-item-uuid> is given then only that script will be resumed. Otherwise, all suitable scripts are resumed.", |
372 | (module, cmdparams) => HandleScriptsAction(cmdparams, HandleResumeScript)); | 375 | (module, cmdparams) => HandleScriptsAction(cmdparams, HandleResumeScript)); |
373 | 376 | ||
374 | MainConsole.Instance.Commands.AddCommand( | 377 | MainConsole.Instance.Commands.AddCommand( |
375 | "scripts", false, "scripts stop", "scripts stop [<script-item-uuid>]", "Stops all running scripts", | 378 | "Scripts", false, "scripts stop", "scripts stop [<script-item-uuid>]", "Stops all running scripts", |
376 | "Stops all running scripts." | 379 | "Stops all running scripts." |
377 | + "If a <script-item-uuid> is given then only that script will be stopped. Otherwise, all suitable scripts are stopped.", | 380 | + "If a <script-item-uuid> is given then only that script will be stopped. Otherwise, all suitable scripts are stopped.", |
378 | (module, cmdparams) => HandleScriptsAction(cmdparams, HandleStopScript)); | 381 | (module, cmdparams) => HandleScriptsAction(cmdparams, HandleStopScript)); |
379 | 382 | ||
380 | MainConsole.Instance.Commands.AddCommand( | 383 | MainConsole.Instance.Commands.AddCommand( |
381 | "scripts", false, "scripts start", "scripts start [<script-item-uuid>]", "Starts all stopped scripts", | 384 | "Scripts", false, "scripts start", "scripts start [<script-item-uuid>]", "Starts all stopped scripts", |
382 | "Starts all stopped scripts." | 385 | "Starts all stopped scripts." |
383 | + "If a <script-item-uuid> is given then only that script will be started. Otherwise, all suitable scripts are started.", | 386 | + "If a <script-item-uuid> is given then only that script will be started. Otherwise, all suitable scripts are started.", |
384 | (module, cmdparams) => HandleScriptsAction(cmdparams, HandleStartScript)); | 387 | (module, cmdparams) => HandleScriptsAction(cmdparams, HandleStartScript)); |
@@ -454,6 +457,18 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
454 | sb.AppendFormat("Work items waiting : {0}\n", m_ThreadPool.WaitingCallbacks); | 457 | sb.AppendFormat("Work items waiting : {0}\n", m_ThreadPool.WaitingCallbacks); |
455 | // sb.AppendFormat("Assemblies loaded : {0}\n", m_Assemblies.Count); | 458 | // sb.AppendFormat("Assemblies loaded : {0}\n", m_Assemblies.Count); |
456 | 459 | ||
460 | SensorRepeat sr = AsyncCommandManager.GetSensorRepeatPlugin(this); | ||
461 | sb.AppendFormat("Sensors : {0}\n", sr.SensorsCount); | ||
462 | |||
463 | Dataserver ds = AsyncCommandManager.GetDataserverPlugin(this); | ||
464 | sb.AppendFormat("Dataserver requests : {0}\n", ds.DataserverRequestsCount); | ||
465 | |||
466 | Timer t = AsyncCommandManager.GetTimerPlugin(this); | ||
467 | sb.AppendFormat("Timers : {0}\n", t.TimersCount); | ||
468 | |||
469 | Listener l = AsyncCommandManager.GetListenerPlugin(this); | ||
470 | sb.AppendFormat("Listeners : {0}\n", l.ListenerCount); | ||
471 | |||
457 | MainConsole.Instance.OutputFormat(sb.ToString()); | 472 | MainConsole.Instance.OutputFormat(sb.ToString()); |
458 | } | 473 | } |
459 | 474 | ||