Package org.apache.hadoop.chukwa.hicc

Examples of org.apache.hadoop.chukwa.hicc.TimeHandler


      @QueryParam("height") @DefaultValue("400") int height) {
    SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
    Heatmap heatmap = null;
    long startTime = 0;
      long endTime = 0;
      TimeHandler time = new TimeHandler(request);
      try {
        if(start!=null) {
          startTime = sdf.parse(start).getTime();
        } else {
          startTime = time.getStartTime();
        }
        if(end!=null) {
          endTime = sdf.parse(end).getTime();
        } else {
          endTime = time.getEndTime();
        }
        heatmap = ChukwaHBaseStore.getHeatmap(table, family, column, startTime, endTime, max, scale, height);
      }catch(Throwable e) {
        log.error(ExceptionUtil.getStackTrace(e));
      }
View Full Code Here


   * populate data structures for rendering
   */
  public HeatmapData getData() {
    // preliminary setup
    OfflineTimeHandler time_offline;
    TimeHandler time_online;
    long start, end, min, max;
   
    if (offline_use) {
      time_offline = new OfflineTimeHandler(param_map, this.timezone);
      start = time_offline.getStartTime();
      end = time_offline.getEndTime();
    } else {
      time_online = new TimeHandler(this.request, this.timezone);
      start = time_online.getStartTime();
      end = time_online.getEndTime();
    }
   
    DatabaseWriter dbw = new DatabaseWriter(this.cluster);
   
    // setup query
View Full Code Here

  }
 
  public Table getData() {
    // preliminary setup
    OfflineTimeHandler time_offline;
    TimeHandler time_online;
    long start, end;
   
    if (offline_use) {
      time_offline = new OfflineTimeHandler(param_map, this.timezone);
      start = time_offline.getStartTime();
      end = time_offline.getEndTime();
    } else {
      time_online = new TimeHandler(this.request, this.timezone);
      start = time_online.getStartTime();
      end = time_online.getEndTime();
    }
   
    DatabaseWriter dbw = new DatabaseWriter(this.cluster);
    String query;
   
View Full Code Here

TOP

Related Classes of org.apache.hadoop.chukwa.hicc.TimeHandler

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.