public abstract static class Canary.Monitor extends Object implements Runnable, Closeable
| Modifier and Type | Field and Description | 
|---|---|
protected Admin | 
admin  | 
protected Connection | 
connection  | 
protected boolean | 
done  | 
protected int | 
errorCode  | 
protected ExecutorService | 
executor  | 
protected boolean | 
initialized  | 
protected Canary.Sink | 
sink  | 
protected String[] | 
targets  | 
protected boolean | 
treatFailureAsError  | 
protected boolean | 
useRegExp  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
Canary.Monitor(Connection connection,
              String[] monitorTargets,
              boolean useRegExp,
              Canary.Sink sink,
              ExecutorService executor,
              boolean treatFailureAsError)  | 
protected Connection connection
protected Admin admin
protected String[] targets
protected boolean useRegExp
protected boolean treatFailureAsError
protected boolean initialized
protected boolean done
protected int errorCode
protected Canary.Sink sink
protected ExecutorService executor
protected Canary.Monitor(Connection connection, String[] monitorTargets, boolean useRegExp, Canary.Sink sink, ExecutorService executor, boolean treatFailureAsError)
public boolean isDone()
public boolean hasError()
public boolean finalCheckForErrors()
public void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected boolean initAdmin()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.