@InterfaceAudience.Private public class RegionVisualizer extends AbstractHBaseTool
src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RegionVisualizerTmpl.jamon
Modifier and Type | Class and Description |
---|---|
private static class |
RegionVisualizer.ByteArraySerializer |
static class |
RegionVisualizer.RegionDetails
POJO carrying detailed information about a region for use in visualizations.
|
private static class |
RegionVisualizer.RegionDetailsSerializer
"Flatten" the serialized representation of a
RegionVisualizer.RegionDetails . |
private static class |
RegionVisualizer.SizeAsBytesSerializer
Simplify representation of a
Size instance by converting to bytes. |
AbstractHBaseTool.OptionsOrderComparator
Modifier and Type | Field and Description |
---|---|
private Admin |
admin |
private AsyncAdmin |
asyncAdmin |
private org.apache.hbase.thirdparty.com.google.gson.Gson |
gson |
private static org.slf4j.Logger |
LOG |
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION
Constructor and Description |
---|
RegionVisualizer() |
RegionVisualizer(Admin admin) |
RegionVisualizer(AsyncAdmin asyncAdmin) |
Modifier and Type | Method and Description |
---|---|
protected void |
addOptions()
Override this to add command-line options using
AbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String) and similar methods. |
(package private) static org.apache.hbase.thirdparty.com.google.gson.Gson |
buildGson() |
private List<RegionVisualizer.RegionDetails> |
clusterStatusToRegionDetails() |
protected int |
doWork()
The "main function" of the tool
|
private ClusterMetrics |
getClusterMetrics() |
static void |
main(String[] argv) |
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.
|
String |
renderRegionDetails() |
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
private static final org.slf4j.Logger LOG
private final AsyncAdmin asyncAdmin
private final org.apache.hbase.thirdparty.com.google.gson.Gson gson
public RegionVisualizer()
public RegionVisualizer(Admin admin)
public RegionVisualizer(AsyncAdmin asyncAdmin)
public String renderRegionDetails()
static org.apache.hbase.thirdparty.com.google.gson.Gson buildGson()
private ClusterMetrics getClusterMetrics() throws ExecutionException, InterruptedException, IOException
private List<RegionVisualizer.RegionDetails> clusterStatusToRegionDetails()
protected void addOptions()
AbstractHBaseTool
AbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)
and similar methods.addOptions
in class AbstractHBaseTool
protected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
AbstractHBaseTool
processOptions
in class AbstractHBaseTool
protected int doWork() throws Exception
AbstractHBaseTool
doWork
in class AbstractHBaseTool
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.