diff options
author | Diva Canto | 2010-05-20 15:14:14 -0700 |
---|---|---|
committer | Diva Canto | 2010-05-20 15:14:14 -0700 |
commit | 13c22015e588284df1b74b7f5edad0df97ca3d3c (patch) | |
tree | a9932ddb546f314c5835e14f8619e5a20b9e4388 /OpenSim | |
parent | Merging slimupdates2 (diff) | |
download | opensim-SC_OLD-13c22015e588284df1b74b7f5edad0df97ca3d3c.zip opensim-SC_OLD-13c22015e588284df1b74b7f5edad0df97ca3d3c.tar.gz opensim-SC_OLD-13c22015e588284df1b74b7f5edad0df97ca3d3c.tar.bz2 opensim-SC_OLD-13c22015e588284df1b74b7f5edad0df97ca3d3c.tar.xz |
Removed sessionID from GridUserservice again. Removed parcel crossing detection from Robust connector. Fixed Simian to continue to send those location updates upon parcel crossing, without changing the interface.
Diffstat (limited to 'OpenSim')
9 files changed, 18 insertions, 21 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/GridUser/ActivityDetector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/GridUser/ActivityDetector.cs index 7d2dc5a..83c8eac 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/GridUser/ActivityDetector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/GridUser/ActivityDetector.cs | |||
@@ -56,7 +56,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.GridUser | |||
56 | // But we could trigger the position update more often | 56 | // But we could trigger the position update more often |
57 | scene.EventManager.OnMakeRootAgent += OnMakeRootAgent; | 57 | scene.EventManager.OnMakeRootAgent += OnMakeRootAgent; |
58 | scene.EventManager.OnNewClient += OnNewClient; | 58 | scene.EventManager.OnNewClient += OnNewClient; |
59 | scene.EventManager.OnAvatarEnteringNewParcel += OnEnteringNewParcel; | ||
60 | 59 | ||
61 | if (m_aScene == null) | 60 | if (m_aScene == null) |
62 | m_aScene = scene; | 61 | m_aScene = scene; |
@@ -72,7 +71,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.GridUser | |||
72 | { | 71 | { |
73 | m_log.DebugFormat("[ACTIVITY DETECTOR]: Detected root presence {0} in {1}", sp.UUID, sp.Scene.RegionInfo.RegionName); | 72 | m_log.DebugFormat("[ACTIVITY DETECTOR]: Detected root presence {0} in {1}", sp.UUID, sp.Scene.RegionInfo.RegionName); |
74 | 73 | ||
75 | m_GridUserService.SetLastPosition(sp.UUID.ToString(), sp.ControllingClient.SessionId, sp.Scene.RegionInfo.RegionID, sp.AbsolutePosition, sp.Lookat); | 74 | m_GridUserService.SetLastPosition(sp.UUID.ToString(), sp.Scene.RegionInfo.RegionID, sp.AbsolutePosition, sp.Lookat); |
76 | } | 75 | } |
77 | 76 | ||
78 | public void OnNewClient(IClientAPI client) | 77 | public void OnNewClient(IClientAPI client) |
@@ -105,12 +104,5 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.GridUser | |||
105 | 104 | ||
106 | } | 105 | } |
107 | 106 | ||
108 | void OnEnteringNewParcel(ScenePresence sp, int localLandID, UUID regionID) | ||
109 | { | ||
110 | // TODO: grab the parcel ID from ILandModule | ||
111 | // and send that along | ||
112 | m_GridUserService.SetLastPosition(sp.UUID.ToString(), sp.ControllingClient.SessionId, sp.Scene.RegionInfo.RegionID, sp.AbsolutePosition, sp.Lookat); | ||
113 | } | ||
114 | |||
115 | } | 107 | } |
116 | } | 108 | } |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/GridUser/LocalGridUserServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/GridUser/LocalGridUserServiceConnector.cs index 76e030f..d914a57 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/GridUser/LocalGridUserServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/GridUser/LocalGridUserServiceConnector.cs | |||
@@ -162,9 +162,9 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.GridUser | |||
162 | return m_GridUserService.SetHome(userID, homeID, homePosition, homeLookAt); | 162 | return m_GridUserService.SetHome(userID, homeID, homePosition, homeLookAt); |
163 | } | 163 | } |
164 | 164 | ||
165 | public bool SetLastPosition(string userID, UUID sessionID, UUID regionID, Vector3 lastPosition, Vector3 lastLookAt) | 165 | public bool SetLastPosition(string userID, UUID regionID, Vector3 lastPosition, Vector3 lastLookAt) |
166 | { | 166 | { |
167 | return m_GridUserService.SetLastPosition(userID, sessionID, regionID, lastPosition, lastLookAt); | 167 | return m_GridUserService.SetLastPosition(userID, regionID, lastPosition, lastLookAt); |
168 | } | 168 | } |
169 | 169 | ||
170 | public GridUserInfo GetGridUserInfo(string userID) | 170 | public GridUserInfo GetGridUserInfo(string userID) |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/GridUser/RemoteGridUserServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/GridUser/RemoteGridUserServiceConnector.cs index fb11e9a..e3e2e61 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/GridUser/RemoteGridUserServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/GridUser/RemoteGridUserServiceConnector.cs | |||
@@ -137,9 +137,9 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.GridUser | |||
137 | return m_RemoteConnector.SetHome(userID, regionID, position, lookAt); | 137 | return m_RemoteConnector.SetHome(userID, regionID, position, lookAt); |
138 | } | 138 | } |
139 | 139 | ||
140 | public bool SetLastPosition(string userID, UUID sessionID, UUID regionID, Vector3 position, Vector3 lookAt) | 140 | public bool SetLastPosition(string userID, UUID regionID, Vector3 position, Vector3 lookAt) |
141 | { | 141 | { |
142 | return m_RemoteConnector.SetLastPosition(userID, sessionID, regionID, position, lookAt); | 142 | return m_RemoteConnector.SetLastPosition(userID, regionID, position, lookAt); |
143 | } | 143 | } |
144 | 144 | ||
145 | public GridUserInfo GetGridUserInfo(string userID) | 145 | public GridUserInfo GetGridUserInfo(string userID) |
diff --git a/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs b/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs index b1e7eac..f8fa429 100644 --- a/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs +++ b/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs | |||
@@ -156,7 +156,6 @@ namespace OpenSim.Server.Handlers.GridUser | |||
156 | byte[] SetPosition(Dictionary<string, object> request) | 156 | byte[] SetPosition(Dictionary<string, object> request) |
157 | { | 157 | { |
158 | string user = string.Empty; | 158 | string user = string.Empty; |
159 | UUID sessionID = UUID.Zero; | ||
160 | UUID region = UUID.Zero; | 159 | UUID region = UUID.Zero; |
161 | Vector3 position = new Vector3(128, 128, 70); | 160 | Vector3 position = new Vector3(128, 128, 70); |
162 | Vector3 look = Vector3.Zero; | 161 | Vector3 look = Vector3.Zero; |
@@ -167,7 +166,7 @@ namespace OpenSim.Server.Handlers.GridUser | |||
167 | if (!UnpackArgs(request, out user, out region, out position, out look)) | 166 | if (!UnpackArgs(request, out user, out region, out position, out look)) |
168 | return FailureResult(); | 167 | return FailureResult(); |
169 | 168 | ||
170 | if (m_GridUserService.SetLastPosition(user, sessionID, region, position, look)) | 169 | if (m_GridUserService.SetLastPosition(user, region, position, look)) |
171 | return SuccessResult(); | 170 | return SuccessResult(); |
172 | 171 | ||
173 | return FailureResult(); | 172 | return FailureResult(); |
diff --git a/OpenSim/Services/Connectors/GridUser/GridUserServiceConnector.cs b/OpenSim/Services/Connectors/GridUser/GridUserServiceConnector.cs index f222e31..600ddfd 100644 --- a/OpenSim/Services/Connectors/GridUser/GridUserServiceConnector.cs +++ b/OpenSim/Services/Connectors/GridUser/GridUserServiceConnector.cs | |||
@@ -84,7 +84,7 @@ namespace OpenSim.Services.Connectors | |||
84 | } | 84 | } |
85 | 85 | ||
86 | 86 | ||
87 | #region IPresenceService | 87 | #region IGridUserService |
88 | 88 | ||
89 | 89 | ||
90 | public GridUserInfo LoggedIn(string userID) | 90 | public GridUserInfo LoggedIn(string userID) |
@@ -123,7 +123,7 @@ namespace OpenSim.Services.Connectors | |||
123 | return Set(sendData, userID, regionID, position, lookAt); | 123 | return Set(sendData, userID, regionID, position, lookAt); |
124 | } | 124 | } |
125 | 125 | ||
126 | public bool SetLastPosition(string userID, UUID sessionID, UUID regionID, Vector3 position, Vector3 lookAt) | 126 | public bool SetLastPosition(string userID, UUID regionID, Vector3 position, Vector3 lookAt) |
127 | { | 127 | { |
128 | Dictionary<string, object> sendData = new Dictionary<string, object>(); | 128 | Dictionary<string, object> sendData = new Dictionary<string, object>(); |
129 | //sendData["SCOPEID"] = scopeID.ToString(); | 129 | //sendData["SCOPEID"] = scopeID.ToString(); |
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianActivityDetector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianActivityDetector.cs index 8cc5671..a871d07 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianActivityDetector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianActivityDetector.cs | |||
@@ -40,10 +40,10 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
40 | { | 40 | { |
41 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 41 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
42 | 42 | ||
43 | private IGridUserService m_GridUserService; | 43 | private SimianPresenceServiceConnector m_GridUserService; |
44 | private Scene m_aScene; | 44 | private Scene m_aScene; |
45 | 45 | ||
46 | public SimianActivityDetector(IGridUserService guservice) | 46 | public SimianActivityDetector(SimianPresenceServiceConnector guservice) |
47 | { | 47 | { |
48 | m_GridUserService = guservice; | 48 | m_GridUserService = guservice; |
49 | m_log.DebugFormat("[SIMIAN ACTIVITY DETECTOR]: Started"); | 49 | m_log.DebugFormat("[SIMIAN ACTIVITY DETECTOR]: Started"); |
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs index ec9cf67..6f17931 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs | |||
@@ -298,6 +298,12 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
298 | return UpdateSession(sessionID, regionID, lastPosition, lastLookAt); | 298 | return UpdateSession(sessionID, regionID, lastPosition, lastLookAt); |
299 | } | 299 | } |
300 | 300 | ||
301 | public bool SetLastPosition(string userID, UUID regionID, Vector3 lastPosition, Vector3 lastLookAt) | ||
302 | { | ||
303 | // Never called | ||
304 | return false; | ||
305 | } | ||
306 | |||
301 | public GridUserInfo GetGridUserInfo(string user) | 307 | public GridUserInfo GetGridUserInfo(string user) |
302 | { | 308 | { |
303 | m_log.DebugFormat("[SIMIAN PRESENCE CONNECTOR]: Requesting session data for agent " + user); | 309 | m_log.DebugFormat("[SIMIAN PRESENCE CONNECTOR]: Requesting session data for agent " + user); |
diff --git a/OpenSim/Services/Interfaces/IGridUserService.cs b/OpenSim/Services/Interfaces/IGridUserService.cs index 3d11b3e..e629dff 100644 --- a/OpenSim/Services/Interfaces/IGridUserService.cs +++ b/OpenSim/Services/Interfaces/IGridUserService.cs | |||
@@ -108,7 +108,7 @@ namespace OpenSim.Services.Interfaces | |||
108 | bool LoggedOut(string userID, UUID regionID, Vector3 lastPosition, Vector3 lastLookAt); | 108 | bool LoggedOut(string userID, UUID regionID, Vector3 lastPosition, Vector3 lastLookAt); |
109 | 109 | ||
110 | bool SetHome(string userID, UUID homeID, Vector3 homePosition, Vector3 homeLookAt); | 110 | bool SetHome(string userID, UUID homeID, Vector3 homePosition, Vector3 homeLookAt); |
111 | bool SetLastPosition(string userID, UUID sessionID, UUID regionID, Vector3 lastPosition, Vector3 lastLookAt); | 111 | bool SetLastPosition(string userID, UUID regionID, Vector3 lastPosition, Vector3 lastLookAt); |
112 | 112 | ||
113 | GridUserInfo GetGridUserInfo(string userID); | 113 | GridUserInfo GetGridUserInfo(string userID); |
114 | } | 114 | } |
diff --git a/OpenSim/Services/UserAccountService/GridUserService.cs b/OpenSim/Services/UserAccountService/GridUserService.cs index 00a1ae2..697ba63 100644 --- a/OpenSim/Services/UserAccountService/GridUserService.cs +++ b/OpenSim/Services/UserAccountService/GridUserService.cs | |||
@@ -139,7 +139,7 @@ namespace OpenSim.Services.UserAccountService | |||
139 | return m_Database.Store(d); | 139 | return m_Database.Store(d); |
140 | } | 140 | } |
141 | 141 | ||
142 | public bool SetLastPosition(string userID, UUID sessionID, UUID regionID, Vector3 lastPosition, Vector3 lastLookAt) | 142 | public bool SetLastPosition(string userID, UUID regionID, Vector3 lastPosition, Vector3 lastLookAt) |
143 | { | 143 | { |
144 | //m_log.DebugFormat("[Grid User Service]: SetLastPosition for {0}", userID); | 144 | //m_log.DebugFormat("[Grid User Service]: SetLastPosition for {0}", userID); |
145 | GridUserData d = m_Database.Get(userID); | 145 | GridUserData d = m_Database.Get(userID); |