org.apache.hadoop.chukwa.rest.services
Class RestHome

java.lang.Object
  extended by org.apache.hadoop.chukwa.rest.services.RestHome
Direct Known Subclasses:
ClientTraceHome, ClusterDiskHome, ClusterHadoopRpcHome, ClusterSystemMetricsHome, DfsDataNodeHome, DfsFsNameSystemHome, DfsNameNodeHome, DfsThroughputHome, DiskHome, HadoopJvmHome, HadoopRpcHome, MrJobConfHome, MrJobHome, MrTaskHome, SystemMetricsHome

public class RestHome
extends Object


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
RestHome()
           
 
Method Summary
static long convertDateLongStringToLong(String d)
           
static String convertLongToDateString(long date)
           
static String getCluster()
           
static String getCriteriaQuery(String table, Map<String,String> criteria)
           
static String getSingleQuery(String table, String field, String timestamp)
           
static String getTimeBetweenQuery(String table, String starttime, String endtime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

RestHome

public RestHome()
Method Detail

getCluster

public static String getCluster()

convertLongToDateString

public static String convertLongToDateString(long date)

convertDateLongStringToLong

public static long convertDateLongStringToLong(String d)

getSingleQuery

public static String getSingleQuery(String table,
                                    String field,
                                    String timestamp)

getTimeBetweenQuery

public static String getTimeBetweenQuery(String table,
                                         String starttime,
                                         String endtime)

getCriteriaQuery

public static String getCriteriaQuery(String table,
                                      Map<String,String> criteria)


Copyright © ${year} The Apache Software Foundation