public static class Canary.StdOutSink extends Object implements Canary.Sink
Modifier and Type | Field and Description |
---|---|
private AtomicLong |
readFailureCount |
private Map<String,String> |
readFailures |
private AtomicLong |
writeFailureCount |
private Map<String,String> |
writeFailures |
Constructor and Description |
---|
StdOutSink() |
Modifier and Type | Method and Description |
---|---|
long |
getReadFailureCount() |
Map<String,String> |
getReadFailures() |
long |
getWriteFailureCount() |
Map<String,String> |
getWriteFailures() |
long |
incReadFailureCount() |
long |
incWriteFailureCount() |
void |
updateReadFailures(String regionName,
String serverName) |
void |
updateWriteFailures(String regionName,
String serverName) |
private AtomicLong readFailureCount
private AtomicLong writeFailureCount
private Map<String,String> readFailures
private Map<String,String> writeFailures
public StdOutSink()
public long getReadFailureCount()
getReadFailureCount
in interface Canary.Sink
public long incReadFailureCount()
incReadFailureCount
in interface Canary.Sink
public Map<String,String> getReadFailures()
getReadFailures
in interface Canary.Sink
public void updateReadFailures(String regionName, String serverName)
updateReadFailures
in interface Canary.Sink
public long getWriteFailureCount()
getWriteFailureCount
in interface Canary.Sink
public long incWriteFailureCount()
incWriteFailureCount
in interface Canary.Sink
public Map<String,String> getWriteFailures()
getWriteFailures
in interface Canary.Sink
public void updateWriteFailures(String regionName, String serverName)
updateWriteFailures
in interface Canary.Sink
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.