Ejemplo n.º 1
0
 /** Finds a job with given dest key or returns null */
 public static final Job findJobByDest(final Key destKey) {
   Job job = null;
   for( Job current : Job.all() ) {
     if( current.dest().equals(destKey) ) {
       job = current;
       break;
     }
   }
   return job;
 }
Ejemplo n.º 2
0
Archivo: Job.java Proyecto: pwaila/h2o
 /** Finds a job with given key or returns null */
 public static final Job findJob(final Key key) {
   Job job = null;
   for (Job current : Job.all()) {
     if (current.self().equals(key)) {
       job = current;
       break;
     }
   }
   return job;
 }