From 1c9a801c6d6966f8e254d18005dfec47f73d6e81 Mon Sep 17 00:00:00 2001
From: ribeaudc <ribeaudc>
Date: Thu, 15 May 2008 18:23:19 +0000
Subject: [PATCH] [DMV-12] change: - 'HighwaterMarkWatcher' should take its
 path from destination file store.

SVN: 6082
---
 .../cisd/common/highwatermark/HighwaterMarkWatcher.java  | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/common/source/java/ch/systemsx/cisd/common/highwatermark/HighwaterMarkWatcher.java b/common/source/java/ch/systemsx/cisd/common/highwatermark/HighwaterMarkWatcher.java
index 5cc1d062378..fa39ab9c5c4 100644
--- a/common/source/java/ch/systemsx/cisd/common/highwatermark/HighwaterMarkWatcher.java
+++ b/common/source/java/ch/systemsx/cisd/common/highwatermark/HighwaterMarkWatcher.java
@@ -139,6 +139,14 @@ public final class HighwaterMarkWatcher implements Runnable
         this.path = path;
     }
 
+    /**
+     * Returns the path to get free space for.
+     */
+    public final synchronized File getPath()
+    {
+        return path;
+    }
+
     /**
      * Sets the path and calls {@link #run()} at the same time.
      */
@@ -347,4 +355,5 @@ public final class HighwaterMarkWatcher implements Runnable
          */
         public long freeSpaceKb(final File path) throws IOException;
     }
+
 }
\ No newline at end of file
-- 
GitLab