public class Heatmap extends Object
Constructor and Description |
---|
Heatmap() |
Heatmap(javax.servlet.http.HttpServletRequest request) |
Heatmap(String timezone,
String cluster,
String event_type,
String query_stat_type,
HashMap<String,String> valmap)
Constructor for Swimlanes visualization object
|
Heatmap(String timezone,
String cluster,
String query_state,
String query_stat_type,
HashMap<String,String> valmap,
int w,
int h) |
Heatmap(String timezone,
String cluster,
String query_state,
String query_stat_type,
HashMap<String,String> valmap,
String shuffles) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.chukwa.analysis.salsa.visualization.Heatmap.HeatmapData |
getData()
Interfaces with database to get data and
populate data structures for rendering
|
boolean |
getImage(OutputStream output,
String img_fmt,
double scale)
Generates image in specified format, and writes image as binary
output to supplied output stream
|
void |
run()
Actual code that calls data, generates heatmap, and saves it
|
void |
setDimensions(int width,
int height)
Set dimensions of image to be generated
Call before calling @see #run
|
void |
setLegend(boolean legendopt)
Specify whether to print labels of hosts along axes
Call before calling @see #run
|
public Heatmap()
public Heatmap(String timezone, String cluster, String event_type, String query_stat_type, HashMap<String,String> valmap)
timezone
- Timezone string from environmentcluster
- Cluster name from environmentevent_type
- Whether to display shuffles or notquery_stat_type
- Query state typevalmap
- HashMap of key/value pairs simulating parameters from a HttpRequestpublic Heatmap(String timezone, String cluster, String query_state, String query_stat_type, HashMap<String,String> valmap, String shuffles)
public Heatmap(String timezone, String cluster, String query_state, String query_stat_type, HashMap<String,String> valmap, int w, int h)
public Heatmap(javax.servlet.http.HttpServletRequest request)
public void setDimensions(int width, int height)
width
- Image width in pixelsheight
- Image height in pixelspublic void setLegend(boolean legendopt)
legendopt
- Flag to control plot legendspublic boolean getImage(OutputStream output, String img_fmt, double scale)
output
- Image output streamimg_fmt
- Image formatscale
- Image scalepublic void run()
public org.apache.hadoop.chukwa.analysis.salsa.visualization.Heatmap.HeatmapData getData()
Copyright © 2016 Apache Software Foundation. All Rights Reserved.