public final class Canary extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Canary.ExtendedSink |
static class |
Canary.Monitor |
static class |
Canary.RegionServerStdOutSink |
static interface |
Canary.Sink |
static class |
Canary.StdOutSink |
Constructor and Description |
---|
Canary() |
Canary(Canary.Sink sink) |
Modifier and Type | Method and Description |
---|---|
Configuration |
getConf() |
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(Configuration conf) |
static void |
sniff(Admin admin,
TableName tableName)
Canary entry point for specified table.
|
public Canary()
public Canary(Canary.Sink sink)
public Configuration getConf()
public void setConf(Configuration conf)
public 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 userpublic static void sniff(Admin admin, TableName tableName) throws Exception
Exception