29 using System.Collections.Generic;
30 using System.Reflection;
35 using OpenSim.Region.Framework.Interfaces;
36 using OpenSim.Region.Framework.Scenes;
37 using OpenSim.Server.Base;
38 using OpenSim.Services.Interfaces;
41 namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Presence
45 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
56 public Type ReplaceableInterface
70 m_PresenceDetector.AddRegion(scene);
72 m_log.InfoFormat(
"[BASE PRESENCE SERVICE CONNECTOR]: Enabled for region {0}", scene.Name);
80 m_PresenceDetector.RemoveRegion(scene);
98 #region IPresenceService
100 public bool LoginAgent(
string userID, UUID sessionID, UUID secureSessionID)
102 m_log.Warn(
"[BASE PRESENCE SERVICE CONNECTOR]: LoginAgent connector not implemented at the simulators");
108 return m_PresenceService.LogoutAgent(sessionID);
113 return m_PresenceService.LogoutRegionAgents(regionID);
118 return m_PresenceService.ReportAgent(sessionID, regionID);
123 return m_PresenceService.GetAgent(sessionID);
129 if (userIDs.Length == 0)
132 return m_PresenceService.GetAgents(userIDs);
OpenSim.Services.Interfaces.PresenceInfo PresenceInfo
bool LoginAgent(string userID, UUID sessionID, UUID secureSessionID)
Store session information.
PresenceInfo[] GetAgents(string[] userIDs)
Get session information for a collection of users.
PresenceInfo GetAgent(UUID sessionID)
Get session information for a given session ID.
void RemoveRegion(Scene scene)
void RegionLoaded(Scene scene)
bool ReportAgent(UUID sessionID, UUID regionID)
Update data for an existing session.
bool LogoutAgent(UUID sessionID)
Remove session information.
Interactive OpenSim region server
IPresenceService m_PresenceService
Underlying presence service. Do not use directly.
PresenceDetector m_PresenceDetector
bool LogoutRegionAgents(UUID regionID)
Remove session information for all agents in the given region.
void AddRegion(Scene scene)