org.apache.hadoop.hbase.tool
Class Canary.Monitor

java.lang.Object
  extended by 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


Field Summary
protected  HBaseAdmin admin
           
protected  HConnection connection
           
protected  boolean done
           
protected  int errorCode
           
protected  ExecutorService executor
           
protected  boolean initialized
           
protected  Canary.Sink sink
           
protected  String[] targets
           
protected  boolean useRegExp
           
 
Constructor Summary
protected Canary.Monitor(HConnection connection, String[] monitorTargets, boolean useRegExp, Canary.Sink sink, ExecutorService executor)
           
 
Method Summary
 void close()
           
 boolean hasError()
           
protected  boolean initAdmin()
           
 boolean isDone()
           
abstract  void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

protected HConnection connection

admin

protected HBaseAdmin admin

targets

protected String[] targets

useRegExp

protected boolean useRegExp

initialized

protected boolean initialized

done

protected boolean done

errorCode

protected int errorCode

sink

protected Canary.Sink sink

executor

protected ExecutorService executor
Constructor Detail

Canary.Monitor

protected Canary.Monitor(HConnection connection,
                         String[] monitorTargets,
                         boolean useRegExp,
                         Canary.Sink sink,
                         ExecutorService executor)
Method Detail

isDone

public boolean isDone()

hasError

public boolean hasError()

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–2015 The Apache Software Foundation. All rights reserved.