public class RabbitMQWorkQueueRepository extends WorkQueueRepository
DW_DEFAULT_QUEUE_NAME, LRP_DEFAULT_QUEUE_NAME, queueName| Constructor and Description |
|---|
RabbitMQWorkQueueRepository(Graph graph,
Configuration configuration,
LifeSupportService lifeSupportService) |
| Modifier and Type | Method and Description |
|---|---|
static void |
createQueue(com.rabbitmq.client.Channel channel,
String queueName) |
WorkerSpout |
createWorkerSpout(String queueName) |
protected void |
deleteQueue(String queueName) |
void |
ensureQueue(String queueName) |
void |
flush() |
Map<String,Status> |
getQueuesStatus() |
void |
pushOnQueue(String queueName,
byte[] data,
Priority priority) |
void |
shutdown() |
void |
start() |
canHandle, format, getConfiguration, getGraph, getQueueName, hasDataWorkerRunner, pushElementImageQueue, pushGraphPropertyQueue, pushGraphPropertyQueue, pushLongRunningProcessQueue, pushMultipleGraphPropertyQueue, pushOnQueue, setDataWorkerRunner, setQueueNameinit, onShutdown, stop@Inject public RabbitMQWorkQueueRepository(Graph graph, Configuration configuration, LifeSupportService lifeSupportService)
public void start()
throws Throwable
start in interface Lifecyclestart in class LifecycleAdapterThrowablepublic void pushOnQueue(String queueName, byte[] data, Priority priority)
pushOnQueue in class WorkQueueRepositorypublic void ensureQueue(String queueName) throws IOException
IOExceptionpublic static void createQueue(com.rabbitmq.client.Channel channel,
String queueName)
throws IOException
IOExceptionpublic void flush()
flush in class WorkQueueRepositorypublic void shutdown()
shutdown in interface Lifecycleshutdown in class LifecycleAdapterpublic Map<String,Status> getQueuesStatus()
getQueuesStatus in class WorkQueueRepositoryprotected void deleteQueue(String queueName)
deleteQueue in class WorkQueueRepositorypublic WorkerSpout createWorkerSpout(String queueName)
createWorkerSpout in class WorkQueueRepositoryCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.