[Swift-commit] r3736 - trunk/src/org/globus/swift/data

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Dec 6 13:36:57 CST 2010


Author: wozniak
Date: 2010-12-06 13:36:57 -0600 (Mon, 06 Dec 2010)
New Revision: 3736

Modified:
   trunk/src/org/globus/swift/data/Director.java
Log:
Fix warning


Modified: trunk/src/org/globus/swift/data/Director.java
===================================================================
--- trunk/src/org/globus/swift/data/Director.java	2010-12-06 19:18:11 UTC (rev 3735)
+++ trunk/src/org/globus/swift/data/Director.java	2010-12-06 19:36:57 UTC (rev 3736)
@@ -78,11 +78,11 @@
     /**
        Read in the user-supplied CDM policy file.
     */
-    public static void load(File policyFile) throws IOException {
-        logger.info("CDM file: " + policyFile);
+    public static void load(File file) throws IOException {
+        logger.info("CDM file: " + file);
         enabled = true;
-        Director.policyFile = policyFile;
-        List<String> list = LineReader.read(policyFile);
+        Director.policyFile = file;
+        List<String> list = LineReader.read(file);
         for (String s : list)
             addLine(s);
     }
@@ -177,10 +177,10 @@
        If the location is added twice, the second addition
        is considered to be an empty allocation with no CDM state.
     */
-    public static synchronized void addAllocation(String allocation) {
-        logger.debug("addAllocation(): " + allocation);
-        allocations.add(allocation);
-        broadcasted.put(allocation, new HashSet<String>());
+    public static synchronized void addBlock(String blockId) {
+        logger.debug("addBlock(): " + blockId);
+        allocations.add(blockId);
+        broadcasted.put(blockId, new HashSet<String>());
         doBroadcast();
     }
 




More information about the Swift-commit mailing list