|
From: <b_...@us...> - 2008-06-17 11:28:13
|
Revision: 2039
http://cogkit.svn.sourceforge.net/cogkit/?rev=2039&view=rev
Author: b_z_c
Date: 2008-06-17 04:28:03 -0700 (Tue, 17 Jun 2008)
Log Message:
-----------
allow specification of condor requirements string
Modified Paths:
--------------
trunk/current/src/cog/modules/provider-gt2/src/org/globus/cog/abstraction/impl/execution/gt2/JobSubmissionTaskHandler.java
Modified: trunk/current/src/cog/modules/provider-gt2/src/org/globus/cog/abstraction/impl/execution/gt2/JobSubmissionTaskHandler.java
===================================================================
--- trunk/current/src/cog/modules/provider-gt2/src/org/globus/cog/abstraction/impl/execution/gt2/JobSubmissionTaskHandler.java 2008-06-12 22:46:57 UTC (rev 2038)
+++ trunk/current/src/cog/modules/provider-gt2/src/org/globus/cog/abstraction/impl/execution/gt2/JobSubmissionTaskHandler.java 2008-06-17 11:28:03 UTC (rev 2039)
@@ -417,10 +417,21 @@
.getStdError()));
}
+ if (spec.getAttribute("condor_requirements") != null) {
+ String requirementString = (String) spec.getAttribute("condor_requirements");
+ NameOpValue req = new NameOpValue("condorsubmit", NameOpValue.EQ);
+ List l = new LinkedList();
+ l.add(new Value("Requirements"));
+ l.add(new Value(requirementString));
+ req.add(l);
+ rsl.add(req);
+ }
+
Iterator i = spec.getAttributeNames().iterator();
while (i.hasNext()) {
try {
String key = (String) i.next();
+ if(key.equals("condor_requirements")) continue;
rsl.add(new NameOpValue(key, NameOpValue.EQ, (String) spec
.getAttribute(key)));
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|