public class ChukwaHBaseStore extends Object
Constructor and Description |
---|
ChukwaHBaseStore() |
Modifier and Type | Method and Description |
---|---|
static void |
closeHBase() |
static String |
createChart(Chart chart)
Create a chart in HBase.
|
static String |
createChart(String id,
String title,
String[] metrics,
String source,
String yunitType)
Create a chart in HBase by specifying parameters.
|
static String |
createCircle(String id,
String title,
String[] metrics,
String source,
String suffixLabel,
String direction)
Create a chart in HBase by specifying parameters.
|
static String |
createTile(String id,
String title,
String bannerText,
String suffixLabel,
String[] metrics,
String source,
String icon)
Create a tile in HBase by specifying parameters.
|
static boolean |
createWidget(Widget widget)
Create a widget in HBase.
|
static boolean |
deleteWidget(String title)
Delete a widget in HBase.
|
static Chart |
getChart(String id)
Get a chart from HBase by ID.
|
static ArrayList<SeriesMetaData> |
getChartSeries(ArrayList<SeriesMetaData> series,
long startTime,
long endTime)
Return data for multiple series of metrics stored in HBase.
|
static Set<String> |
getClusterNames(long startTime,
long endTime)
Scan chukwa table and find cluster tag from annotation column family from a
range of entries.
|
static Dashboard |
getDashboard(String id,
String user) |
static List<String> |
getData(ArrayList<SeriesMetaData> series,
long startTime,
long endTime) |
static void |
getHBaseConnection() |
static Heatmap |
getHeatmap(String metricGroup,
String metric,
long startTime,
long endTime,
double max,
double scale,
int width,
int height) |
static Set<String> |
getMetricGroups() |
static Set<String> |
getMetricNames(String metricGroup) |
static Series |
getSeries(String metric,
String source,
long startTime,
long endTime)
Scan chukwa table for a full metric name based on time ranges.
|
static Series |
getSeries(String metricGroup,
String metric,
String source,
long startTime,
long endTime)
Scan chukwa table for a particular metric group and metric name based on
time ranges.
|
static Set<String> |
getSourceNames(String dataType) |
static boolean |
isDefaultExists() |
static List<Widget> |
listWidget(int limit,
int offset)
List widgets stored in HBase.
|
static void |
populateDefaults() |
static void |
putChart(String id,
Chart chart)
Update a chart in HBase by ID.
|
static List<Widget> |
searchWidget(String query)
Find widget by title prefix in HBase.
|
static boolean |
updateDashboard(String id,
String user,
Dashboard dash) |
static boolean |
updateWidget(String title,
Widget widget)
Update a widget in HBase.
|
static Widget |
viewWidget(String title)
View a widget information in HBase.
|
public static void getHBaseConnection() throws IOException
IOException
public static void closeHBase()
public static Series getSeries(String metricGroup, String metric, String source, long startTime, long endTime)
metricGroup
- metric
- source
- startTime
- endTime
- public static Series getSeries(String metric, String source, long startTime, long endTime)
metric
- source
- startTime
- endTime
- public static Heatmap getHeatmap(String metricGroup, String metric, long startTime, long endTime, double max, double scale, int width, int height)
public static Set<String> getClusterNames(long startTime, long endTime)
startTime
- endTime
- public static Chart getChart(String id)
id
- public static void putChart(String id, Chart chart)
id
- chart
- public static String createChart(String id, String title, String[] metrics, String source, String yunitType) throws URISyntaxException
id
- title
- metrics
- source
- yunitType
- URISyntaxException
public static String createCircle(String id, String title, String[] metrics, String source, String suffixLabel, String direction) throws URISyntaxException
id
- title
- metrics
- source
- suffixLabel
- direction
- URISyntaxException
public static String createTile(String id, String title, String bannerText, String suffixLabel, String[] metrics, String source, String icon) throws URISyntaxException
id
- title
- bannerText
- suffixLabel
- metrics
- source
- icon
- URISyntaxException
public static String createChart(Chart chart)
chart
- public static ArrayList<SeriesMetaData> getChartSeries(ArrayList<SeriesMetaData> series, long startTime, long endTime)
series
- startTime
- endTime
- public static List<Widget> listWidget(int limit, int offset)
limit
- offset
- public static List<String> getData(ArrayList<SeriesMetaData> series, long startTime, long endTime)
public static List<Widget> searchWidget(String query)
query
- - Prefix query of widget title.public static Widget viewWidget(String title)
title
- - Title of the widget.public static boolean createWidget(Widget widget)
widget
- public static boolean updateWidget(String title, Widget widget)
title
- widget
- public static boolean deleteWidget(String title)
title
- public static boolean isDefaultExists()
public static void populateDefaults()
Copyright © 2015 Apache Software Foundation. All Rights Reserved.