Package org.apache.hadoop.hbase.tool
Class CanaryTool.StdOutSink
java.lang.Object
org.apache.hadoop.hbase.tool.CanaryTool.StdOutSink
- All Implemented Interfaces:
CanaryTool.Sink
- Direct Known Subclasses:
CanaryTool.RegionServerStdOutSink
,CanaryTool.RegionStdOutSink
,CanaryTool.ZookeeperStdOutSink
- Enclosing class:
- CanaryTool
Simple implementation of canary sink that allows plotting to a file or standard output.
-
Field Summary
Modifier and TypeFieldDescriptionprivate AtomicLong
private AtomicLong
private AtomicLong
private AtomicLong
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
long
long
long
long
long
void
updateReadFailures
(String regionName, String serverName) void
updateWriteFailures
(String regionName, String serverName)
-
Field Details
-
readFailureCount
-
writeFailureCount
-
readSuccessCount
-
writeSuccessCount
-
readFailures
-
writeFailures
-
-
Constructor Details
-
StdOutSink
public StdOutSink()
-
-
Method Details
-
getReadFailureCount
- Specified by:
getReadFailureCount
in interfaceCanaryTool.Sink
-
incReadFailureCount
- Specified by:
incReadFailureCount
in interfaceCanaryTool.Sink
-
getReadFailures
- Specified by:
getReadFailures
in interfaceCanaryTool.Sink
-
updateReadFailures
- Specified by:
updateReadFailures
in interfaceCanaryTool.Sink
-
getWriteFailureCount
- Specified by:
getWriteFailureCount
in interfaceCanaryTool.Sink
-
incWriteFailureCount
- Specified by:
incWriteFailureCount
in interfaceCanaryTool.Sink
-
getWriteFailures
- Specified by:
getWriteFailures
in interfaceCanaryTool.Sink
-
updateWriteFailures
- Specified by:
updateWriteFailures
in interfaceCanaryTool.Sink
-
getReadSuccessCount
- Specified by:
getReadSuccessCount
in interfaceCanaryTool.Sink
-
incReadSuccessCount
- Specified by:
incReadSuccessCount
in interfaceCanaryTool.Sink
-
getWriteSuccessCount
- Specified by:
getWriteSuccessCount
in interfaceCanaryTool.Sink
-
incWriteSuccessCount
- Specified by:
incWriteSuccessCount
in interfaceCanaryTool.Sink
-