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
Modifier and TypeFieldDescriptionprivate static boolean
private 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
ConstructorDescriptionTestPluggableQueueImpl
(int maxQueueLength, org.apache.hadoop.hbase.ipc.PriorityFunction priority, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(org.apache.hadoop.hbase.ipc.CallRunner callRunner) boolean
addAll
(Collection<? extends org.apache.hadoop.hbase.ipc.CallRunner> c) void
clear()
boolean
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
boolean
isEmpty()
Iterator<org.apache.hadoop.hbase.ipc.CallRunner>
iterator()
boolean
offer
(org.apache.hadoop.hbase.ipc.CallRunner callRunner) boolean
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
void
put
(org.apache.hadoop.hbase.ipc.CallRunner callRunner) int
org.apache.hadoop.hbase.ipc.CallRunner
remove()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
org.apache.hadoop.hbase.ipc.CallRunner
take()
Object[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
add
in interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
- Specified by:
add
in interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
- Specified by:
add
in interfaceQueue<org.apache.hadoop.hbase.ipc.CallRunner>
-
offer
- Specified by:
offer
in interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
- Specified by:
offer
in interfaceQueue<org.apache.hadoop.hbase.ipc.CallRunner>
-
remove
-
poll
-
element
-
peek
-
put
- Specified by:
put
in 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:
offer
in interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
- Throws:
InterruptedException
-
take
- Specified by:
take
in 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:
poll
in interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
- Throws:
InterruptedException
-
remainingCapacity
- Specified by:
remainingCapacity
in interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
-
remove
- Specified by:
remove
in interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
- Specified by:
remove
in interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
addAll
- Specified by:
addAll
in interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
clear
- Specified by:
clear
in interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
size
- Specified by:
size
in interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
isEmpty
- Specified by:
isEmpty
in interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
contains
- Specified by:
contains
in interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
- Specified by:
contains
in interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
iterator
- Specified by:
iterator
in interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
- Specified by:
iterator
in interfaceIterable<org.apache.hadoop.hbase.ipc.CallRunner>
-
toArray
- Specified by:
toArray
in interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
toArray
- Specified by:
toArray
in interfaceCollection<org.apache.hadoop.hbase.ipc.CallRunner>
-
drainTo
- Specified by:
drainTo
in interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
-
drainTo
- Specified by:
drainTo
in interfaceBlockingQueue<org.apache.hadoop.hbase.ipc.CallRunner>
-
hasObservedARecentConfigurationChange
-
onConfigurationChange
- Specified by:
onConfigurationChange
in interfaceorg.apache.hadoop.hbase.conf.ConfigurationObserver
-