public class StandardOpProcessor extends AbstractEvalOpProcessor
OpProcessor implementation that handles ScriptEngine script evaluation outside the context
 of a session.AbstractEvalOpProcessor.BindingSupplier| Modifier and Type | Field and Description | 
|---|---|
protected Function<Context,AbstractEvalOpProcessor.BindingSupplier> | 
bindingMaker  | 
static String | 
OP_PROCESSOR_NAME  | 
CONFIG_MAX_PARAMETERS, DEFAULT_MAX_PARAMETERS, evalOpTimer, INVALID_BINDINGS_KEYS, maxParametersmanageTransactions| Constructor and Description | 
|---|
StandardOpProcessor()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()  | 
protected Function<Context,AbstractEvalOpProcessor.BindingSupplier> | 
getBindingMaker()
A useful method for those extending this class, where the means for binding construction can be supplied
 to this class. 
 | 
ThrowingConsumer<Context> | 
getEvalOp()
Provides an operation for evaluating a Gremlin script. 
 | 
String | 
getName()
The name of the processor which requests must refer to "processor" field on a request. 
 | 
void | 
init(Settings settings)
Initialize the  
OpProcessor with settings from the server. | 
Optional<ThrowingConsumer<Context>> | 
selectOther(Context ctx)
A sub-class may have additional "ops" that it will service. 
 | 
evalOpInternal, select, validateEvalMessageattemptCommit, attemptRollback, determineIfTemporaryException, generateResultMetaData, generateStatusAttributes, handleIterator, isForceFlushed, iterateComplete, makeFramepublic static final String OP_PROCESSOR_NAME
protected final Function<Context,AbstractEvalOpProcessor.BindingSupplier> bindingMaker
public String getName()
OpProcessorpublic void init(Settings settings)
OpProcessorOpProcessor with settings from the server. This method should only be called once at
 server startup by a single thread.public ThrowingConsumer<Context> getEvalOp()
AbstractEvalOpProcessorgetEvalOp in class AbstractEvalOpProcessorpublic Optional<ThrowingConsumer<Context>> selectOther(Context ctx) throws OpProcessorException
AbstractEvalOpProcessorOpProcessor.select(Context) that are not
 handled will be passed to this method to see if the sub-class can service the requested op code.selectOther in class AbstractEvalOpProcessorOpProcessorExceptionprotected Function<Context,AbstractEvalOpProcessor.BindingSupplier> getBindingMaker()
evalOp(Context) to create the final argument to
 AbstractEvalOpProcessor.evalOpInternal(Context, Supplier, BindingSupplier).
 In this way an extending class can use the default AbstractEvalOpProcessor.BindingSupplier
 which carries a lot of re-usable functionality or provide a new one to override the existing approach.Copyright © 2013–2021 Apache Software Foundation. All rights reserved.