* renamed IRegionProfileService to IRegionProfileRouter to better reflect use (naming is a work in progress...)

* introduced new IRegionProfileService that is going to be _one_ profileService
* Had GridDBService inherit the IRegionProfileService

(preparing for re-wiring things and de-duplicating eventually)
GenericGridServerConcept
lbsa71 2009-02-26 11:44:16 +00:00
parent 07ee252cf3
commit 82efceb494
4 changed files with 28 additions and 4 deletions

View File

@ -33,6 +33,30 @@ using OpenMetaverse;
namespace OpenSim.Data namespace OpenSim.Data
{ {
public interface IRegionProfileService public interface IRegionProfileService
{
/// <summary>
/// Returns a region by argument
/// </summary>
/// <param name="uuid">A UUID key of the region to return</param>
/// <returns>A SimProfileData for the region</returns>
RegionProfileData GetRegion(UUID uuid);
/// <summary>
/// Returns a region by argument
/// </summary>
/// <param name="uuid">A regionHandle of the region to return</param>
/// <returns>A SimProfileData for the region</returns>
RegionProfileData GetRegion(ulong handle);
/// <summary>
/// Returns a region by argument
/// </summary>
/// <param name="regionName">A partial regionName of the region to return</param>
/// <returns>A SimProfileData for the region</returns>
RegionProfileData GetRegion(string regionName);
}
public interface IRegionProfileRouter
{ {
/// <summary> /// <summary>
/// Request sim profile information from a grid server, by Region UUID /// Request sim profile information from a grid server, by Region UUID

View File

@ -35,7 +35,7 @@ using OpenSim.Framework;
namespace OpenSim.Data namespace OpenSim.Data
{ {
public class RegionProfileServiceProxy : IRegionProfileService public class RegionProfileServiceProxy : IRegionProfileRouter
{ {
/// <summary> /// <summary>
/// Request sim data based on arbitrary key/value /// Request sim data based on arbitrary key/value

View File

@ -42,7 +42,7 @@ using OpenSim.Framework.Servers;
namespace OpenSim.Grid.GridServer.Modules namespace OpenSim.Grid.GridServer.Modules
{ {
public class GridDBService public class GridDBService : IRegionProfileService
{ {
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

View File

@ -60,14 +60,14 @@ namespace OpenSim.Grid.UserServer.Modules
private UserLoggedInAtLocation handlerUserLoggedInAtLocation; private UserLoggedInAtLocation handlerUserLoggedInAtLocation;
public UserConfig m_config; public UserConfig m_config;
private readonly IRegionProfileService m_regionProfileService; private readonly IRegionProfileRouter m_regionProfileService;
protected BaseHttpServer m_httpServer; protected BaseHttpServer m_httpServer;
public UserLoginService( public UserLoginService(
UserManagerBase userManager, IInterServiceInventoryServices inventoryService, UserManagerBase userManager, IInterServiceInventoryServices inventoryService,
LibraryRootFolder libraryRootFolder, LibraryRootFolder libraryRootFolder,
UserConfig config, string welcomeMess, IRegionProfileService regionProfileService) UserConfig config, string welcomeMess, IRegionProfileRouter regionProfileService)
: base(userManager, libraryRootFolder, welcomeMess) : base(userManager, libraryRootFolder, welcomeMess)
{ {
m_config = config; m_config = config;