aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ThirdParty/3Di/LoadBalancer
diff options
context:
space:
mode:
Diffstat (limited to 'ThirdParty/3Di/LoadBalancer')
-rw-r--r--ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs14
-rw-r--r--ThirdParty/3Di/LoadBalancer/Resources/LoadBalancer.addin.xml12
2 files changed, 16 insertions, 10 deletions
diff --git a/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs b/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs
index 0d50f0e..cc0f2f5 100644
--- a/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs
+++ b/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs
@@ -45,14 +45,8 @@ using OpenSim.Region.Environment.Scenes;
45 45
46// TODO: remove LindenUDP dependency 46// TODO: remove LindenUDP dependency
47 47
48[assembly : Addin]
49[assembly : AddinDependency("OpenSim", "0.5")]
50[assembly : AddinDependency("RegionProxy", "0.1")]
51
52namespace OpenSim.ApplicationPlugins.LoadBalancer 48namespace OpenSim.ApplicationPlugins.LoadBalancer
53{ 49{
54 [Extension("/OpenSim/Startup")]
55 [ExtensionNode ("Plugin")]
56 public class LoadBalancerPlugin : IApplicationPlugin 50 public class LoadBalancerPlugin : IApplicationPlugin
57 { 51 {
58 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 52 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
@@ -76,14 +70,14 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer
76 70
77 #region IApplicationPlugin Members 71 #region IApplicationPlugin Members
78 // TODO: required by IPlugin, but likely not at all right 72 // TODO: required by IPlugin, but likely not at all right
79 string m_name = "LoadBalancerPlugin"; 73 string m_name = "LoadBalancer";
80 string m_version = "0.0"; 74 string m_version = "0.1";
81 75
82 public string Version { get { return m_version; } } 76 public string Version { get { return m_version; } }
83 public string Name { get { return m_name; } } 77 public string Name { get { return m_name; } }
84 78
85 public void Initialise() 79 public void Initialise()
86 { 80 {
87 m_log.Info("[BALANCER]: " + Name + " cannot be default-initialized!"); 81 m_log.Info("[BALANCER]: " + Name + " cannot be default-initialized!");
88 throw new PluginNotInitialisedException (Name); 82 throw new PluginNotInitialisedException (Name);
89 } 83 }
diff --git a/ThirdParty/3Di/LoadBalancer/Resources/LoadBalancer.addin.xml b/ThirdParty/3Di/LoadBalancer/Resources/LoadBalancer.addin.xml
new file mode 100644
index 0000000..ac6ac15
--- /dev/null
+++ b/ThirdParty/3Di/LoadBalancer/Resources/LoadBalancer.addin.xml
@@ -0,0 +1,12 @@
1<Addin id="LoadBalancer" version="0.1">
2 <Runtime>
3 <Import assembly="OpenSim.ApplicationPlugins.LoadBalancer.dll" />
4 </Runtime>
5 <Dependencies>
6 <Addin id="OpenSim" version="0.5" />
7 <Addin id="RegionProxy" version="0.1" />
8 </Dependencies>
9 <Extension path="/OpenSim/Startup">
10 <Plugin id="LoadBalancer" type="OpenSim.ApplicationPlugins.LoadBalancer.LoadBalancerPlugin" />
11 </Extension>
12</Addin>