public class DuplicatingWorkQueueRepository extends WorkQueueRepository
DW_DEFAULT_QUEUE_NAME, LOGGER, LRP_DEFAULT_QUEUE_NAME, queueName| Constructor and Description |
|---|
DuplicatingWorkQueueRepository(Graph graph,
Configuration configuration,
LifeSupportService lifeSupportService) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canHandle(Element element,
String propertyKey,
String propertyName,
ElementOrPropertyStatus status) |
WorkerSpout |
createWorkerSpout(String queueName) |
protected void |
deleteQueue(String queueName) |
void |
flush() |
Map<String,Status> |
getQueuesStatus() |
void |
pushLongRunningProcessQueue(org.json.JSONObject queueItem,
Priority priority) |
void |
pushOnQueue(String queueName,
byte[] data,
Priority priority) |
void |
start() |
format, getConfiguration, getGraph, getQueueName, hasDataWorkerRunner, pushElementImageQueue, pushGraphPropertyQueue, pushGraphPropertyQueue, pushMultipleGraphPropertyQueue, pushOnQueue, setDataWorkerRunner, setQueueNameinit, onShutdown, shutdown, stop@Inject public DuplicatingWorkQueueRepository(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 pushLongRunningProcessQueue(org.json.JSONObject queueItem,
Priority priority)
pushLongRunningProcessQueue in class WorkQueueRepositorypublic void flush()
flush in class WorkQueueRepositoryprotected void deleteQueue(String queueName)
deleteQueue in class WorkQueueRepositorypublic WorkerSpout createWorkerSpout(String queueName)
createWorkerSpout in class WorkQueueRepositorypublic Map<String,Status> getQueuesStatus()
getQueuesStatus in class WorkQueueRepositoryprotected boolean canHandle(Element element, String propertyKey, String propertyName, ElementOrPropertyStatus status)
canHandle in class WorkQueueRepositoryCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.