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/resources/hbase-webapps/master/regionVisualizer.jsp-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classstatic final classPOJO carrying detailed information about a region for use in visualizations.private static final class"Flatten" the serialized representation of aRegionVisualizer.RegionDetails.private static final classSimplify representation of aSizeinstance by converting to bytes.Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
AbstractHBaseTool.OptionsOrderComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Adminprivate final AsyncAdminprivate final org.apache.hbase.thirdparty.com.google.gson.Gsonprivate static final org.slf4j.LoggerFields inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidOverride 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.Gsonprivate List<RegionVisualizer.RegionDetails>protected intdoWork()The "main function" of the toolprivate ClusterMetricsstatic voidprotected voidprocessOptions(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:AbstractHBaseToolOverride this to add command-line options usingAbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)and similar methods.- Specified by:
addOptionsin classAbstractHBaseTool
-
processOptions
Description copied from class:AbstractHBaseToolThis method is called to process the options after they have been parsed.- Specified by:
processOptionsin classAbstractHBaseTool
-
doWork
Description copied from class:AbstractHBaseToolThe "main function" of the tool- Specified by:
doWorkin classAbstractHBaseTool- Throws:
Exception
-