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