org.apache.hadoop.hbase.tool
Class Canary.Monitor
java.lang.Object
org.apache.hadoop.hbase.tool.Canary.Monitor
- All Implemented Interfaces:
- Closeable, Runnable
- Enclosing class:
- Canary
public abstract static class Canary.Monitor
- extends Object
- implements Runnable, Closeable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connection
protected HConnection connection
admin
protected HBaseAdmin admin
targets
protected String[] targets
useRegExp
protected boolean useRegExp
treatFailureAsError
protected boolean treatFailureAsError
initialized
protected boolean initialized
done
protected boolean done
errorCode
protected int errorCode
sink
protected Canary.Sink sink
executor
protected ExecutorService executor
Canary.Monitor
protected Canary.Monitor(HConnection connection,
String[] monitorTargets,
boolean useRegExp,
Canary.Sink sink,
ExecutorService executor,
boolean treatFailureAsError)
isDone
public boolean isDone()
hasError
public boolean hasError()
finalCheckForErrors
public boolean finalCheckForErrors()
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Throws:
IOException
run
public abstract void run()
- Specified by:
run
in interface Runnable
initAdmin
protected boolean initAdmin()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.