Class StandardOpProcessor
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.server.op.AbstractOpProcessor
- 
- org.apache.tinkerpop.gremlin.server.op.AbstractEvalOpProcessor
- 
- org.apache.tinkerpop.gremlin.server.op.standard.StandardOpProcessor
 
 
 
- 
- All Implemented Interfaces:
- AutoCloseable,- OpProcessor
 
 public class StandardOpProcessor extends AbstractEvalOpProcessor SimpleOpProcessorimplementation that handlesScriptEnginescript evaluation outside the context of a session.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.tinkerpop.gremlin.server.op.AbstractEvalOpProcessorAbstractEvalOpProcessor.BindingSupplier
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected Function<Context,AbstractEvalOpProcessor.BindingSupplier>bindingMakerstatic StringOP_PROCESSOR_NAME- 
Fields inherited from class org.apache.tinkerpop.gremlin.server.op.AbstractEvalOpProcessorCONFIG_MAX_PARAMETERS, DEFAULT_MAX_PARAMETERS, evalOpTimer, INVALID_BINDINGS_KEYS, maxParameters
 - 
Fields inherited from class org.apache.tinkerpop.gremlin.server.op.AbstractOpProcessormanageTransactions, WRITE_PAUSE_TIME_MS, writePausesMeter
 
- 
 - 
Constructor SummaryConstructors Constructor Description StandardOpProcessor()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()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.StringgetName()The name of the processor which requests must refer to "processor" field on a request.voidinit(Settings settings)Initialize theOpProcessorwith settings from the server.Optional<ThrowingConsumer<Context>>selectOther(Context ctx)A sub-class may have additional "ops" that it will service.- 
Methods inherited from class org.apache.tinkerpop.gremlin.server.op.AbstractEvalOpProcessorevalOpInternal, select, validateEvalMessage
 - 
Methods inherited from class org.apache.tinkerpop.gremlin.server.op.AbstractOpProcessorattemptCommit, attemptRollback, determineIfSpecialException, generateResultMetaData, generateStatusAttributes, handleIterator, isForceFlushed, iterateComplete, makeFrame
 
- 
 
- 
- 
- 
Field Detail- 
OP_PROCESSOR_NAMEpublic static final String OP_PROCESSOR_NAME - See Also:
- Constant Field Values
 
 - 
bindingMakerprotected final Function<Context,AbstractEvalOpProcessor.BindingSupplier> bindingMaker 
 
- 
 - 
Method Detail- 
getNamepublic String getName() Description copied from interface:OpProcessorThe name of the processor which requests must refer to "processor" field on a request.
 - 
initpublic void init(Settings settings) Description copied from interface:OpProcessorInitialize theOpProcessorwith settings from the server. This method should only be called once at server startup by a single thread.
 - 
getEvalOppublic ThrowingConsumer<Context> getEvalOp() Description copied from class:AbstractEvalOpProcessorProvides an operation for evaluating a Gremlin script.- Specified by:
- getEvalOpin class- AbstractEvalOpProcessor
- Returns:
 
 - 
selectOtherpublic Optional<ThrowingConsumer<Context>> selectOther(Context ctx) throws OpProcessorException Description copied from class:AbstractEvalOpProcessorA sub-class may have additional "ops" that it will service. Calls toOpProcessor.select(Context)that are not handled will be passed to this method to see if the sub-class can service the requested op code.- Specified by:
- selectOtherin class- AbstractEvalOpProcessor
- Returns:
- Throws:
- OpProcessorException
 
 - 
getBindingMakerprotected 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. This function is used inevalOp(Context)to create the final argument toAbstractEvalOpProcessor.evalOpInternal(Context, Supplier, BindingSupplier). In this way an extending class can use the defaultAbstractEvalOpProcessor.BindingSupplierwhich carries a lot of re-usable functionality or provide a new one to override the existing approach.
 
- 
 
-