aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/XEngine.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/XEngine.cs29
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;
50using OpenSim.Region.ScriptEngine.Shared.ScriptBase; 50using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
51using OpenSim.Region.ScriptEngine.Shared.CodeTools; 51using OpenSim.Region.ScriptEngine.Shared.CodeTools;
52using OpenSim.Region.ScriptEngine.Shared.Instance; 52using OpenSim.Region.ScriptEngine.Shared.Instance;
53using OpenSim.Region.ScriptEngine.Shared.Api;
54using OpenSim.Region.ScriptEngine.Shared.Api.Plugins;
53using OpenSim.Region.ScriptEngine.Interfaces; 55using OpenSim.Region.ScriptEngine.Interfaces;
56using Timer = OpenSim.Region.ScriptEngine.Shared.Api.Plugins.Timer;
54 57
55using ScriptCompileQueue = OpenSim.Framework.LocklessQueue<object[]>; 58using 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