Class Queue<TKey extends Comparable<TKey>>
java.lang.Object
org.apache.hadoop.hbase.util.AvlUtil.AvlNode<TNode>
org.apache.hadoop.hbase.util.AvlUtil.AvlLinkedNode<Queue<TKey>>
org.apache.hadoop.hbase.master.procedure.Queue<TKey>
- Direct Known Subclasses:
MetaQueue
,PeerQueue
,ServerQueue
,TableQueue
@Private
abstract class Queue<TKey extends Comparable<TKey>>
extends AvlUtil.AvlLinkedNode<Queue<TKey>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final TKey
private final LockStatus
private final int
private final ProcedureDeque
Fields inherited from class org.apache.hadoop.hbase.util.AvlUtil.AvlLinkedNode
iterNext, iterPrev
Fields inherited from class org.apache.hadoop.hbase.util.AvlUtil.AvlNode
avlHeight, avlLeft, avlRight
-
Constructor Summary
ModifierConstructorDescriptionprotected
Queue
(TKey key, int priority, LockStatus lockStatus) protected
Queue
(TKey key, LockStatus lockStatus) -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
compareKey
(TKey cmpKey) int
protected TKey
getKey()
protected LockStatus
int
boolean
boolean
isEmpty()
Procedure<?>
peek()
Procedure<?>
poll()
(package private) abstract boolean
requireExclusiveLock
(Procedure<?> proc) int
size()
toString()
-
Field Details
-
key
-
priority
-
runnables
-
lockStatus
-
-
Constructor Details
-
Queue
-
Queue
-
-
Method Details
-
requireExclusiveLock
- Parameters:
proc
- must not be null
-
getKey
-
getPriority
-
getLockStatus
-
isAvailable
-
add
-
peek
-
poll
-
isEmpty
-
size
-
compareKey
-
compareTo
- Specified by:
compareTo
in classAvlUtil.AvlNode<Queue<TKey extends Comparable<TKey>>>
-
toString
-