aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid
diff options
context:
space:
mode:
authorDiva Canto2009-09-23 09:27:01 -0700
committerDiva Canto2009-09-23 09:27:01 -0700
commit35deff7ec4df6156abccdbeed83b14a6083e28f9 (patch)
tree520a8d8170a73fabaef43388dfbd0878b8802e08 /OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid
parentMerge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-35deff7ec4df6156abccdbeed83b14a6083e28f9.zip
opensim-SC_OLD-35deff7ec4df6156abccdbeed83b14a6083e28f9.tar.gz
opensim-SC_OLD-35deff7ec4df6156abccdbeed83b14a6083e28f9.tar.bz2
opensim-SC_OLD-35deff7ec4df6156abccdbeed83b14a6083e28f9.tar.xz
Modules active. Tested HGGridConnector in standalone only for now. Modules commands work.
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid')
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGCommands.cs6
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs28
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs4
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs4
4 files changed, 30 insertions, 12 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGCommands.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGCommands.cs
index eee3a6c..2a862d4 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGCommands.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGCommands.cs
@@ -85,7 +85,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
85 85
86 private void RunHGCommand(string command, string[] cmdparams) 86 private void RunHGCommand(string command, string[] cmdparams)
87 { 87 {
88 if (command.Equals("link-mapping")) 88 if (command.Equals("linkk-mapping"))
89 { 89 {
90 if (cmdparams.Length == 2) 90 if (cmdparams.Length == 2)
91 { 91 {
@@ -103,7 +103,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
103 } 103 }
104 } 104 }
105 } 105 }
106 else if (command.Equals("link-region")) 106 else if (command.Equals("linkk-region"))
107 { 107 {
108 if (cmdparams.Length < 3) 108 if (cmdparams.Length < 3)
109 { 109 {
@@ -181,7 +181,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
181 } 181 }
182 return; 182 return;
183 } 183 }
184 else if (command.Equals("unlink-region")) 184 else if (command.Equals("unlinkk-region"))
185 { 185 {
186 if (cmdparams.Length < 1) 186 if (cmdparams.Length < 1)
187 { 187 {
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs
index 7aeb761..c6ade15 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/HGGridConnector.cs
@@ -156,18 +156,27 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
156 if (!m_Initialized) 156 if (!m_Initialized)
157 { 157 {
158 m_HypergridServiceConnector = new HypergridServiceConnector(scene.AssetService); 158 m_HypergridServiceConnector = new HypergridServiceConnector(scene.AssetService);
159 HGCommands hgCommands = new HGCommands(this, scene);
160 MainConsole.Instance.Commands.AddCommand("HGGridServicesConnector", false, "linkk-region",
161 "link-region <Xloc> <Yloc> <HostName>:<HttpPort>[:<RemoteRegionName>] <cr>",
162 "Link a hypergrid region", hgCommands.RunCommand);
163 MainConsole.Instance.Commands.AddCommand("HGGridServicesConnector", false, "unlinkk-region",
164 "unlink-region <local name> or <HostName>:<HttpPort> <cr>",
165 "Unlink a hypergrid region", hgCommands.RunCommand);
166 MainConsole.Instance.Commands.AddCommand("HGGridServicesConnector", false, "linkk-mapping", "link-mapping [<x> <y>] <cr>",
167 "Set local coordinate to map HG regions to", hgCommands.RunCommand);
159 m_Initialized = true; 168 m_Initialized = true;
160 } 169 }
161 170
162 HGCommands hgCommands = new HGCommands(this, scene); 171
163 scene.AddCommand("HG", "link-region", 172 //scene.AddCommand("HGGridServicesConnector", "linkk-region",
164 "link-region <Xloc> <Yloc> <HostName>:<HttpPort>[:<RemoteRegionName>] <cr>", 173 // "link-region <Xloc> <Yloc> <HostName>:<HttpPort>[:<RemoteRegionName>] <cr>",
165 "Link a hypergrid region", hgCommands.RunCommand); 174 // "Link a hypergrid region", hgCommands.RunCommand);
166 scene.AddCommand("HG", "unlink-region", 175 //scene.AddCommand("HGGridServicesConnector", "unlinkk-region",
167 "unlink-region <local name> or <HostName>:<HttpPort> <cr>", 176 // "unlink-region <local name> or <HostName>:<HttpPort> <cr>",
168 "Unlink a hypergrid region", hgCommands.RunCommand); 177 // "Unlink a hypergrid region", hgCommands.RunCommand);
169 scene.AddCommand("HG", "link-mapping", "link-mapping [<x> <y>] <cr>", 178 //scene.AddCommand("HGGridServicesConnector", "linkk-mapping", "link-mapping [<x> <y>] <cr>",
170 "Set local coordinate to map HG regions to", hgCommands.RunCommand); 179 // "Set local coordinate to map HG regions to", hgCommands.RunCommand);
171 180
172 } 181 }
173 182
@@ -407,6 +416,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
407 return null; 416 return null;
408 } 417 }
409 418
419 // From the map search and secondlife://blah
410 public SimpleRegionInfo TryLinkRegion(Scene m_scene, IClientAPI client, string mapName) 420 public SimpleRegionInfo TryLinkRegion(Scene m_scene, IClientAPI client, string mapName)
411 { 421 {
412 uint xloc = (uint)(random.Next(0, Int16.MaxValue)); 422 uint xloc = (uint)(random.Next(0, Int16.MaxValue));
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs
index 3f29401..c1b7235 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs
@@ -50,6 +50,10 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
50 50
51 private bool m_Enabled = false; 51 private bool m_Enabled = false;
52 52
53 public LocalGridServicesConnector()
54 {
55 }
56
53 public LocalGridServicesConnector(IConfigSource source) 57 public LocalGridServicesConnector(IConfigSource source)
54 { 58 {
55 InitialiseService(source); 59 InitialiseService(source);
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs
index 8526653..4303fa8 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs
@@ -51,6 +51,10 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
51 51
52 private IGridService m_LocalGridService; 52 private IGridService m_LocalGridService;
53 53
54 public RemoteGridServicesConnector()
55 {
56 }
57
54 public RemoteGridServicesConnector(IConfigSource source) 58 public RemoteGridServicesConnector(IConfigSource source)
55 { 59 {
56 InitialiseServices(source); 60 InitialiseServices(source);