public class TestPluggableQueueImpl extends org.apache.hadoop.hbase.ipc.PluggableBlockingQueue implements org.apache.hadoop.hbase.conf.ConfigurationObserver
Modifier and Type | Field and Description |
---|---|
private static boolean |
configurationRecentlyChanged |
private org.apache.hadoop.hbase.util.BoundedPriorityBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner> |
inner |
Constructor and Description |
---|
TestPluggableQueueImpl(int maxQueueLength,
org.apache.hadoop.hbase.ipc.PriorityFunction priority,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(org.apache.hadoop.hbase.ipc.CallRunner callRunner) |
boolean |
addAll(Collection<? extends org.apache.hadoop.hbase.ipc.CallRunner> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
int |
drainTo(Collection<? super org.apache.hadoop.hbase.ipc.CallRunner> c) |
int |
drainTo(Collection<? super org.apache.hadoop.hbase.ipc.CallRunner> c,
int maxElements) |
org.apache.hadoop.hbase.ipc.CallRunner |
element() |
static boolean |
hasObservedARecentConfigurationChange() |
boolean |
isEmpty() |
Iterator<org.apache.hadoop.hbase.ipc.CallRunner> |
iterator() |
boolean |
offer(org.apache.hadoop.hbase.ipc.CallRunner callRunner) |
boolean |
offer(org.apache.hadoop.hbase.ipc.CallRunner callRunner,
long timeout,
TimeUnit unit) |
void |
onConfigurationChange(org.apache.hadoop.conf.Configuration conf) |
org.apache.hadoop.hbase.ipc.CallRunner |
peek() |
org.apache.hadoop.hbase.ipc.CallRunner |
poll() |
org.apache.hadoop.hbase.ipc.CallRunner |
poll(long timeout,
TimeUnit unit) |
void |
put(org.apache.hadoop.hbase.ipc.CallRunner callRunner) |
int |
remainingCapacity() |
org.apache.hadoop.hbase.ipc.CallRunner |
remove() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
org.apache.hadoop.hbase.ipc.CallRunner |
take() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
private final org.apache.hadoop.hbase.util.BoundedPriorityBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner> inner
private static boolean configurationRecentlyChanged
public TestPluggableQueueImpl(int maxQueueLength, org.apache.hadoop.hbase.ipc.PriorityFunction priority, org.apache.hadoop.conf.Configuration conf)
public boolean add(org.apache.hadoop.hbase.ipc.CallRunner callRunner)
add
in interface Collection<org.apache.hadoop.hbase.ipc.CallRunner>
add
in interface BlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
add
in interface Queue<org.apache.hadoop.hbase.ipc.CallRunner>
public boolean offer(org.apache.hadoop.hbase.ipc.CallRunner callRunner)
offer
in interface BlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
offer
in interface Queue<org.apache.hadoop.hbase.ipc.CallRunner>
public org.apache.hadoop.hbase.ipc.CallRunner remove()
public org.apache.hadoop.hbase.ipc.CallRunner poll()
public org.apache.hadoop.hbase.ipc.CallRunner element()
public org.apache.hadoop.hbase.ipc.CallRunner peek()
public void put(org.apache.hadoop.hbase.ipc.CallRunner callRunner) throws InterruptedException
put
in interface BlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
InterruptedException
public boolean offer(org.apache.hadoop.hbase.ipc.CallRunner callRunner, long timeout, TimeUnit unit) throws InterruptedException
offer
in interface BlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
InterruptedException
public org.apache.hadoop.hbase.ipc.CallRunner take() throws InterruptedException
take
in interface BlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
InterruptedException
public org.apache.hadoop.hbase.ipc.CallRunner poll(long timeout, TimeUnit unit) throws InterruptedException
poll
in interface BlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
InterruptedException
public int remainingCapacity()
remainingCapacity
in interface BlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
public boolean remove(Object o)
remove
in interface Collection<org.apache.hadoop.hbase.ipc.CallRunner>
remove
in interface BlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<org.apache.hadoop.hbase.ipc.CallRunner>
public boolean addAll(Collection<? extends org.apache.hadoop.hbase.ipc.CallRunner> c)
addAll
in interface Collection<org.apache.hadoop.hbase.ipc.CallRunner>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<org.apache.hadoop.hbase.ipc.CallRunner>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<org.apache.hadoop.hbase.ipc.CallRunner>
public void clear()
clear
in interface Collection<org.apache.hadoop.hbase.ipc.CallRunner>
public int size()
size
in interface Collection<org.apache.hadoop.hbase.ipc.CallRunner>
public boolean isEmpty()
isEmpty
in interface Collection<org.apache.hadoop.hbase.ipc.CallRunner>
public boolean contains(Object o)
contains
in interface Collection<org.apache.hadoop.hbase.ipc.CallRunner>
contains
in interface BlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
public Iterator<org.apache.hadoop.hbase.ipc.CallRunner> iterator()
iterator
in interface Iterable<org.apache.hadoop.hbase.ipc.CallRunner>
iterator
in interface Collection<org.apache.hadoop.hbase.ipc.CallRunner>
public Object[] toArray()
toArray
in interface Collection<org.apache.hadoop.hbase.ipc.CallRunner>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<org.apache.hadoop.hbase.ipc.CallRunner>
public int drainTo(Collection<? super org.apache.hadoop.hbase.ipc.CallRunner> c)
drainTo
in interface BlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
public int drainTo(Collection<? super org.apache.hadoop.hbase.ipc.CallRunner> c, int maxElements)
drainTo
in interface BlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
public static boolean hasObservedARecentConfigurationChange()
public void onConfigurationChange(org.apache.hadoop.conf.Configuration conf)
onConfigurationChange
in interface org.apache.hadoop.hbase.conf.ConfigurationObserver
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.