Package org.apache.hadoop.hbase.tool
Interface Canary
- All Known Implementing Classes:
CanaryTool
-
Method Summary
Modifier and TypeMethodDescriptionintcheckRegions(String[] targets) Run Canary in Region mode.intcheckRegionServers(String[] targets) Runs Canary in Region server mode.intRuns Canary in Zookeeper mode.static Canarycreate(org.apache.hadoop.conf.Configuration conf, ExecutorService executor) static Canarycreate(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
-