org.apache.hadoop.hbase.hbql.impl
Class CompletionQueueExecutor<T>
java.lang.Object
org.apache.hadoop.hbase.hbql.util.PoolableElement<CompletionQueueExecutor>
org.apache.hadoop.hbase.hbql.impl.CompletionQueueExecutor<T>
- Direct Known Subclasses:
- ResultExecutor, ResultScannerExecutor
public abstract class CompletionQueueExecutor<T>
- extends PoolableElement<CompletionQueueExecutor>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompletionQueueExecutor
protected CompletionQueueExecutor(QueryExecutorPoolImpl executorPool,
int minThreadCount,
int maxThreadCount,
long keepAliveSecs,
int completionQueueSize)
throws HBqlException
- Throws:
HBqlException
threadsReadResults
public abstract boolean threadsReadResults()
putElement
public void putElement(T val)
throws HBqlException
- Throws:
HBqlException
putCompletion
public void putCompletion()
takeElement
public CompletionQueue.Element<T> takeElement()
throws HBqlException
- Throws:
HBqlException
getRejectionCount
public int getRejectionCount()
addException
public void addException(HBqlException exception)
moreResultsPending
public boolean moreResultsPending()
submitWorkToSubmitterThread
public void submitWorkToSubmitterThread(Runnable job)
submitWorkToThreadPool
public void submitWorkToThreadPool(Runnable job)
resetElement
public void resetElement()
- Specified by:
resetElement
in class PoolableElement<CompletionQueueExecutor>
close
public void close()
releaseElement
public void releaseElement()
- Specified by:
releaseElement
in class PoolableElement<CompletionQueueExecutor>
isShutdown
public boolean isShutdown()
shutdown
public void shutdown()
Copyright © 2011. All Rights Reserved.