@InterfaceAudience.Private public class BalancerRejectionQueueService extends Object implements NamedQueueService
| Modifier and Type | Field and Description |
|---|---|
private static String |
BALANCER_REJECTION_QUEUE_SIZE |
private Queue<org.apache.hadoop.hbase.shaded.protobuf.generated.RecentLogs.BalancerRejection> |
balancerRejectionQueue |
private static int |
DEFAULT_BALANCER_REJECTION_QUEUE_SIZE |
private boolean |
isBalancerRejectionRecording |
private static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
BalancerRejectionQueueService(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
clearNamedQueue()
Cleans up queues maintained by services.
|
void |
consumeEventFromDisruptor(NamedQueuePayload namedQueuePayload)
This implementation is generic for consuming records from LMAX disruptor and inserts records to
EvictingQueue which is maintained by each ringbuffer provider.
|
NamedQueuePayload.NamedQueueEvent |
getEvent()
Retrieve event type for NamedQueueService implementation.
|
NamedQueueGetResponse |
getNamedQueueRecords(NamedQueueGetRequest request)
Retrieve in memory queue records from ringbuffer
|
void |
persistAll()
Add all in memory queue records to system table.
|
private static final org.slf4j.Logger LOG
private final boolean isBalancerRejectionRecording
private static final String BALANCER_REJECTION_QUEUE_SIZE
private static final int DEFAULT_BALANCER_REJECTION_QUEUE_SIZE
private final Queue<org.apache.hadoop.hbase.shaded.protobuf.generated.RecentLogs.BalancerRejection> balancerRejectionQueue
public BalancerRejectionQueueService(org.apache.hadoop.conf.Configuration conf)
public NamedQueuePayload.NamedQueueEvent getEvent()
NamedQueueServicegetEvent in interface NamedQueueServiceNamedQueuePayload.NamedQueueEventpublic void consumeEventFromDisruptor(NamedQueuePayload namedQueuePayload)
NamedQueueServiceconsumeEventFromDisruptor in interface NamedQueueServicenamedQueuePayload - namedQueue payload from disruptor ring bufferpublic boolean clearNamedQueue()
NamedQueueServiceclearNamedQueue in interface NamedQueueServicepublic NamedQueueGetResponse getNamedQueueRecords(NamedQueueGetRequest request)
NamedQueueServicegetNamedQueueRecords in interface NamedQueueServicerequest - namedQueue request with event typepublic void persistAll()
NamedQueueServicepersistAll in interface NamedQueueServiceCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.