Package org.apache.hadoop.hbase.tool
Interface Canary
- All Known Implementing Classes:
CanaryTool
-
Method Summary
Modifier and TypeMethodDescriptionint
checkRegions
(String[] targets) Run Canary in Region mode.int
checkRegionServers
(String[] targets) Runs Canary in Region server mode.int
Runs Canary in Zookeeper mode.static Canary
create
(org.apache.hadoop.conf.Configuration conf, ExecutorService executor) static Canary
create
(org.apache.hadoop.conf.Configuration conf, ExecutorService executor, CanaryTool.Sink sink)
-
Method Details
-
create
-
create
@Private static Canary create(org.apache.hadoop.conf.Configuration conf, ExecutorService executor, CanaryTool.Sink sink) -
checkRegions
Run Canary in Region mode.- Parameters:
targets
- -- list of monitor tables.- Returns:
- the exit code of the Canary tool.
- Throws:
Exception
-
checkRegionServers
Runs Canary in Region server mode.- Parameters:
targets
- -- list of monitor tables.- Returns:
- the exit code of the Canary tool.
- Throws:
Exception
-
checkZooKeeper
Runs Canary in Zookeeper mode.- Returns:
- the exit code of the Canary tool.
- Throws:
Exception
-
getReadFailures
-
getWriteFailures
-