@InterfaceAudience.Private public class TableQueue extends AvlUtil.AvlLinkedNode<org.apache.hadoop.hbase.master.procedure.Queue<TKey>>
iterNext, iterPrev
avlHeight, avlLeft, avlRight
Constructor and Description |
---|
TableQueue(TableName tableName,
int priority,
LockStatus tableLock,
LockStatus namespaceLockStatus) |
Modifier and Type | Method and Description |
---|---|
void |
add(Procedure<?> proc,
boolean addToFront) |
int |
compareKey(TKey cmpKey) |
int |
compareTo(org.apache.hadoop.hbase.master.procedure.Queue<TKey> other) |
protected TKey |
getKey() |
protected LockStatus |
getLockStatus() |
int |
getPriority() |
boolean |
isAvailable() |
boolean |
isEmpty() |
Procedure<?> |
peek() |
Procedure<?> |
poll() |
boolean |
requireExclusiveLock(Procedure<?> proc) |
static boolean |
requireTableExclusiveLock(TableProcedureInterface proc) |
int |
size() |
String |
toString() |
public TableQueue(TableName tableName, int priority, LockStatus tableLock, LockStatus namespaceLockStatus)
public boolean isAvailable()
public boolean requireExclusiveLock(Procedure<?> proc)
proc
- must not be nullpublic static boolean requireTableExclusiveLock(TableProcedureInterface proc)
proc
- must not be nullprotected TKey getKey()
public int getPriority()
protected LockStatus getLockStatus()
public void add(Procedure<?> proc, boolean addToFront)
public Procedure<?> peek()
public Procedure<?> poll()
public boolean isEmpty()
public int size()
public int compareKey(TKey cmpKey)
public int compareTo(org.apache.hadoop.hbase.master.procedure.Queue<TKey> other)
compareTo
in class AvlUtil.AvlNode<org.apache.hadoop.hbase.master.procedure.Queue<TKey extends Comparable<TKey>>>
Copyright © 2007–2019 Cloudera. All rights reserved.