public abstract class WorkQueueRepository extends LifecycleAdapter
| Modifier and Type | Field and Description |
|---|---|
static String |
DW_DEFAULT_QUEUE_NAME |
protected static BcLogger |
LOGGER |
static String |
LRP_DEFAULT_QUEUE_NAME |
protected String |
queueName |
| Modifier | Constructor and Description |
|---|---|
protected |
WorkQueueRepository(Graph graph,
Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canHandle(Element element,
String propertyKey,
String propertyName,
ElementOrPropertyStatus status) |
abstract WorkerSpout |
createWorkerSpout(String queueName) |
protected abstract void |
deleteQueue(String queueName) |
abstract void |
flush() |
void |
format() |
protected Configuration |
getConfiguration() |
Graph |
getGraph() |
String |
getQueueName() |
abstract Map<String,Status> |
getQueuesStatus() |
boolean |
hasDataWorkerRunner() |
void |
pushElementImageQueue(Element element,
String propertyKey,
String propertyName,
Priority priority) |
void |
pushGraphPropertyQueue(Element element,
Iterable<BcPropertyUpdate> properties,
String workspaceId,
String visibilitySource,
Priority priority) |
void |
pushGraphPropertyQueue(Element element,
String propertyKey,
String propertyName,
String workspaceId,
String visibilitySource,
Priority priority,
ElementOrPropertyStatus status,
Long beforeDeleteTimestamp) |
void |
pushLongRunningProcessQueue(org.json.JSONObject queueItem,
Priority priority) |
void |
pushMultipleGraphPropertyQueue(Iterable<? extends Element> elements,
String propertyKey,
String propertyName,
String workspaceId,
String visibilitySource,
Priority priority,
ElementOrPropertyStatus status,
Long beforeActionTimestamp) |
abstract void |
pushOnQueue(String queueName,
byte[] data,
Priority priority) |
void |
pushOnQueue(String queueName,
org.json.JSONObject json,
Priority priority) |
void |
setDataWorkerRunner(DataWorkerRunner graphPropertyRunner) |
void |
setQueueName(String queueName) |
init, onShutdown, shutdown, start, stoppublic static final String DW_DEFAULT_QUEUE_NAME
public static final String LRP_DEFAULT_QUEUE_NAME
protected static final BcLogger LOGGER
protected String queueName
protected WorkQueueRepository(Graph graph, Configuration configuration)
public void pushGraphPropertyQueue(Element element, String propertyKey, String propertyName, String workspaceId, String visibilitySource, Priority priority, ElementOrPropertyStatus status, Long beforeDeleteTimestamp)
public void pushGraphPropertyQueue(Element element, Iterable<BcPropertyUpdate> properties, String workspaceId, String visibilitySource, Priority priority)
public void pushElementImageQueue(Element element, String propertyKey, String propertyName, Priority priority)
public void pushMultipleGraphPropertyQueue(Iterable<? extends Element> elements, String propertyKey, String propertyName, String workspaceId, String visibilitySource, Priority priority, ElementOrPropertyStatus status, Long beforeActionTimestamp)
protected boolean canHandle(Element element, String propertyKey, String propertyName, ElementOrPropertyStatus status)
public final void pushOnQueue(String queueName, org.json.JSONObject json, Priority priority)
public abstract void flush()
public void format()
protected abstract void deleteQueue(String queueName)
public Graph getGraph()
public abstract WorkerSpout createWorkerSpout(String queueName)
public void setDataWorkerRunner(DataWorkerRunner graphPropertyRunner)
public boolean hasDataWorkerRunner()
public void setQueueName(String queueName)
public String getQueueName()
protected Configuration getConfiguration()
public void pushLongRunningProcessQueue(org.json.JSONObject queueItem,
Priority priority)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.