Пример #1
0
 public void setProperty(String name, Object value) {
   if (PROP_TC_FILE.equals(name)) {
     tc = new TCCache(File.getNonSingletonInstance((String) value));
     this.setConstraintChecker(new TCChecker(tc));
     this.addTaskTransformer(new VDSTaskTransformer(tc));
   } else if (PROP_CLUSTERING_QUEUE_DELAY.equals(name)) {
     clusteringQueueDelay = TypeUtil.toInt(value);
   } else if (PROP_CLUSTERING_MIN_TIME.equals(name)) {
     minClusterTime = TypeUtil.toInt(value);
   } else if (PROP_CLUSTERING_ENABLED.equals(name)) {
     clusteringEnabled = TypeUtil.toBoolean(value);
   } else {
     super.setProperty(name, value);
   }
 }
Пример #2
0
 private int getMaxWallTime(Task t) {
   return timeToSeconds(
       TypeUtil.toString(((JobSpecification) t.getSpecification()).getAttribute("maxwalltime")));
 }