Class BalancerDecisionQueueService
java.lang.Object
org.apache.hadoop.hbase.namequeues.impl.BalancerDecisionQueueService
- All Implemented Interfaces:
NamedQueueService
In-memory Queue service provider for Balancer Decision events
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCleans up queues maintained by services.voidconsumeEventFromDisruptor(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 ringbuffervoidpersistAll(Connection connection) Add all in memory queue records to system table.
-
Field Details
-
LOG
-
isBalancerDecisionRecording
-
BALANCER_DECISION_QUEUE_SIZE
- See Also:
-
DEFAULT_BALANCER_DECISION_QUEUE_SIZE
- See Also:
-
REGION_PLANS_THRESHOLD_PER_BALANCER
- See Also:
-
balancerDecisionQueue
private final Queue<org.apache.hadoop.hbase.shaded.protobuf.generated.RecentLogs.BalancerDecision> balancerDecisionQueue
-
-
Constructor Details
-
BalancerDecisionQueueService
-
-
Method Details
-
getEvent
Description copied from interface:NamedQueueServiceRetrieve event type for NamedQueueService implementation.- Specified by:
getEventin interfaceNamedQueueService- Returns:
NamedQueuePayload.NamedQueueEvent
-
consumeEventFromDisruptor
Description copied from interface:NamedQueueServiceThis implementation is generic for consuming records from LMAX disruptor and inserts records to EvictingQueue which is maintained by each ringbuffer provider.- Specified by:
consumeEventFromDisruptorin interfaceNamedQueueService- Parameters:
namedQueuePayload- namedQueue payload from disruptor ring buffer
-
clearNamedQueue
Description copied from interface:NamedQueueServiceCleans up queues maintained by services.- Specified by:
clearNamedQueuein interfaceNamedQueueService- Returns:
- true if slow log payloads are cleaned up, false otherwise
-
getNamedQueueRecords
Description copied from interface:NamedQueueServiceRetrieve in memory queue records from ringbuffer- Specified by:
getNamedQueueRecordsin interfaceNamedQueueService- Parameters:
request- namedQueue request with event type- Returns:
- queue records from ringbuffer after filter (if applied)
-
persistAll
Description copied from interface:NamedQueueServiceAdd 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:
persistAllin interfaceNamedQueueService
-