Package org.apache.hadoop.hbase.tool
Class CanaryTool.RegionServerMonitor
java.lang.Object
org.apache.hadoop.hbase.tool.CanaryTool.Monitor
org.apache.hadoop.hbase.tool.CanaryTool.RegionServerMonitor
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Runnable
- Enclosing class:
- CanaryTool
A monitor for regionserver mode
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.tool.CanaryTool.Monitor
admin, allowedFailures, connection, done, errorCode, executor, initialized, sink, targets, treatFailureAsError, useRegExp
-
Constructor Summary
ConstructorDescriptionRegionServerMonitor
(Connection connection, String[] monitorTargets, boolean useRegExp, CanaryTool.Sink sink, ExecutorService executor, boolean allRegions, boolean treatFailureAsError, long allowedFailures) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
private Map<String,
List<RegionInfo>> doFilterRegionServerByName
(Map<String, List<RegionInfo>> fullRsAndRMap) private Map<String,
List<RegionInfo>> private Map<String,
List<RegionInfo>> getSink()
private void
monitorRegionServers
(Map<String, List<RegionInfo>> rsAndRMap, CanaryTool.RegionServerStdOutSink regionServerSink) void
run()
Methods inherited from class org.apache.hadoop.hbase.tool.CanaryTool.Monitor
close, finalCheckForErrors, hasError, initAdmin, isDone
-
Field Details
-
rawScanEnabled
-
allRegions
-
-
Constructor Details
-
RegionServerMonitor
public RegionServerMonitor(Connection connection, String[] monitorTargets, boolean useRegExp, CanaryTool.Sink sink, ExecutorService executor, boolean allRegions, boolean treatFailureAsError, long allowedFailures)
-
-
Method Details
-
getSink
-
run
- Specified by:
run
in interfaceRunnable
- Specified by:
run
in classCanaryTool.Monitor
-
checkNoTableNames
-
monitorRegionServers
private void monitorRegionServers(Map<String, List<RegionInfo>> rsAndRMap, CanaryTool.RegionServerStdOutSink regionServerSink) -
filterRegionServerByName
-
getAllRegionServerByName
-
doFilterRegionServerByName
private Map<String,List<RegionInfo>> doFilterRegionServerByName(Map<String, List<RegionInfo>> fullRsAndRMap)
-