Package org.apache.hadoop.hbase.ipc
Class TestPluggableQueueImpl
java.lang.Object
org.apache.hadoop.hbase.ipc.PluggableBlockingQueue
org.apache.hadoop.hbase.ipc.TestPluggableQueueImpl
- All Implemented Interfaces:
Iterable<org.apache.hadoop.hbase.ipc.CallRunner>,Collection<org.apache.hadoop.hbase.ipc.CallRunner>,BlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>,Queue<org.apache.hadoop.hbase.ipc.CallRunner>,org.apache.hadoop.hbase.conf.ConfigurationObserver
- Direct Known Subclasses:
TestAsyncClientPauseForServerOverloaded.OverloadedQueue,TestRegionServerRejectDuringAbort.CallQueueTooBigThrowingQueue
public class TestPluggableQueueImpl
extends org.apache.hadoop.hbase.ipc.PluggableBlockingQueue
implements org.apache.hadoop.hbase.conf.ConfigurationObserver
Implementation of the PluggableBlockingQueue abstract class. Used to verify that the pluggable
call queue type for the RpcExecutor can load correctly via the FQCN reflection semantics.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static booleanprivate final org.apache.hadoop.hbase.util.BoundedPriorityBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>Fields inherited from class org.apache.hadoop.hbase.ipc.PluggableBlockingQueue
conf, maxQueueLength, priority -
Constructor Summary
ConstructorsConstructorDescriptionTestPluggableQueueImpl(int maxQueueLength, org.apache.hadoop.hbase.ipc.PriorityFunction priority, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(org.apache.hadoop.hbase.ipc.CallRunner callRunner) booleanaddAll(Collection<? extends org.apache.hadoop.hbase.ipc.CallRunner> c) voidclear()booleanbooleancontainsAll(Collection<?> c) intdrainTo(Collection<? super org.apache.hadoop.hbase.ipc.CallRunner> c) intdrainTo(Collection<? super org.apache.hadoop.hbase.ipc.CallRunner> c, int maxElements) org.apache.hadoop.hbase.ipc.CallRunnerelement()static booleanbooleanisEmpty()Iterator<org.apache.hadoop.hbase.ipc.CallRunner>iterator()booleanoffer(org.apache.hadoop.hbase.ipc.CallRunner callRunner) booleanvoidonConfigurationChange(org.apache.hadoop.conf.Configuration conf) org.apache.hadoop.hbase.ipc.CallRunnerpeek()org.apache.hadoop.hbase.ipc.CallRunnerpoll()org.apache.hadoop.hbase.ipc.CallRunnervoidput(org.apache.hadoop.hbase.ipc.CallRunner callRunner) intorg.apache.hadoop.hbase.ipc.CallRunnerremove()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()org.apache.hadoop.hbase.ipc.CallRunnertake()Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
inner
private final org.apache.hadoop.hbase.util.BoundedPriorityBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner> inner -
configurationRecentlyChanged
-
-
Constructor Details
-
TestPluggableQueueImpl
public TestPluggableQueueImpl(int maxQueueLength, org.apache.hadoop.hbase.ipc.PriorityFunction priority, org.apache.hadoop.conf.Configuration conf)
-
-
Method Details
-
add
- Specified by:
addin interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>- Specified by:
addin interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>- Specified by:
addin interfaceQueue<org.apache.hadoop.hbase.ipc.CallRunner>
-
offer
- Specified by:
offerin interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>- Specified by:
offerin interfaceQueue<org.apache.hadoop.hbase.ipc.CallRunner>
-
remove
-
poll
-
element
-
peek
-
put
- Specified by:
putin interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>- Throws:
InterruptedException
-
offer
public boolean offer(org.apache.hadoop.hbase.ipc.CallRunner callRunner, long timeout, TimeUnit unit) throws InterruptedException - Specified by:
offerin interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>- Throws:
InterruptedException
-
take
- Specified by:
takein interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>- Throws:
InterruptedException
-
poll
public org.apache.hadoop.hbase.ipc.CallRunner poll(long timeout, TimeUnit unit) throws InterruptedException - Specified by:
pollin interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>- Throws:
InterruptedException
-
remainingCapacity
- Specified by:
remainingCapacityin interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
-
remove
- Specified by:
removein interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>- Specified by:
removein interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
containsAll
- Specified by:
containsAllin interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
addAll
- Specified by:
addAllin interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
removeAll
- Specified by:
removeAllin interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
retainAll
- Specified by:
retainAllin interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
clear
- Specified by:
clearin interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
size
- Specified by:
sizein interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
isEmpty
- Specified by:
isEmptyin interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
contains
- Specified by:
containsin interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>- Specified by:
containsin interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
iterator
- Specified by:
iteratorin interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>- Specified by:
iteratorin interfaceIterable<org.apache.hadoop.hbase.ipc.CallRunner>
-
toArray
- Specified by:
toArrayin interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
toArray
- Specified by:
toArrayin interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
drainTo
- Specified by:
drainToin interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
-
drainTo
- Specified by:
drainToin interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
-
hasObservedARecentConfigurationChange
-
onConfigurationChange
- Specified by:
onConfigurationChangein interfaceorg.apache.hadoop.hbase.conf.ConfigurationObserver
-