[Swift-commit] cog r4001

swift at ci.uchicago.edu swift at ci.uchicago.edu
Fri Jul 4 02:10:03 CDT 2014


------------------------------------------------------------------------
r4001 | hategan | 2014-07-04 02:09:30 -0500 (Fri, 04 Jul 2014) | 1 line

added ability to remove service attributes
------------------------------------------------------------------------
Index: modules/abstraction-common/src/org/globus/cog/abstraction/impl/common/task/ServiceImpl.java
===================================================================
--- modules/abstraction-common/src/org/globus/cog/abstraction/impl/common/task/ServiceImpl.java	(revision 4000)
+++ modules/abstraction-common/src/org/globus/cog/abstraction/impl/common/task/ServiceImpl.java	(working copy)
@@ -172,6 +172,13 @@
         }
     }
 
+    @Override
+    public void removeAttribute(String name) {
+        if (attributes != null) {
+            attributes.remove(name);
+        }
+    }
+
     public String toString() {
         return serviceContact + "(" + this.provider + ")";
     }
Index: modules/abstraction-common/src/org/globus/cog/abstraction/interfaces/Service.java
===================================================================
--- modules/abstraction-common/src/org/globus/cog/abstraction/interfaces/Service.java	(revision 4000)
+++ modules/abstraction-common/src/org/globus/cog/abstraction/interfaces/Service.java	(working copy)
@@ -162,4 +162,6 @@
     public Enumeration getAllAttributes();
     
     public Collection<String> getAttributeNames();
+
+    public void removeAttribute(String name);
 }



More information about the Swift-commit mailing list