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

Examples of org.apache.uima.ducc.transport.event.common.IDuccProcessWorkItems


      DuccProcessWorkItemsMap pwiMap = jdStatusReport.getDuccProcessWorkItemsMap();
      Iterator<DuccId> iterator = pwiMap.keySet().iterator();
      while(iterator.hasNext()) {
        DuccId processId = iterator.next();
        IDuccProcess process = processMap.get(processId);
        IDuccProcessWorkItems pwi = pwiMap.get(processId);
        process.setProcessWorkItems(pwi);
        logger.trace(methodName, job.getDuccId(), "done:"+pwi.getCountDone()+" "+"error:"+pwi.getCountError()+" "+"dispatch:"+pwi.getCountDispatch()+" "+"unassigned:"+pwi.getCountUnassigned()+" "+"lost:"+pwi.getCountLost());
      }
    }
    catch(Throwable t) {
      logger.error(methodName, job.getDuccId(), t);
    }
View Full Code Here


 
  private void copyDriverWorkItemsReport(DuccWorkJob job, DriverStatusReport jdStatusReport) {
    String methodName = "copyDriverWorkItemsReport";
    try {
      DuccProcessWorkItemsMap pwiMap = jdStatusReport.getDuccProcessWorkItemsMap();
      IDuccProcessWorkItems pwi = pwiMap.getTotals();
      pwi.setCountUnassigned(jdStatusReport.getWorkItemPendingProcessAssignmentCount());
      DuccWorkPopDriver driver = job.getDriver();
      IDuccProcessMap processMap = driver.getProcessMap();
      if(processMap != null) {
        Iterator<DuccId> iterator = processMap.keySet().iterator();
        while(iterator.hasNext()) {
          DuccId processId = iterator.next();
          IDuccProcess process = processMap.get(processId);
          process.setProcessWorkItems(pwi);
          logger.debug(methodName, job.getDuccId(), "done:"+pwi.getCountDone()+" "+"error:"+pwi.getCountError()+" "+"dispatch:"+pwi.getCountDispatch()+" "+"unassigned:"+pwi.getCountUnassigned()+" "+"lost:"+pwi.getCountLost());
        }
      }
    }
    catch(Throwable t) {
      logger.error(methodName, job.getDuccId(), t);
View Full Code Here

                if ( gcStats != null ) {
                    gcCollectionCount = gcStats.getCollectionCount();
                    gcCollectionTime = gcStats.getCollectionTime();
                }
       
        IDuccProcessWorkItems idpw = idp.getProcessWorkItems();
                long wiDispatch = 0;
                long wiDone     = 0;
                long wiError    = 0;
                long wiRetry    = 0;
                long wiPreempt  = 0;                
                if ( idpw != null ) {
                    wiDispatch = idpw.getCountDispatch();
                    wiDone     = idpw.getCountDone();
                    wiError    = idpw.getCountError();
                    wiRetry    = idpw.getCountRetry();
                    wiPreempt  = idpw.getCountPreempt();
                }

                System.out.println(String.format(dataFmt, node, pid, init_time,
                                                 mem, memmax, major_faults, swap_usage, max_swap_usage, cpu_time, gcCollectionCount, gcCollectionTime,
                                                 wiDispatch, wiDone, wiError, wiRetry, wiPreempt,
View Full Code Here

    try {
      DuccProcessWorkItemsMap pwiMap = getDuccProcessWorkItemsMap();
      Iterator<DuccId> iterator = pwiMap.keySet().iterator();
      while(iterator.hasNext()) {
        DuccId processId = iterator.next();
        IDuccProcessWorkItems pwi = pwiMap.get(processId);
        retVal += pwi.getCountDispatch();
      }
    }
    catch(Throwable t) {
      duccOut.debug(methodName, duccId, t);
    }
View Full Code Here

  public IDuccProcessWorkItems getTotals() {
    return totals;
  }
 
  private IDuccProcessWorkItems get(DuccId duccId) {
    IDuccProcessWorkItems retVal = super.get(duccId);
    if(retVal == null) {
      retVal = new DuccProcessWorkItems();
      super.put(duccId, retVal);
    }
    return retVal;
View Full Code Here

    case MR:
      break;
    default:
      // Time:avg
      index++; // jp.17
      IDuccProcessWorkItems pwi = process.getProcessWorkItems();
      cbList[index].append("<td align=\"right\">");
      if(pwi != null) {
        cbList[index].append(pwi.getSecsAvg());
      }
      cbList[index].append("</td>");
      // Time:max
      index++; // jp.18
      cbList[index].append("<td align=\"right\">");
      if(pwi != null) {
        cbList[index].append(pwi.getSecsMax());
      }
      cbList[index].append("</td>");
      // Time:min
      index++; // jp.19
      cbList[index].append("<td align=\"right\">");
      if(pwi != null) {
        cbList[index].append(pwi.getSecsMin());
      }
      cbList[index].append("</td>");
      // Done
      index++; // jp.20
      cbList[index].append("<td align=\"right\">");
      if(pwi != null) {
        cbList[index].append(pwi.getCountDone());
      }
      cbList[index].append("</td>");
      // Error
      index++; // jp.21
      cbList[index].append("<td align=\"right\">");
      if(pwi != null) {
        cbList[index].append(pwi.getCountError());
      }
      cbList[index].append("</td>");
      // Dispatch
      index++; // jp.22
      switch(dType) {
      case Job:
        cbList[index].append("<td align=\"right\">");
        if(pwi != null) {
          if(job.isCompleted()) {
            cbList[index].append("0");
          }
          else {
            cbList[index].append(pwi.getCountDispatch());
          }
        }
        cbList[index].append("</td>");
        break;
      default:
        break;
      }
      // Retry
      index++; // jp.23
      cbList[index].append("<td align=\"right\">");
      if(pwi != null) {
        cbList[index].append(pwi.getCountRetry());
      }
      cbList[index].append("</td>");
      // Preempt
      index++; // jp.24
      cbList[index].append("<td align=\"right\">");
      if(pwi != null) {
        cbList[index].append(pwi.getCountPreempt());
      }
      cbList[index].append("</td>");
      break;
    }
    // Jconsole:Url
View Full Code Here

  }
   
  private static long getWiTimeAvg(IDuccWorkJob job, IDuccProcess process) {
    long retVal = 0;
    try {
      IDuccProcessWorkItems pwi = process.getProcessWorkItems();
      retVal = pwi.getSecsAvg();
    }
    catch(Exception e) {
    }
    return retVal;
  }
View Full Code Here

  }
 
  private static long getWiTimeMax(IDuccWorkJob job, IDuccProcess process) {
    long retVal = 0;
    try {
      IDuccProcessWorkItems pwi = process.getProcessWorkItems();
      retVal = pwi.getSecsMax();
    }
    catch(Exception e) {
    }
    return retVal;
  }
View Full Code Here

  }
 
  private static long getWiTimeMin(IDuccWorkJob job, IDuccProcess process) {
    long retVal = 0;
    try {
      IDuccProcessWorkItems pwi = process.getProcessWorkItems();
      retVal = pwi.getSecsMin();
    }
    catch(Exception e) {
    }
    return retVal;
  }
View Full Code Here

  }
 
  private static long getWiDone(IDuccWorkJob job, IDuccProcess process) {
    long retVal = 0;
    try {
      IDuccProcessWorkItems pwi = process.getProcessWorkItems();
      retVal = pwi.getCountDone();
    }
    catch(Exception e) {
    }
    return retVal;
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.transport.event.common.IDuccProcessWorkItems

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.