public abstract static class CanaryTool.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 CanaryTool.Sink |
sink |
protected String[] |
targets
'Target' dependent on 'mode'.
|
protected boolean |
treatFailureAsError |
protected boolean |
useRegExp |
Modifier | Constructor and Description |
---|---|
protected |
CanaryTool.Monitor(Connection connection,
String[] monitorTargets,
boolean useRegExp,
CanaryTool.Sink sink,
ExecutorService executor,
boolean treatFailureAsError,
long allowedFailures) |
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 long allowedFailures
protected CanaryTool.Sink sink
protected ExecutorService executor
protected CanaryTool.Monitor(Connection connection, String[] monitorTargets, boolean useRegExp, CanaryTool.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.