@InterfaceAudience.Private public class SlowLogPersistentService extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
configuration |
private static int |
DEFAULT_SYS_TABLE_QUEUE_SIZE |
private static ReentrantLock |
LOCK |
private static org.slf4j.Logger |
LOG |
private Queue<org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload> |
queueForSysTable |
private static String |
SYS_TABLE_QUEUE_SIZE |
private static int |
SYSTABLE_PUT_BATCH_SIZE |
Constructor and Description |
---|
SlowLogPersistentService(org.apache.hadoop.conf.Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
addAllLogsToSysTable()
Poll from queueForSysTable and insert 100 records in hbase:slowlog table in single batch
|
void |
addToQueueForSysTable(org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload slowLogPayload) |
private static final org.slf4j.Logger LOG
private static final ReentrantLock LOCK
private static final String SYS_TABLE_QUEUE_SIZE
private static final int DEFAULT_SYS_TABLE_QUEUE_SIZE
private static final int SYSTABLE_PUT_BATCH_SIZE
private final Queue<org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload> queueForSysTable
private final org.apache.hadoop.conf.Configuration configuration
public SlowLogPersistentService(org.apache.hadoop.conf.Configuration configuration)
public void addToQueueForSysTable(org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload slowLogPayload)
public void addAllLogsToSysTable()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.