aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorsacha2010-04-23 10:51:27 -0400
committersacha2010-04-23 10:51:27 -0400
commit7eda9364fd93906d6657e720681e8c079cb2ce1e (patch)
tree1735b11dec4ea2c603fd9bb72123d91a9cb944c4
parentMerge branch '0.6.9-post-fixes' into careminster (diff)
downloadopensim-SC-7eda9364fd93906d6657e720681e8c079cb2ce1e.zip
opensim-SC-7eda9364fd93906d6657e720681e8c079cb2ce1e.tar.gz
opensim-SC-7eda9364fd93906d6657e720681e8c079cb2ce1e.tar.bz2
opensim-SC-7eda9364fd93906d6657e720681e8c079cb2ce1e.tar.xz
Adding LinkUp/LinkDown when a region is started or stoped.
Those two events could be used to compute the region availibility
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/OpenSimBase.cs5
-rw-r--r--OpenSim/Region/Framework/Interfaces/ISnmpModule.cs5
2 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs
index f3aaa76..06bb886 100644
--- a/OpenSim/Region/Application/OpenSimBase.cs
+++ b/OpenSim/Region/Application/OpenSimBase.cs
@@ -350,11 +350,9 @@ namespace OpenSim
350 if (scene.SnmpService != null) 350 if (scene.SnmpService != null)
351 { 351 {
352 scene.SnmpService.ColdStart(1,scene); 352 scene.SnmpService.ColdStart(1,scene);
353 scene.SnmpService.LinkDown(scene);
353 } 354 }
354 355
355// it should be a LinkDown event
356// Maped inside opennms
357// bad...
358 if (scene.SnmpService != null) 356 if (scene.SnmpService != null)
359 { 357 {
360 scene.SnmpService.Warning("Loading prins", scene); 358 scene.SnmpService.Warning("Loading prins", scene);
@@ -439,6 +437,7 @@ namespace OpenSim
439 if (scene.SnmpService != null) 437 if (scene.SnmpService != null)
440 { 438 {
441 scene.SnmpService.Warning("The region is operational", scene); 439 scene.SnmpService.Warning("The region is operational", scene);
440 scene.SnmpService.LinkUp(scene);
442 } 441 }
443 442
444 scene.StartTimer(); 443 scene.StartTimer();
diff --git a/OpenSim/Region/Framework/Interfaces/ISnmpModule.cs b/OpenSim/Region/Framework/Interfaces/ISnmpModule.cs
index 8a83fe9..cc31322 100644
--- a/OpenSim/Region/Framework/Interfaces/ISnmpModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/ISnmpModule.cs
@@ -15,4 +15,9 @@ public interface ISnmpModule
15 void Major(string Message, Scene scene); 15 void Major(string Message, Scene scene);
16 void ColdStart(int step , Scene scene); 16 void ColdStart(int step , Scene scene);
17 void Shutdown(int step , Scene scene); 17 void Shutdown(int step , Scene scene);
18 //
19 // Node Start/stop events
20 //
21 void LinkUp(Scene scene);
22 void LinkDown(Scene scene);
18} 23}