Exemplo n.º 1
0
 private String getTableJobId(Job j) {
   String id = j.getName().replace(".", "-");
   Job job = j;
   while ((job = job.getDependency()) != null) {
     id = job.getName().replace(".", "-") + "." + id;
   }
   return id;
 }
Exemplo n.º 2
0
 /**
  * Convert jobs to names.
  *
  * @param jobs the jobs
  * @return the list
  */
 private List<String> convertJobsToNames(List<Job> jobs) {
   List<String> names = new ArrayList<String>();
   for (Job j : jobs) {
     names.add(j.getName());
   }
   return names;
 }