aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/General/Configuration/GridConfig.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/General/Configuration/GridConfig.cs')
-rw-r--r--OpenSim/Framework/General/Configuration/GridConfig.cs170
1 files changed, 85 insertions, 85 deletions
diff --git a/OpenSim/Framework/General/Configuration/GridConfig.cs b/OpenSim/Framework/General/Configuration/GridConfig.cs
index 3d07d9b..a81cac2 100644
--- a/OpenSim/Framework/General/Configuration/GridConfig.cs
+++ b/OpenSim/Framework/General/Configuration/GridConfig.cs
@@ -1,85 +1,85 @@
1using System; 1using System;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using System.Text; 3using System.Text;
4 4
5namespace OpenSim.Framework.Configuration 5namespace OpenSim.Framework.Configuration
6{ 6{
7 public class GridConfig 7 public class GridConfig
8 { 8 {
9 public string GridOwner = ""; 9 public string GridOwner = "";
10 public string DefaultAssetServer = ""; 10 public string DefaultAssetServer = "";
11 public string AssetSendKey = ""; 11 public string AssetSendKey = "";
12 public string AssetRecvKey = ""; 12 public string AssetRecvKey = "";
13 13
14 public string DefaultUserServer = ""; 14 public string DefaultUserServer = "";
15 public string UserSendKey = ""; 15 public string UserSendKey = "";
16 public string UserRecvKey = ""; 16 public string UserRecvKey = "";
17 17
18 public string SimSendKey = ""; 18 public string SimSendKey = "";
19 public string SimRecvKey = ""; 19 public string SimRecvKey = "";
20 20
21 public string DatabaseProvider = ""; 21 public string DatabaseProvider = "";
22 22
23 private ConfigurationMember configMember; 23 private ConfigurationMember configMember;
24 public GridConfig(string description, string filename) 24 public GridConfig(string description, string filename)
25 { 25 {
26 configMember = new ConfigurationMember(filename, description, this.loadConfigurationOptions, this.handleIncomingConfiguration); 26 configMember = new ConfigurationMember(filename, description, this.loadConfigurationOptions, this.handleIncomingConfiguration);
27 configMember.performConfigurationRetrieve(); 27 configMember.performConfigurationRetrieve();
28 } 28 }
29 29
30 public void loadConfigurationOptions() 30 public void loadConfigurationOptions()
31 { 31 {
32 configMember.addConfigurationOption("grid_owner", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "OGS Grid Owner", "OGS development team", false); 32 configMember.addConfigurationOption("grid_owner", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "OGS Grid Owner", "OGS development team", false);
33 configMember.addConfigurationOption("default_asset_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default Asset Server URI", "http://127.0.0.1:8003/", false); 33 configMember.addConfigurationOption("default_asset_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default Asset Server URI", "http://127.0.0.1:8003/", false);
34 configMember.addConfigurationOption("asset_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to asset server", "null", false); 34 configMember.addConfigurationOption("asset_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to asset server", "null", false);
35 configMember.addConfigurationOption("asset_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from asset server", "null", false); 35 configMember.addConfigurationOption("asset_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from asset server", "null", false);
36 36
37 configMember.addConfigurationOption("default_user_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default User Server URI", "http://127.0.0.1:8002/", false); 37 configMember.addConfigurationOption("default_user_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default User Server URI", "http://127.0.0.1:8002/", false);
38 configMember.addConfigurationOption("user_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to user server", "null", false); 38 configMember.addConfigurationOption("user_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to user server", "null", false);
39 configMember.addConfigurationOption("user_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from user server", "null", false); 39 configMember.addConfigurationOption("user_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from user server", "null", false);
40 40
41 configMember.addConfigurationOption("sim_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to a simulator", "null", false); 41 configMember.addConfigurationOption("sim_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to a simulator", "null", false);
42 configMember.addConfigurationOption("sim_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from a simulator", "null", false); 42 configMember.addConfigurationOption("sim_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from a simulator", "null", false);
43 configMember.addConfigurationOption("database_provider", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "DLL for database provider", "OpenSim.Framework.Data.MySQL.dll", false); 43 configMember.addConfigurationOption("database_provider", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "DLL for database provider", "OpenSim.Framework.Data.MySQL.dll", false);
44 } 44 }
45 45
46 public bool handleIncomingConfiguration(string configuration_key, object configuration_result) 46 public bool handleIncomingConfiguration(string configuration_key, object configuration_result)
47 { 47 {
48 switch (configuration_key) 48 switch (configuration_key)
49 { 49 {
50 case "grid_owner": 50 case "grid_owner":
51 this.GridOwner = (string)configuration_result; 51 this.GridOwner = (string)configuration_result;
52 break; 52 break;
53 case "default_asset_server": 53 case "default_asset_server":
54 this.DefaultAssetServer = (string)configuration_result; 54 this.DefaultAssetServer = (string)configuration_result;
55 break; 55 break;
56 case "asset_send_key": 56 case "asset_send_key":
57 this.AssetSendKey = (string)configuration_result; 57 this.AssetSendKey = (string)configuration_result;
58 break; 58 break;
59 case "asset_recv_key": 59 case "asset_recv_key":
60 this.AssetRecvKey = (string)configuration_result; 60 this.AssetRecvKey = (string)configuration_result;
61 break; 61 break;
62 case "default_user_server": 62 case "default_user_server":
63 this.DefaultUserServer = (string)configuration_result; 63 this.DefaultUserServer = (string)configuration_result;
64 break; 64 break;
65 case "user_send_key": 65 case "user_send_key":
66 this.UserSendKey = (string)configuration_result; 66 this.UserSendKey = (string)configuration_result;
67 break; 67 break;
68 case "user_recv_key": 68 case "user_recv_key":
69 this.UserRecvKey = (string)configuration_result; 69 this.UserRecvKey = (string)configuration_result;
70 break; 70 break;
71 case "sim_send_key": 71 case "sim_send_key":
72 this.SimSendKey = (string)configuration_result; 72 this.SimSendKey = (string)configuration_result;
73 break; 73 break;
74 case "sim_recv_key": 74 case "sim_recv_key":
75 this.SimRecvKey = (string)configuration_result; 75 this.SimRecvKey = (string)configuration_result;
76 break; 76 break;
77 case "database_provider": 77 case "database_provider":
78 this.DatabaseProvider = (string)configuration_result; 78 this.DatabaseProvider = (string)configuration_result;
79 break; 79 break;
80 } 80 }
81 81
82 return true; 82 return true;
83 } 83 }
84 } 84 }
85} 85}