public class TraversalOpProcessor extends AbstractOpProcessor
OpProcessor
implementation that iterates remotely submitted serialized Traversal
objects.Modifier and Type | Field and Description |
---|---|
static String |
OP_PROCESSOR_NAME |
static com.codahale.metrics.Timer |
traversalOpTimer |
manageTransactions
Constructor and Description |
---|
TraversalOpProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeProcessing(Graph graph,
Context ctx) |
void |
close() |
String |
getName()
The name of the processor which requests must refer to "processor" field on a request.
|
protected void |
handleIterator(Context context,
Iterator itty,
Graph graph) |
protected void |
onError(Graph graph,
Context ctx) |
protected void |
onTraversalSuccess(Graph graph,
Context ctx) |
ThrowingConsumer<Context> |
select(Context context)
Given the context (which contains the RequestMessage), return back a Consumer function that will be
executed with the context.
|
attemptCommit, attemptRollback, determineIfSpecialException, generateResultMetaData, generateStatusAttributes, handleIterator, isForceFlushed, iterateComplete, makeFrame
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
public static final String OP_PROCESSOR_NAME
public static final com.codahale.metrics.Timer traversalOpTimer
public String getName()
OpProcessor
public ThrowingConsumer<Context> select(Context context) throws OpProcessorException
OpProcessor
OpProcessorException
protected void handleIterator(Context context, Iterator itty, Graph graph) throws InterruptedException
InterruptedException
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.