@InterfaceAudience.Private public final class Canary extends Object implements org.apache.hadoop.util.Tool
| Modifier and Type | Class and Description |
|---|---|
static class |
Canary.Monitor |
static class |
Canary.RegionServerStdOutSink |
static class |
Canary.RegionStdOutSink |
static interface |
Canary.Sink |
static class |
Canary.StdOutSink |
static class |
Canary.ZookeeperStdOutSink |
| Modifier and Type | Field and Description |
|---|---|
static TableName |
DEFAULT_WRITE_TABLE_NAME |
| Constructor and Description |
|---|
Canary() |
Canary(ExecutorService executor,
Canary.Sink sink) |
| Modifier and Type | Method and Description |
|---|---|
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, Canary.Sink sink)
public org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic int run(String[] args) throws Exception
run in interface org.apache.hadoop.util.ToolExceptionpublic Canary.Monitor newMonitor(Connection connection, int index, String[] args)
Canary.Monitor.
Can be overridden by user.index - a start index for monitor targetargs - args passed from userCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.