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.Services.Connectors;
|
||||||
using OpenSim.Region.Framework.Interfaces;
|
using OpenSim.Region.Framework.Interfaces;
|
||||||
using OpenSim.Region.Framework.Scenes;
|
using OpenSim.Region.Framework.Scenes;
|
||||||
|
using OpenSim.Server.Base;
|
||||||
using OpenSim.Services.Interfaces;
|
using OpenSim.Services.Interfaces;
|
||||||
using GridRegion = OpenSim.Services.Interfaces.GridRegion;
|
using GridRegion = OpenSim.Services.Interfaces.GridRegion;
|
||||||
|
|
||||||
|
@ -97,8 +98,17 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||||
return;
|
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_LocalGridService = new LocalGridServicesConnector(source);
|
||||||
m_RemoteGridService = new GridServicesConnector(source);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PostInitialise()
|
public void PostInitialise()
|
||||||
|
|
|
@ -38,6 +38,8 @@
|
||||||
; for the LocalGridServicesConnector which is used by the Remote one
|
; for the LocalGridServicesConnector which is used by the Remote one
|
||||||
StorageProvider = "OpenSim.Data.Null.dll:NullRegionData"
|
StorageProvider = "OpenSim.Data.Null.dll:NullRegionData"
|
||||||
|
|
||||||
|
NetworkConnector = "OpenSim.Services.Connectors.dll:GridServicesConnector"
|
||||||
|
|
||||||
[LibraryService]
|
[LibraryService]
|
||||||
LocalServiceModule = "OpenSim.Services.InventoryService.dll:LibraryService"
|
LocalServiceModule = "OpenSim.Services.InventoryService.dll:LibraryService"
|
||||||
LibraryName = "OpenSim Library"
|
LibraryName = "OpenSim Library"
|
||||||
|
|
|
@ -49,6 +49,8 @@
|
||||||
LocalServiceModule = "OpenSim.Services.GridService.dll:GridService"
|
LocalServiceModule = "OpenSim.Services.GridService.dll:GridService"
|
||||||
StorageProvider = "OpenSim.Data.Null.dll:NullRegionData"
|
StorageProvider = "OpenSim.Data.Null.dll:NullRegionData"
|
||||||
|
|
||||||
|
NetworkConnector = "OpenSim.Services.Connectors.dll:GridServicesConnector"
|
||||||
|
|
||||||
; Needed to display non-default map tile images for linked regions
|
; Needed to display non-default map tile images for linked regions
|
||||||
AssetService = "OpenSim.Services.Connectors.dll:AssetServicesConnector"
|
AssetService = "OpenSim.Services.Connectors.dll:AssetServicesConnector"
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
Include-Common = "config-include/GridCommon.ini"
|
Include-Common = "config-include/GridCommon.ini"
|
||||||
|
|
||||||
[Modules]
|
[Modules]
|
||||||
GridServices = "SimianGridServiceConnector"
|
GridServices = "RemoteGridServicesConnector"
|
||||||
PresenceServices = "SimianPresenceServiceConnector"
|
PresenceServices = "SimianPresenceServiceConnector"
|
||||||
UserAccountServices = "SimianUserAccountServiceConnector"
|
UserAccountServices = "SimianUserAccountServiceConnector"
|
||||||
AuthenticationServices = "SimianAuthenticationServiceConnector"
|
AuthenticationServices = "SimianAuthenticationServiceConnector"
|
||||||
|
@ -53,6 +53,7 @@
|
||||||
[GridService]
|
[GridService]
|
||||||
LocalServiceModule = "OpenSim.Services.GridService.dll:GridService"
|
LocalServiceModule = "OpenSim.Services.GridService.dll:GridService"
|
||||||
StorageProvider = "OpenSim.Data.Null.dll:NullRegionData"
|
StorageProvider = "OpenSim.Data.Null.dll:NullRegionData"
|
||||||
|
NetworkConnector = "OpenSim.Services.Connectors.dll:SimianGridServiceConnector"
|
||||||
|
|
||||||
AllowHypergridMapSearch = true
|
AllowHypergridMapSearch = true
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
Include-Common = "config-include/GridCommon.ini"
|
Include-Common = "config-include/GridCommon.ini"
|
||||||
|
|
||||||
[Modules]
|
[Modules]
|
||||||
GridServices = "SimianGridServiceConnector"
|
GridServices = "RemoteGridServicesConnector"
|
||||||
PresenceServices = "SimianPresenceServiceConnector"
|
PresenceServices = "SimianPresenceServiceConnector"
|
||||||
UserAccountServices = "SimianUserAccountServiceConnector"
|
UserAccountServices = "SimianUserAccountServiceConnector"
|
||||||
AuthenticationServices = "SimianAuthenticationServiceConnector"
|
AuthenticationServices = "SimianAuthenticationServiceConnector"
|
||||||
|
@ -53,6 +53,7 @@
|
||||||
[GridService]
|
[GridService]
|
||||||
LocalServiceModule = "OpenSim.Services.GridService.dll:GridService"
|
LocalServiceModule = "OpenSim.Services.GridService.dll:GridService"
|
||||||
StorageProvider = "OpenSim.Data.Null.dll:NullRegionData"
|
StorageProvider = "OpenSim.Data.Null.dll:NullRegionData"
|
||||||
|
NetworkConnector = "OpenSim.Services.Connectors.dll:SimianGridServiceConnector"
|
||||||
|
|
||||||
[LibraryService]
|
[LibraryService]
|
||||||
LocalServiceModule = "OpenSim.Services.InventoryService.dll:LibraryService"
|
LocalServiceModule = "OpenSim.Services.InventoryService.dll:LibraryService"
|
||||||
|
|
Loading…
Reference in New Issue