From e9602656f8deda12dd343ba77d9ef5f58a239129 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Tue, 6 Mar 2012 23:21:17 +0000
Subject: Add sensor, dataserver requests, timer and listener counts to
"xengine status" command.
This is for diagnostic purposes.
---
.../Api/Implementation/AsyncCommandManager.cs | 53 +++++++++++++++++++++-
1 file changed, 52 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs')
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
index 14edde4..993d10f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
@@ -247,7 +247,58 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// Remove Sensors
m_SensorRepeat[engine].UnSetSenseRepeaterEvents(localID, itemID);
+ }
+
+ ///
+ /// Get the sensor repeat plugin for this script engine.
+ ///
+ ///
+ ///
+ public static SensorRepeat GetSensorRepeatPlugin(IScriptEngine engine)
+ {
+ if (m_SensorRepeat.ContainsKey(engine))
+ return m_SensorRepeat[engine];
+ else
+ return null;
+ }
+ ///
+ /// Get the dataserver plugin for this script engine.
+ ///
+ ///
+ ///
+ public static Dataserver GetDataserverPlugin(IScriptEngine engine)
+ {
+ if (m_Dataserver.ContainsKey(engine))
+ return m_Dataserver[engine];
+ else
+ return null;
+ }
+
+ ///
+ /// Get the timer plugin for this script engine.
+ ///
+ ///
+ ///
+ public static Timer GetTimerPlugin(IScriptEngine engine)
+ {
+ if (m_Timer.ContainsKey(engine))
+ return m_Timer[engine];
+ else
+ return null;
+ }
+
+ ///
+ /// Get the listener plugin for this script engine.
+ ///
+ ///
+ ///
+ public static Listener GetListenerPlugin(IScriptEngine engine)
+ {
+ if (m_Listener.ContainsKey(engine))
+ return m_Listener[engine];
+ else
+ return null;
}
public static Object[] GetSerializationData(IScriptEngine engine, UUID itemID)
@@ -270,7 +321,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
data.AddRange(timers);
}
- Object[] sensors=m_SensorRepeat[engine].GetSerializationData(itemID);
+ Object[] sensors = m_SensorRepeat[engine].GetSerializationData(itemID);
if (sensors.Length > 0)
{
data.Add("sensor");
--
cgit v1.1