public static class Canary.RegionStdOutSink extends Canary.StdOutSink
Modifier and Type | Field and Description |
---|---|
private Map<String,LongAdder> |
perTableReadLatency |
private LongAdder |
writeLatency |
Constructor and Description |
---|
RegionStdOutSink() |
Modifier and Type | Method and Description |
---|---|
Map<String,LongAdder> |
getReadLatencyMap() |
LongAdder |
getWriteLatency() |
LongAdder |
initializeAndGetReadLatencyForTable(String tableName) |
void |
initializeWriteLatency() |
void |
publishReadFailure(ServerName serverName,
RegionInfo region,
ColumnFamilyDescriptor column,
Exception e) |
void |
publishReadFailure(ServerName serverName,
RegionInfo region,
Exception e) |
void |
publishReadTiming(ServerName serverName,
RegionInfo region,
ColumnFamilyDescriptor column,
long msTime) |
void |
publishWriteFailure(ServerName serverName,
RegionInfo region,
ColumnFamilyDescriptor column,
Exception e) |
void |
publishWriteFailure(ServerName serverName,
RegionInfo region,
Exception e) |
void |
publishWriteTiming(ServerName serverName,
RegionInfo region,
ColumnFamilyDescriptor column,
long msTime) |
getReadFailureCount, getReadFailures, getWriteFailureCount, getWriteFailures, incReadFailureCount, incWriteFailureCount, updateReadFailures, updateWriteFailures
private Map<String,LongAdder> perTableReadLatency
private LongAdder writeLatency
public RegionStdOutSink()
public void publishReadFailure(ServerName serverName, RegionInfo region, Exception e)
public void publishReadFailure(ServerName serverName, RegionInfo region, ColumnFamilyDescriptor column, Exception e)
public void publishReadTiming(ServerName serverName, RegionInfo region, ColumnFamilyDescriptor column, long msTime)
public void publishWriteFailure(ServerName serverName, RegionInfo region, Exception e)
public void publishWriteFailure(ServerName serverName, RegionInfo region, ColumnFamilyDescriptor column, Exception e)
public void publishWriteTiming(ServerName serverName, RegionInfo region, ColumnFamilyDescriptor column, long msTime)
public Map<String,LongAdder> getReadLatencyMap()
public LongAdder initializeAndGetReadLatencyForTable(String tableName)
public void initializeWriteLatency()
public LongAdder getWriteLatency()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.