Package org.apache.uima.ducc.transport.event.jd

Examples of org.apache.uima.ducc.transport.event.jd.PerformanceMetricsSummaryMap


    return retVal;
  }
 
  private void statistics() {
    String location = "statistics";
    PerformanceMetricsSummaryMap map = performanceSummaryWriter.getSummaryMap();
    String stars = "********************";
    duccOut.info(location, jobid, stars);
    String sep = " / ";
    duccOut.info(location, jobid, "PerformanceMetricsSummaryMapSize:"+map.size());
    duccOut.info(location, jobid, "uniqueName"+sep+"name"+sep+"numProcessed"+sep+"analysisTime"+sep+"Avg"+sep+"Min"+sep+"Max");
    Set<Entry<String, PerformanceMetricsSummaryItem>> tset = map.entrySet();
    for (Entry<String, PerformanceMetricsSummaryItem> entry : tset) {
      String uniqueName = entry.getKey();
      PerformanceMetricsSummaryItem value = entry.getValue();
      String name = value.getName();
      long analysisTime = value.getAnalysisTime();
View Full Code Here


    protected void formatSummary()
    {
        //
        PerformanceSummaryReader psf = new PerformanceSummaryReader(dir);
        PerformanceMetricsSummaryMap pms = psf.readSummary();
        if ( pms == null ) return;

        int cascount = pms.casCount();
        int size = pms.size();
        Set<Entry<String, PerformanceMetricsSummaryItem>> set = pms.entrySet();
        ArrayList<PerformanceMetricsSummaryItem> items = new ArrayList<PerformanceMetricsSummaryItem>();
        int maxl = 0;
        for ( Entry<String, PerformanceMetricsSummaryItem> e : set ) {
            PerformanceMetricsSummaryItem pmi = e.getValue();
            String k = pmi.getUniqueName();
View Full Code Here

      try {
        String userId = duccWebSessionManager.getUserId(request);
        WorkItemStateManager workItemStateManager = new WorkItemStateManager(job.getLogDirectory()+jobNo);
        workItemStateManager.importData(userId);
        PerformanceSummary performanceSummary = new PerformanceSummary(job.getLogDirectory()+jobNo);
          PerformanceMetricsSummaryMap performanceMetricsSummaryMap = performanceSummary.readSummary(userId);
          if( (performanceMetricsSummaryMap == null) || (performanceMetricsSummaryMap.size() == 0) ) {
            sb.append("no data (map empty?)");
          }
          else {
            int casCount  = performanceMetricsSummaryMap.casCount();
            /*
            sb.append("<table>");
            sb.append("<tr>");
            sb.append("<th align=\"right\">");
            sb.append("Job Id:");
            sb.append("<th align=\"left\">");
            sb.append(jobNo);
            sb.append("<th>");
            sb.append("&nbsp");
            sb.append("<th align=\"right\">");
            sb.append("Workitems:");
            sb.append("<th align=\"left\">");
            sb.append(casCount);
            sb.append("</table>");
            sb.append("<br>");
            */
            sb.append("<table>");
          sb.append("<tr class=\"ducc-head\">");
          sb.append("<th>");
          sb.append("Name");
          sb.append("</th>");
          sb.append("<th>");
          sb.append("Total<br><small>ddd:hh:mm:ss</small>");
          sb.append("</th>");
          sb.append("<th>");
          sb.append("% of<br>Total");
          sb.append("</th>");
          sb.append("<th>");
          sb.append("Avg<br><small>hh:mm:ss/workitem</small>");
          sb.append("</th>");
          sb.append("<th>");
          sb.append("Min<br><small>hh:mm:ss/workitem</small>");
          sb.append("</th>");
          sb.append("<th>");
          sb.append("Max<br><small>hh:mm:ss/workitem</small>");
          sb.append("</th>");
          sb.append("</tr>");
          ArrayList <UimaStatistic> uimaStats = new ArrayList<UimaStatistic>();
            uimaStats.clear();
            //long analysisTime = 0;
            for (Entry<String, PerformanceMetricsSummaryItem> entry : performanceMetricsSummaryMap.entrySet()) {
              PerformanceMetricsSummaryItem item = entry.getValue();
              String shortname = item.getDisplayName();
              long anTime = item.getAnalysisTime();
              long anMinTime = item.getAnalysisTimeMin();
              long anMaxTime = item.getAnalysisTimeMax();
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.transport.event.jd.PerformanceMetricsSummaryMap

Copyright © 2018 www.massapicom. 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.