From 7486ef2bb077feb489a55db86707d96e69d12265 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Fri, 30 Jul 2010 12:44:12 +0000
Subject: [PATCH] Implements a disk space thresholds feature, preventing the server from crashing or exiting of disks full.

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/replication/StressTest.java |   23 ++---------------------
 1 files changed, 2 insertions(+), 21 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/StressTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/StressTest.java
index 73b0fe3..13efad7 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/StressTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/StressTest.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2006-2009 Sun Microsystems, Inc.
+ *      Copyright 2006-2010 Sun Microsystems, Inc.
  */
 
 package org.opends.server.replication;
@@ -95,7 +95,7 @@
 
     ReplicationBroker broker =
       openReplicationSession(baseDn, 18, 100, replServerPort, 5000, true);
-    Monitor monitor = new Monitor("stress test monitor");
+    Monitor monitor = new Monitor();
     DirectoryServer.registerMonitorProvider(monitor);
 
     try {
@@ -350,11 +350,6 @@
 
   private class Monitor extends MonitorProvider<MonitorProviderCfg>
   {
-    protected Monitor(String threadName)
-    {
-      super(threadName);
-    }
-
     @Override
     public List<Attribute> getMonitorData()
     {
@@ -378,13 +373,6 @@
     }
 
     @Override
-    public void updateMonitorData()
-    {
-      // nothing to do
-
-    }
-
-    @Override
     public void initializeMonitorProvider(MonitorProviderCfg configuration)
     throws ConfigException, InitializationException
     {
@@ -392,13 +380,6 @@
 
     }
 
-    @Override
-    public long getUpdateInterval()
-    {
-      // we don't wont to do polling on this monitor
-      return 0;
-    }
-
 
 
   }

--
Gitblit v1.10.0