@InterfaceAudience.Private public final class Canary extends Object implements org.apache.hadoop.util.Tool
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Canary.Monitor
A Monitor super-class can be extended by users
|
static class |
Canary.RegionServerStdOutSink
By RegionServer, for 'regionserver' mode.
|
static class |
Canary.RegionStdOutSink
By Region, for 'region' mode.
|
static interface |
Canary.Sink
Sink interface used by the canary to output information
|
static class |
Canary.StdOutSink
Simple implementation of canary sink that allows plotting to a file or standard output.
|
static class |
Canary.ZookeeperStdOutSink
Output for 'zookeeper' mode.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static TableName |
DEFAULT_WRITE_TABLE_NAME |
| 构造器和说明 |
|---|
Canary() |
Canary(ExecutorService executor) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
Map<String,String> |
getReadFailures() |
Map<String,String> |
getWriteFailures() |
static void |
main(String[] args) |
Canary.Monitor |
newMonitor(Connection connection,
int index,
String[] args)
A Factory method for
Canary.Monitor. |
int |
run(String[] args) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
public static final TableName DEFAULT_WRITE_TABLE_NAME
public Canary()
public Canary(ExecutorService executor)
public org.apache.hadoop.conf.Configuration getConf()
getConf 在接口中 org.apache.hadoop.conf.Configurablepublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf 在接口中 org.apache.hadoop.conf.Configurablepublic int run(String[] args) throws Exception
run 在接口中 org.apache.hadoop.util.ToolExceptionpublic Canary.Monitor newMonitor(Connection connection, int index, String[] args)
Canary.Monitor.
Makes a RegionServerMonitor, or a ZooKeeperMonitor, or a RegionMonitor.index - a start index for monitor targetargs - args passed from userCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.