WARNING: simulator config var change! This affects only system-facing configs. Nothing to do if you follow the rules of not messing with Grid.ini and GridHypergrid.ini.
Change the remote Grid region module so that it takes the network connector as a config variable. This allows the region plugin to be reused for both Robust and Simian network connectors.viewer-2-initial-appearance
parent
b16173e3e8
commit
f801d50a8a
|
@ -36,6 +36,7 @@ using OpenSim.Framework;
|
|||
using OpenSim.Services.Connectors;
|
||||
using OpenSim.Region.Framework.Interfaces;
|
||||
using OpenSim.Region.Framework.Scenes;
|
||||
using OpenSim.Server.Base;
|
||||
using OpenSim.Services.Interfaces;
|
||||
using GridRegion = OpenSim.Services.Interfaces.GridRegion;
|
||||
|
||||
|
@ -97,8 +98,17 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
|||
return;
|
||||
}
|
||||
|
||||
string networkConnector = gridConfig.GetString("NetworkConnector", string.Empty);
|
||||
if (networkConnector == string.Empty)
|
||||
{
|
||||
m_log.Error("[REMOTE GRID CONNECTOR]: Please specify a network connector under [GridService]");
|
||||
return;
|
||||
}
|
||||
|
||||
Object[] args = new Object[] { source };
|
||||
m_RemoteGridService = ServerUtils.LoadPlugin<IGridService>(networkConnector, args);
|
||||
|
||||
m_LocalGridService = new LocalGridServicesConnector(source);
|
||||
m_RemoteGridService = new GridServicesConnector(source);
|
||||
}
|
||||
|
||||
public void PostInitialise()
|
||||
|
|
|
@ -38,6 +38,8 @@
|
|||
; for the LocalGridServicesConnector which is used by the Remote one
|
||||
StorageProvider = "OpenSim.Data.Null.dll:NullRegionData"
|
||||
|
||||
NetworkConnector = "OpenSim.Services.Connectors.dll:GridServicesConnector"
|
||||
|
||||
[LibraryService]
|
||||
LocalServiceModule = "OpenSim.Services.InventoryService.dll:LibraryService"
|
||||
LibraryName = "OpenSim Library"
|
||||
|
|
|
@ -49,6 +49,8 @@
|
|||
LocalServiceModule = "OpenSim.Services.GridService.dll:GridService"
|
||||
StorageProvider = "OpenSim.Data.Null.dll:NullRegionData"
|
||||
|
||||
NetworkConnector = "OpenSim.Services.Connectors.dll:GridServicesConnector"
|
||||
|
||||
; Needed to display non-default map tile images for linked regions
|
||||
AssetService = "OpenSim.Services.Connectors.dll:AssetServicesConnector"
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
Include-Common = "config-include/GridCommon.ini"
|
||||
|
||||
[Modules]
|
||||
GridServices = "SimianGridServiceConnector"
|
||||
GridServices = "RemoteGridServicesConnector"
|
||||
PresenceServices = "SimianPresenceServiceConnector"
|
||||
UserAccountServices = "SimianUserAccountServiceConnector"
|
||||
AuthenticationServices = "SimianAuthenticationServiceConnector"
|
||||
|
@ -53,6 +53,7 @@
|
|||
[GridService]
|
||||
LocalServiceModule = "OpenSim.Services.GridService.dll:GridService"
|
||||
StorageProvider = "OpenSim.Data.Null.dll:NullRegionData"
|
||||
NetworkConnector = "OpenSim.Services.Connectors.dll:SimianGridServiceConnector"
|
||||
|
||||
AllowHypergridMapSearch = true
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
Include-Common = "config-include/GridCommon.ini"
|
||||
|
||||
[Modules]
|
||||
GridServices = "SimianGridServiceConnector"
|
||||
GridServices = "RemoteGridServicesConnector"
|
||||
PresenceServices = "SimianPresenceServiceConnector"
|
||||
UserAccountServices = "SimianUserAccountServiceConnector"
|
||||
AuthenticationServices = "SimianAuthenticationServiceConnector"
|
||||
|
@ -53,6 +53,7 @@
|
|||
[GridService]
|
||||
LocalServiceModule = "OpenSim.Services.GridService.dll:GridService"
|
||||
StorageProvider = "OpenSim.Data.Null.dll:NullRegionData"
|
||||
NetworkConnector = "OpenSim.Services.Connectors.dll:SimianGridServiceConnector"
|
||||
|
||||
[LibraryService]
|
||||
LocalServiceModule = "OpenSim.Services.InventoryService.dll:LibraryService"
|
||||
|
|
Loading…
Reference in New Issue