@InterfaceAudience.Private public abstract class BulkAssigner extends Object
populatePool(java.util.concurrent.ExecutorService)
and
waitUntilDone(long)
. The default implementation of
the getUncaughtExceptionHandler()
is to abort the hosting
Server.Constructor and Description |
---|
BulkAssigner(Server server) |
Modifier and Type | Method and Description |
---|---|
boolean |
bulkAssign() |
boolean |
bulkAssign(boolean sync)
Run the bulk assign.
|
protected int |
getThreadCount() |
protected String |
getThreadNamePrefix() |
protected long |
getTimeoutOnRIT() |
protected Thread.UncaughtExceptionHandler |
getUncaughtExceptionHandler() |
protected abstract void |
populatePool(ExecutorService pool) |
protected abstract boolean |
waitUntilDone(long timeout)
Wait until bulk assign is done.
|
protected final Server server
public BulkAssigner(Server server)
server
- An instance of Serverprotected String getThreadNamePrefix()
protected Thread.UncaughtExceptionHandler getUncaughtExceptionHandler()
protected int getThreadCount()
protected long getTimeoutOnRIT()
protected abstract void populatePool(ExecutorService pool) throws IOException
IOException
public boolean bulkAssign() throws InterruptedException, IOException
InterruptedException
IOException
public boolean bulkAssign(boolean sync) throws InterruptedException, IOException
sync
- Whether to assign synchronously.InterruptedException
IOException
protected abstract boolean waitUntilDone(long timeout) throws InterruptedException
timeout
- How long to wait.InterruptedException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.