Package org.worldbank.transport.tamt.shared

Examples of org.worldbank.transport.tamt.shared.AssignStatus


      String matched = req.getParameter("m");
      String processed = req.getParameter("p");
      String completed = req.getParameter("c");
     
     
      AssignStatus status = new AssignStatus();
      status.setGpsTraceId(gpsTraceId);
      status.setPointsMatched(Integer.parseInt(matched));
      status.setPointsProcessed(Integer.parseInt(processed));
      status.setLastUpdated(new Date());
     
      if( completed.equalsIgnoreCase("true"))
      {
        status.setComplete(true);
      }
      logger.debug("AssignStatusHandler status from parameters=" + status);
     
      try {
        api.updateAssignStatus(status);
View Full Code Here


     
      /*
       * Before we do the assign points, let's record the initial
       * status of the assignment process in the database
       */
      AssignStatus status = new AssignStatus();
      status.setGpsTraceId(gpsTrace.getId());
     
      // fetch the updated trace, including the record count
      gpsTrace = getGPSTrace(gpsTrace);
      logger.debug("record count in trace prior to insertAssignStatus=" + gpsTrace.getRecordCount());
     
      //assignStatusBO.insertAssignStatus(status);
      /*
       * Add a new date, get the record count from the GPS trace
       * (matched, processed all came from http get from handler)
       */
      status.setLastUpdated(new Date());
      status.setPointsTotal(gpsTrace.getRecordCount());
      status.setPointsMatched(0);
      status.setPointsProcessed(0);
     
      assignStatusDAO.insertAssignStatus(status);
     
      /*
       * With the status table updated to signal the start
View Full Code Here

      return;
    }
   
    // ok, we have one and only one, so let's kick off the assignment process
    String gpsTraceId = gpsTraceIds.get(0);
    AssignStatus status = new AssignStatus();
    status.setGpsTraceId(gpsTraceId);
   
    // get the name from the hash
    String name = gpsTraceNames.get(gpsTraceId);
    status.setGpsTraceName(name);
   
    GWT.log("assignTagToPoints for:" + status);
   
    GWT.log("EVENT: fire MatchingPointsBusyEvent");
    eventBus.fireEvent(new MatchingPointsBusyEvent());
View Full Code Here

        // processing was started but not completed)
        boolean completed = r.getBoolean(6);
        logger.debug("completed=" + completed);
        if( !completed )
        {
          AssignStatus status = new AssignStatus();
          status.setGpsTraceId(r.getString(1));
          status.setPointsTotal(2);
          status.setPointsProcessed(3);
          status.setPointsMatched(4);
          status.setLastUpdated( r.getDate(5));
          status.setComplete(r.getBoolean(6));
          status.setGpsTraceName(r.getString(7));
          return status;
        }
      }
      connection.close(); // returns connection to pool
     
View Full Code Here

      boolean r = s.execute(sql);
      logger.debug("result of insert=" + r);
      connection.close(); // returns connection to pool
     
      // for debug only
      AssignStatus fetchedStatus = getAssignStatus(status);
      logger.debug("IMMEDIATE READ AFTER WRITE FOR INSERT status=" + fetchedStatus);
     
    } catch (SQLException e)
    {
      logger.error("Could not insert assign status: " + e.getMessage());
View Full Code Here

      int r = s.executeUpdate(sql);
      logger.debug("result of update=" + r);
      connection.close(); // returns connection to pool
     
      // for debug only
      AssignStatus fetchedStatus = getAssignStatus(status);
      logger.debug("IMMEDIATE READ AFTER WRITE FOR UPDATE status=" + fetchedStatus);
     
    } catch (SQLException e)
    {
      logger.error("Could not update assign status: " + e.getMessage());
View Full Code Here

TOP

Related Classes of org.worldbank.transport.tamt.shared.AssignStatus

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.