Class RegionVisualizer
java.lang.Object
org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.master.http.RegionVisualizer
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.util.Tool
Support class for the "Region Visualizer" rendered out of
src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RegionVisualizerTmpl.jamon
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final class
static final class
POJO carrying detailed information about a region for use in visualizations.private static final class
"Flatten" the serialized representation of aRegionVisualizer.RegionDetails
.private static final class
Simplify representation of aSize
instance by converting to bytes.Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
AbstractHBaseTool.OptionsOrderComparator
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Admin
private final AsyncAdmin
private final org.apache.hbase.thirdparty.com.google.gson.Gson
private static final org.slf4j.Logger
Fields inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Override this to add command-line options usingAbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)
and similar methods.(package private) static org.apache.hbase.thirdparty.com.google.gson.Gson
private List<RegionVisualizer.RegionDetails>
protected int
doWork()
The "main function" of the toolprivate ClusterMetrics
static void
protected void
processOptions
(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) This method is called to process the options after they have been parsed.Methods inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
-
Field Details
-
LOG
-
admin
-
asyncAdmin
-
gson
-
-
Constructor Details
-
RegionVisualizer
public RegionVisualizer() -
RegionVisualizer
-
RegionVisualizer
-
-
Method Details
-
renderRegionDetails
-
main
-
buildGson
-
getClusterMetrics
private ClusterMetrics getClusterMetrics() throws ExecutionException, InterruptedException, IOException -
clusterStatusToRegionDetails
-
addOptions
Description copied from class:AbstractHBaseTool
Override this to add command-line options usingAbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)
and similar methods.- Specified by:
addOptions
in classAbstractHBaseTool
-
processOptions
Description copied from class:AbstractHBaseTool
This method is called to process the options after they have been parsed.- Specified by:
processOptions
in classAbstractHBaseTool
-
doWork
Description copied from class:AbstractHBaseTool
The "main function" of the tool- Specified by:
doWork
in classAbstractHBaseTool
- Throws:
Exception
-