Exemple #1
0
 @SuppressWarnings("deprecation")
 static String getCurrentReportNodeName() {
   final String[] rv = new String[1];
   ReportManager.getCurrentReportNode()
       .update(
           new Procedure1<Node>() {
             @Override
             public void apply(Node node) {
               rv[0] = node.getName();
             }
           });
   return rv[0];
 }
Exemple #2
0
 private JobInfo getOrCreateJobInfo(Job job) {
   synchronized (jobs) {
     JobInfo rv = jobs.get(job);
     if (rv == null) {
       rv = new JobInfo(job);
       JobsManager.getInstance().removeCanceled(job);
       if (TeslaFeatures.isActivityLogging()) {
         String msg = "waiting for job: " + job.getClass().getName();
         System.out.println(msg);
         Q7LoggingManager.get("jobs").log(msg, null);
         ReportManager.appendLogExtra(msg);
       }
       jobs.put(job, rv);
     }
     return rv;
   }
 }