| 限定符和类型 | 字段和说明 |
|---|---|
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 |
| 限定符 | 构造器和说明 |
|---|---|
protected |
Monitor(Connection connection,
String[] monitorTargets,
boolean useRegExp,
Canary.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 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 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionprotected boolean initAdmin()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.