Package org.apache.ambari.eventdb.model

Examples of org.apache.ambari.eventdb.model.TaskAttempt


      times[1] = times[0];
    return times;
  }
 
  private static TaskAttempt getTaskAttempt(ResultSet rs) throws SQLException {
    TaskAttempt t = new TaskAttempt();
    t.setFinishTime(TaskAttemptFields.FINISHTIME.getLong(rs));
    t.setInputBytes(TaskAttemptFields.INPUTBYTES.getLong(rs));
    t.setJobId(TaskAttemptFields.JOBID.getString(rs));
    t.setLocality(TaskAttemptFields.LOCALITY.getString(rs));
    t.setMapFinishTime(TaskAttemptFields.MAPFINISHTIME.getLong(rs));
    t.setOutputBytes(TaskAttemptFields.OUTPUTBYTES.getLong(rs));
    t.setShuffleFinishTime(TaskAttemptFields.SHUFFLEFINISHTIME.getLong(rs));
    t.setSortFinishTime(TaskAttemptFields.SORTFINISHTIME.getLong(rs));
    t.setStartTime(TaskAttemptFields.STARTTIME.getLong(rs));
    t.setStatus(TaskAttemptFields.STATUS.getString(rs));
    t.setTaskAttemptId(TaskAttemptFields.TASKATTEMPTID.getString(rs));
    t.setTaskType(TaskAttemptFields.TASKTYPE.getString(rs));
    return t;
  }
View Full Code Here


    try {
      ps.setString(1, jobID);
      ps.setString(2, taskType);
      rs = ps.executeQuery();
      while (rs.next()) {
        TaskAttempt t = new TaskAttempt();
        t.setFinishTime(TaskAttemptFields.FINISHTIME.getLong(rs));
        t.setInputBytes(TaskAttemptFields.INPUTBYTES.getLong(rs));
        t.setLocality(TaskAttemptFields.LOCALITY.getString(rs));
        t.setMapFinishTime(TaskAttemptFields.MAPFINISHTIME.getLong(rs));
        t.setOutputBytes(TaskAttemptFields.OUTPUTBYTES.getLong(rs));
        t.setShuffleFinishTime(TaskAttemptFields.SHUFFLEFINISHTIME.getLong(rs));
        t.setSortFinishTime(TaskAttemptFields.SORTFINISHTIME.getLong(rs));
        t.setStartTime(TaskAttemptFields.STARTTIME.getLong(rs));
        t.setStatus(TaskAttemptFields.STATUS.getString(rs));
        t.setTaskAttemptId(TaskAttemptFields.TASKATTEMPTID.getString(rs));
        t.setTaskType(TaskAttemptFields.TASKTYPE.getString(rs));
        taskAttempts.add(t);
      }
      rs.close();
    } catch (SQLException e) {
      throw new IOException(e);
View Full Code Here

    try {
      ps.setString(1, jobID);
      ps.setString(2, taskType);
      rs = ps.executeQuery();
      while (rs.next()) {
        TaskAttempt t = new TaskAttempt();
        t.setFinishTime(TaskAttemptFields.FINISHTIME.getLong(rs));
        t.setInputBytes(TaskAttemptFields.INPUTBYTES.getLong(rs));
        t.setLocality(TaskAttemptFields.LOCALITY.getString(rs));
        t.setMapFinishTime(TaskAttemptFields.MAPFINISHTIME.getLong(rs));
        t.setOutputBytes(TaskAttemptFields.OUTPUTBYTES.getLong(rs));
        t.setShuffleFinishTime(TaskAttemptFields.SHUFFLEFINISHTIME.getLong(rs));
        t.setSortFinishTime(TaskAttemptFields.SORTFINISHTIME.getLong(rs));
        t.setStartTime(TaskAttemptFields.STARTTIME.getLong(rs));
        t.setStatus(TaskAttemptFields.STATUS.getString(rs));
        t.setTaskAttemptId(TaskAttemptFields.TASKATTEMPTID.getString(rs));
        t.setTaskType(TaskAttemptFields.TASKTYPE.getString(rs));
        taskAttempts.add(t);
      }
      rs.close();
    } catch (SQLException e) {
      throw new IOException(e);
View Full Code Here

      times[1] = times[0];
    return times;
  }
 
  private static TaskAttempt getTaskAttempt(ResultSet rs) throws SQLException {
    TaskAttempt t = new TaskAttempt();
    t.setFinishTime(TaskAttemptFields.FINISHTIME.getLong(rs));
    t.setInputBytes(TaskAttemptFields.INPUTBYTES.getLong(rs));
    t.setJobId(TaskAttemptFields.JOBID.getString(rs));
    t.setLocality(TaskAttemptFields.LOCALITY.getString(rs));
    t.setMapFinishTime(TaskAttemptFields.MAPFINISHTIME.getLong(rs));
    t.setOutputBytes(TaskAttemptFields.OUTPUTBYTES.getLong(rs));
    t.setShuffleFinishTime(TaskAttemptFields.SHUFFLEFINISHTIME.getLong(rs));
    t.setSortFinishTime(TaskAttemptFields.SORTFINISHTIME.getLong(rs));
    t.setStartTime(TaskAttemptFields.STARTTIME.getLong(rs));
    t.setStatus(TaskAttemptFields.STATUS.getString(rs));
    t.setTaskAttemptId(TaskAttemptFields.TASKATTEMPTID.getString(rs));
    t.setTaskType(TaskAttemptFields.TASKTYPE.getString(rs));
    return t;
  }
View Full Code Here

TOP

Related Classes of org.apache.ambari.eventdb.model.TaskAttempt

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.