Examples of DriverStatusReport


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

      casWorkItemMap = new ConcurrentHashMap<String,WorkItem>();
      //
      setJobid(job.getDuccId());
      setDuccWorkJob(job);
      setJdJmxUrl(jdJmxUrl);
      driverStatusReport = new DriverStatusReport(job.getDuccId(),getJdJmxUrl());
      driverStatusReport.setInitializing();
      duccOut.debug(location, jobid, "driverState:"+driverStatusReport.getDriverState());
      // Handle UIMA deployment descriptor
      String directory = job.getLogDirectory()+job.getDuccId();
      DeploymentDescriptorGenerator ddg = new DeploymentDescriptorGenerator("JD",duccOut,directory);
View Full Code Here

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

  private void missingCallbackReaper() {
    String location = "missingCallbackReaper";
    try {
      if(casSource.isEmpty()) {
        IDuccWorkJob job = getJob();
        DriverStatusReport driverStatusReport = getDriverStatusReportLive();
        long todo = driverStatusReport.getWorkItemsToDo();
        long capacity = job.getWorkItemCapacity();
        if(capacity > 0) {
          if(todo > 0) {
            if(capacity > todo) {
              duccOut.debug(location, jobid, "capacity:"+capacity+" "+"todo:"+todo);
View Full Code Here

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

      publicationCounter.addAndGet(1);
      try {
        duccOut.debug(methodName, null, duccMsg.fetch("publishing state"));
        if(thread != null) {
          thread.rectifyStatus();
          DriverStatusReport dsr = thread.getDriverStatusReportCopy();
          if(dsr == null) {
            duccOut.debug(methodName, null, duccMsg.fetch("dsr is null"));
          }
          else {
            duccOut.debug(methodName, null, "driverState:"+dsr.getDriverState());
            duccOut.debug(methodName, dsr.getDuccId(), dsr.getLogReport());
            jdStateDuccEvent.setState(dsr);
          }
          publisher();
        }
        else {
View Full Code Here

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

   * Job Driver State Reconciliation
   */
 
  public void reconcileJdState(JdStateDuccEvent duccEvent) {
    String methodName = "reconcileJdState";
    DriverStatusReport dsr = duccEvent.getState();
    DuccId duccId = null;
    if(dsr != null) {
      duccId = dsr.getDuccId();
    }
    logger.trace(methodName, null, messages.fetch("enter"));
    if(dsr != null) {
      logger.info(methodName, duccId, dsr.getLogReport());
      stateManager.reconcileState(dsr);
    }
    logger.trace(methodName, null, messages.fetch("exit"));
  }
View Full Code Here

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

  }
 
  private void processReceive(Exchange exchange, JdStateDuccEvent duccEvent) {
    String exchId = exchange.getExchangeId();
    String event = duccEvent.getClass().getSimpleName();
    DriverStatusReport dsr = duccEvent.getState();
    if(dsr == null) {
      String details = "dsr:"+dsr;
      log(exchange, defaultLogType, exchId, event, details);
      timex(exchange, exchId, event);
    }
    else {
      String id = dsr.getId();
      DriverState driverState = dsr.getDriverState();
      if(driverState != null) {
        String state = dsr.getDriverState().toString();
        int threadCount = dsr.getThreadCount();
        int wiFetch = dsr.getWorkItemsFetched();
        int wiCompleted = dsr.getWorkItemsProcessingCompleted();
        int wiError = dsr.getWorkItemsProcessingError();
        String details = "id:"+id+" "+"state:"+state+" "+"threads:"+threadCount+" "+"wi.fecth:"+wiFetch+" "+"wi.completed:"+wiCompleted+" "+"wi.error:"+wiError;
        log(exchange, defaultLogType, exchId, event, details);
        timex(exchange, exchId, event);
      }
      else {
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.