public static class TestCoprocessorMetrics.CustomWALObserver extends Object implements org.apache.hadoop.hbase.coprocessor.WALCoprocessor, org.apache.hadoop.hbase.coprocessor.WALObserver
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.metrics.Counter |
walEditsCount |
Constructor and Description |
---|
CustomWALObserver() |
Modifier and Type | Method and Description |
---|---|
Optional<org.apache.hadoop.hbase.coprocessor.WALObserver> |
getWALObserver() |
void |
postWALWrite(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.WALCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.client.RegionInfo info,
org.apache.hadoop.hbase.wal.WALKey logKey,
org.apache.hadoop.hbase.wal.WALEdit logEdit) |
void |
start(org.apache.hadoop.hbase.CoprocessorEnvironment env) |
private org.apache.hadoop.hbase.metrics.Counter walEditsCount
public CustomWALObserver()
public void postWALWrite(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.WALCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKey logKey, org.apache.hadoop.hbase.wal.WALEdit logEdit) throws IOException
postWALWrite
in interface org.apache.hadoop.hbase.coprocessor.WALObserver
IOException
public void start(org.apache.hadoop.hbase.CoprocessorEnvironment env) throws IOException
start
in interface org.apache.hadoop.hbase.Coprocessor
IOException
public Optional<org.apache.hadoop.hbase.coprocessor.WALObserver> getWALObserver()
getWALObserver
in interface org.apache.hadoop.hbase.coprocessor.WALCoprocessor
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.