Examples of ClusterDisk


Examples of org.apache.hadoop.chukwa.rest.objects.ClusterDisk

    // get one object
    @GET
    @Path("timestamp/{timestamp}")
    @Produces({"application/xml","text/xml"})
    public String getByTimestampXML( @PathParam ("timestamp") String timestamp) {
  ClusterDisk model = ClusterDiskHome.find(timestamp);
  return convertToXml(model);
    }
View Full Code Here

Examples of org.apache.hadoop.chukwa.rest.objects.ClusterDisk

   
    @GET
    @Path("timestamp/{timestamp}")
    @Produces("application/json")
    public String getByTimestampJason( @PathParam ("timestamp") String timestamp) {
  ClusterDisk model = ClusterDiskHome.find(timestamp);
  return convertToJson(model);
    }
View Full Code Here

Examples of org.apache.hadoop.chukwa.rest.objects.ClusterDisk

   
    @GET
    @Path("timestamp/{timestamp}")
    @Produces({"text/plain","text/csv"})
    public String getByTimestampCsv( @PathParam ("timestamp") String timestamp) {
  ClusterDisk model = ClusterDiskHome.find(timestamp);
  return convertToCsv(model);
    }
View Full Code Here

Examples of org.apache.hadoop.chukwa.rest.objects.ClusterDisk

    @GET
    @Path("timestamp/{timestamp}/mount/{mount}")
    @Produces({"application/xml","text/xml"})
  public String getByTimestampMountXML( @PathParam ("timestamp") String timestamp,
           @PathParam ("mount") String mount ) {
  ClusterDisk model = ClusterDiskHome.find(timestamp, mount);
  return convertToXml(model);
    }
View Full Code Here

Examples of org.apache.hadoop.chukwa.rest.objects.ClusterDisk

    @GET
    @Path("timestamp/{timestamp}/mount/{mount}")
    @Produces("application/json")
  public String getByTimestampMountJason( @PathParam ("timestamp") String timestamp,
             @PathParam ("mount") String mount ) {
  ClusterDisk model = ClusterDiskHome.find(timestamp, mount);
  return convertToJson(model);
    }
View Full Code Here

Examples of org.apache.hadoop.chukwa.rest.objects.ClusterDisk

    @GET
    @Path("timestamp/{timestamp}/mount/{mount}")
    @Produces({"text/plain","text/csv"})
  public String getByTimestampMountCsv( @PathParam ("timestamp") String timestamp,
           @PathParam ("mount") String mount ) {
  ClusterDisk model = ClusterDiskHome.find(timestamp, mount);
  return convertToCsv(model);
    }
View Full Code Here

Examples of org.apache.hadoop.chukwa.rest.objects.ClusterDisk

    /*
     * convert from a result set record to an object
     */
    private static ClusterDisk createClusterDisk(ResultSet rs) {
  ClusterDisk obj = null;
  try {
      obj = new ClusterDisk(
          rs.getTimestamp("timestamp"),
          rs.getString("mount"),
          rs.getDouble("used"),
          rs.getDouble("available"),
          rs.getDouble("used_percent")
View Full Code Here

Examples of org.apache.hadoop.chukwa.rest.objects.ClusterDisk

      // get simple value
            try {
    String query = getSingleQuery(ClusterDiskHome.table,"timestamp",timestamp);
        ResultSet rs = dbw.query(query);
        if (rs.next()) {
        ClusterDisk obj = createClusterDisk(rs);
        return obj;
    }
      } catch (Exception e) {
    log.error("exception:"+e.toString());
      }
View Full Code Here

Examples of org.apache.hadoop.chukwa.rest.objects.ClusterDisk

    criteriaMap.put("mount",mount);

    String query = getCriteriaQuery(ClusterDiskHome.table,criteriaMap);
        ResultSet rs = dbw.query(query);
        if (rs.next()) {
        ClusterDisk obj = createClusterDisk(rs);
        return obj;
    }
      } catch (Exception e) {
    log.error("exception:"+e.toString());
      }
View Full Code Here

Examples of org.apache.hadoop.chukwa.rest.objects.ClusterDisk

  try {
      String query = getTimeBetweenQuery(ClusterDiskHome.table,starttime,endtime);     
      ResultSet rs = dbw.query(query);
      while (rs.next()) {
    ClusterDisk obj = createClusterDisk(rs);
    collection.add(obj);
      }
  } catch (Exception e) {
      log.error("exception:"+e.toString());
  }
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.