Package com.taobao.top.analysis.statistics

Examples of com.taobao.top.analysis.statistics.StatisticsEngine.releaseResource()


    String key2 = mergedResult.get(key).keySet().iterator().next();
    Object value = mergedResult.get(key).get(key2);
   
    Assert.assertEquals(mergedJobTask.getResults().get(key).get(key2), value);
     
    defaultAnalysisEngine.releaseResource();
    mixJobBuilder.releaseResource();   
    jobResultMerge.releaseResource();
  }

}
View Full Code Here


      defaultAnalysisEngine.doExport(tasks.get(0), jobTaskResult);
    }
    System.out.println(System.currentTimeMillis() - time);
    fileJobExporter.releaseResource();
    jobResultMerger.releaseResource();
    defaultAnalysisEngine.releaseResource();
   
  }

}
View Full Code Here

      }
    }

    fileJobExporter.releaseResource();
    jobResultMerger.releaseResource();
    defaultAnalysisEngine.releaseResource();
   
    Thread.sleep(100);
   
  }
View Full Code Here

      job.setJobResult(defaultAnalysisEngine.doAnalysis(task).getResults())
     
      fileJobExporter.exportReport(job, false);
    }
     
    defaultAnalysisEngine.releaseResource();
    mixJobBuilder.releaseResource();
    fileJobExporter.releaseResource();
  }

 
View Full Code Here

      JobTaskResult jobTaskResult = defaultAnalysisEngine.doAnalysis(task)
     
      fileJobExporter.exportReport(task, jobTaskResult, false);
    }
     
    defaultAnalysisEngine.releaseResource();
    mixJobBuilder.releaseResource();
    fileJobExporter.releaseResource();
  }

 
View Full Code Here

   
    Assert.assertEquals(job.getJobResult().get(key).get(key2), value);
    Assert.assertEquals(job.getDiskResult().get(key).get(key2), value);
   
     
    defaultAnalysisEngine.releaseResource();
    mixJobBuilder.releaseResource();
    fileJobExporter.releaseResource();
   
  }
View Full Code Here

    GetTaskResponseEvent eventresp = (GetTaskResponseEvent)tunnel.getSlaveSide().poll();
   
    Assert.assertEquals(event.getSequence(), eventresp.getSequence());
    Assert.assertEquals(2, eventresp.getJobTasks().size());
   
    defaultAnalysisEngine.releaseResource();
  }

  @Test
  public void testCheckJobStatus() throws InterruptedException, AnalysisException {
    //验证一共3个任务
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.