Class BalancerRejectionQueueService
java.lang.Object
org.apache.hadoop.hbase.namequeues.impl.BalancerRejectionQueueService
- All Implemented Interfaces:
NamedQueueService
In-memory Queue service provider for Balancer Rejection events
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.getEvent()
Retrieve event type for NamedQueueService implementation.getNamedQueueRecords
(NamedQueueGetRequest request) Retrieve in memory queue records from ringbuffervoid
persistAll
(Connection connection) Add all in memory queue records to system table.
-
Field Details
-
LOG
-
isBalancerRejectionRecording
-
BALANCER_REJECTION_QUEUE_SIZE
- See Also:
-
DEFAULT_BALANCER_REJECTION_QUEUE_SIZE
- See Also:
-
balancerRejectionQueue
private final Queue<org.apache.hadoop.hbase.shaded.protobuf.generated.RecentLogs.BalancerRejection> balancerRejectionQueue
-
-
Constructor Details
-
BalancerRejectionQueueService
-
-
Method Details
-
getEvent
Description copied from interface:NamedQueueService
Retrieve event type for NamedQueueService implementation.- Specified by:
getEvent
in interfaceNamedQueueService
- Returns:
NamedQueuePayload.NamedQueueEvent
-
consumeEventFromDisruptor
Description copied from interface:NamedQueueService
This implementation is generic for consuming records from LMAX disruptor and inserts records to EvictingQueue which is maintained by each ringbuffer provider.- Specified by:
consumeEventFromDisruptor
in interfaceNamedQueueService
- Parameters:
namedQueuePayload
- namedQueue payload from disruptor ring buffer
-
clearNamedQueue
Description copied from interface:NamedQueueService
Cleans up queues maintained by services.- Specified by:
clearNamedQueue
in interfaceNamedQueueService
- Returns:
- true if slow log payloads are cleaned up, false otherwise
-
getNamedQueueRecords
Description copied from interface:NamedQueueService
Retrieve in memory queue records from ringbuffer- Specified by:
getNamedQueueRecords
in interfaceNamedQueueService
- Parameters:
request
- namedQueue request with event type- Returns:
- queue records from ringbuffer after filter (if applied)
-
persistAll
Description copied from interface:NamedQueueService
Add all in memory queue records to system table. The implementors can use system table or direct HDFS file or ZK as persistence system.- Specified by:
persistAll
in interfaceNamedQueueService
-