/*
* find by key
*/
public static DfsThroughput find(String timestamp, String host) {
String cluster = getCluster();
DatabaseWriter dbw = new DatabaseWriter(cluster);
if (timestamp != null) {
// get simple value
try {
Map<String, String> criteriaMap = new HashMap<String,String>();
criteriaMap.put("timestamp",convertLongToDateString(Long.parseLong(timestamp)));
criteriaMap.put("host",host);
String query = getCriteriaQuery(DfsThroughputHome.table,criteriaMap);
ResultSet rs = dbw.query(query);
if (rs.next()) {
DfsThroughput obj = createDfsThroughput(rs);
return obj;
}
} catch (Exception e) {