Class SlowLogPersistentService
java.lang.Object
org.apache.hadoop.hbase.namequeues.SlowLogPersistentService
Persistent service provider for Slow/LargeLog events
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.hadoop.conf.Configurationprivate static final intprivate static final ReentrantLockprivate static final org.slf4j.Loggerprivate final Queue<org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload>private static final Stringprivate static final int -
Constructor Summary
ConstructorsConstructorDescriptionSlowLogPersistentService(org.apache.hadoop.conf.Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllLogsToSysTable(Connection connection) Poll from queueForSysTable and insert 100 records in hbase:slowlog table in single batchvoidaddToQueueForSysTable(org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload slowLogPayload)
-
Field Details
-
LOG
-
LOCK
-
SYS_TABLE_QUEUE_SIZE
- See Also:
-
DEFAULT_SYS_TABLE_QUEUE_SIZE
- See Also:
-
SYSTABLE_PUT_BATCH_SIZE
- See Also:
-
queueForSysTable
private final Queue<org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload> queueForSysTable -
configuration
-
-
Constructor Details
-
SlowLogPersistentService
-
-
Method Details
-
addToQueueForSysTable
public void addToQueueForSysTable(org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload slowLogPayload) -
addAllLogsToSysTable
Poll from queueForSysTable and insert 100 records in hbase:slowlog table in single batch
-