Package org.apache.hadoop.hbase.tool
Class CanaryTool.Monitor
java.lang.Object
org.apache.hadoop.hbase.tool.CanaryTool.Monitor
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Runnable
- Direct Known Subclasses:
CanaryTool.RegionMonitor
,CanaryTool.RegionServerMonitor
,CanaryTool.ZookeeperMonitor
- Enclosing class:
- CanaryTool
A Monitor super-class can be extended by users
-
Field Summary
Modifier and TypeFieldDescriptionprotected Admin
protected long
protected Connection
protected boolean
protected int
protected ExecutorService
protected boolean
protected CanaryTool.Sink
protected String[]
'Target' dependent on 'mode'.protected boolean
protected boolean
-
Constructor Summary
ModifierConstructorDescriptionprotected
Monitor
(Connection connection, String[] monitorTargets, boolean useRegExp, CanaryTool.Sink sink, ExecutorService executor, boolean treatFailureAsError, long allowedFailures) -
Method Summary
-
Field Details
-
connection
-
admin
-
targets
'Target' dependent on 'mode'. Could be Tables or RegionServers or ZNodes. Passed on the command-line as arguments. -
useRegExp
-
treatFailureAsError
-
initialized
-
done
-
errorCode
-
allowedFailures
-
sink
-
executor
-
-
Constructor Details
-
Monitor
protected Monitor(Connection connection, String[] monitorTargets, boolean useRegExp, CanaryTool.Sink sink, ExecutorService executor, boolean treatFailureAsError, long allowedFailures)
-
-
Method Details
-
isDone
-
hasError
-
finalCheckForErrors
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
run
-
initAdmin
-