BEAST
|
The publisher (manager) that keeps track of publishing file requests to different nodes. More...
Classes | |
class | RejectedExecutionHandler |
When a job is rejected (switched out). More... | |
Public Member Functions | |
PooledFileRequestPublisher () | |
Default construcor. | |
PooledFileRequestPublisher (int queueSize, int corePoolSize, int maxPoolSize) | |
Constructor. | |
void | afterPropertiesSet () |
Creates the actual executor. | |
void | publish (SendFileRequest request, SendFileRequestCallback callback) |
Publishes a send file request on the thread pool. | |
int | getQueueSize () |
void | setQueueSize (int queueSize) |
int | getCorePoolSize () |
void | setCorePoolSize (int corePoolSize) |
int | getMaxPoolSize () |
void | setMaxPoolSize (int maxPoolSize) |
IExchangeManager | getExchangeManager () |
void | setExchangeManager (IExchangeManager exchangeManager) |
Protected Member Functions | |
Runnable | createRunnable (SendFileRequest request, SendFileRequestCallback callback) |
Creates the runnable instance that should be placed in the executor queue. | |
The publisher (manager) that keeps track of publishing file requests to different nodes.
There is one thread pool executor / node so that a slowly responding node doesn't lock everything for the other nodes.
|
inline |
Default construcor.
|
inline |
Constructor.
queueSize | |
corePoolSize | |
maxPoolSize |
|
inline |
Creates the actual executor.
Can be overriden by subclasses or tests.
|
inlineprotected |
Creates the runnable instance that should be placed in the executor queue.
request | the request |
callback | the callback that will get updates |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Publishes a send file request on the thread pool.
request | the request |
callback | the callback that should be updated with progress information |
Implements eu.baltrad.beast.exchange.IPooledFileRequestPublisher.
|
inline |
corePoolSize | the min thread executor pool size |
|
inline |
exchangeManager | the exchange manager |
|
inline |
maxPoolSize | the max thread executor pool size |
|
inline |
queueSize | the max number of entries in the queue |