Modifier and Type | Method and Description |
---|---|
RequestMessage |
MessageSerializer.deserializeRequest(ByteBuf msg)
Deserialize a Netty
ByteBuf into a RequestMessage . |
RequestMessage |
ResultSet.getOriginalRequestMessage() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.apache.tinkerpop.gremlin.driver.Connection |
Client.chooseConnection(RequestMessage msg)
Chooses a
Connection to write the message to. |
protected org.apache.tinkerpop.gremlin.driver.Connection |
Client.ClusteredClient.chooseConnection(RequestMessage msg)
Uses a
LoadBalancingStrategy to choose the best Host and then selects the best connection
from that host's connection pool. |
protected org.apache.tinkerpop.gremlin.driver.Connection |
Client.AliasClusteredClient.chooseConnection(RequestMessage msg)
Delegates to the underlying
Client.ClusteredClient . |
protected org.apache.tinkerpop.gremlin.driver.Connection |
Client.SessionedClient.chooseConnection(RequestMessage msg)
Since the session is bound to a single host, simply borrow a connection from that pool.
|
Iterator<Host> |
LoadBalancingStrategy.select(RequestMessage msg)
Provide an ordered list of hosts to send the given
RequestMessage to. |
Iterator<Host> |
LoadBalancingStrategy.RoundRobin.select(RequestMessage msg) |
ByteBuf |
MessageSerializer.serializeRequestAsBinary(RequestMessage requestMessage,
ByteBufAllocator allocator)
Serialize a
ResponseMessage to a Netty ByteBuf . |
CompletableFuture<ResultSet> |
Client.submitAsync(RequestMessage msg)
A low-level method that allows the submission of a manually constructed
RequestMessage . |
CompletableFuture<ResultSet> |
Client.AliasClusteredClient.submitAsync(RequestMessage msg) |
Constructor and Description |
---|
ResultSet(org.apache.tinkerpop.gremlin.driver.ResultQueue resultQueue,
ExecutorService executor,
CompletableFuture<Void> readCompleted,
RequestMessage originalRequestMessage,
Host host) |
Modifier and Type | Method and Description |
---|---|
protected void |
WebSocketGremlinRequestEncoder.encode(ChannelHandlerContext channelHandlerContext,
RequestMessage requestMessage,
List<Object> objects) |
Modifier and Type | Field and Description |
---|---|
static RequestMessage |
RequestMessage.INVALID
An "invalid" message.
|
Modifier and Type | Method and Description |
---|---|
RequestMessage |
RequestMessage.Builder.create()
Create the request message given the settings provided to the
RequestMessage.Builder . |
Modifier and Type | Method and Description |
---|---|
static ResponseMessage.Builder |
ResponseMessage.build(RequestMessage requestMessage) |
static RequestMessage.Builder |
RequestMessage.from(RequestMessage msg) |
Modifier and Type | Method and Description |
---|---|
RequestMessage |
AbstractGraphSONMessageSerializerV2d0.RequestMessageDeserializer.createObject(Map<String,Object> data) |
RequestMessage |
AbstractGraphSONMessageSerializerV1d0.deserializeRequest(ByteBuf msg) |
RequestMessage |
AbstractGraphSONMessageSerializerV2d0.deserializeRequest(ByteBuf msg) |
RequestMessage |
GraphBinaryMessageSerializerV1.deserializeRequest(ByteBuf msg) |
RequestMessage |
AbstractGryoMessageSerializerV3d0.deserializeRequest(ByteBuf msg) |
RequestMessage |
AbstractGryoMessageSerializerV1d0.deserializeRequest(ByteBuf msg) |
RequestMessage |
GraphSONMessageSerializerV1d0.deserializeRequest(String msg) |
RequestMessage |
GraphSONMessageSerializerV2d0.deserializeRequest(String msg) |
RequestMessage |
MessageTextSerializer.deserializeRequest(String msg) |
RequestMessage |
GraphSONMessageSerializerV3d0.deserializeRequest(String msg) |
<I extends InputShim> |
RequestMessageGryoSerializer.read(KryoShim<I,?> kryo,
I input,
Class<RequestMessage> aClass) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractGraphSONMessageSerializerV2d0.RequestMessageSerializer.ser(RequestMessage requestMessage,
JsonGenerator jsonGenerator,
SerializerProvider serializerProvider,
TypeSerializer typeSerializer) |
void |
AbstractGraphSONMessageSerializerV2d0.RequestMessageSerializer.serialize(RequestMessage requestMessage,
JsonGenerator jsonGenerator,
SerializerProvider serializerProvider) |
ByteBuf |
AbstractGraphSONMessageSerializerV1d0.serializeRequestAsBinary(RequestMessage requestMessage,
ByteBufAllocator allocator) |
ByteBuf |
AbstractGraphSONMessageSerializerV2d0.serializeRequestAsBinary(RequestMessage requestMessage,
ByteBufAllocator allocator) |
ByteBuf |
GraphBinaryMessageSerializerV1.serializeRequestAsBinary(RequestMessage requestMessage,
ByteBufAllocator allocator) |
ByteBuf |
AbstractGryoMessageSerializerV3d0.serializeRequestAsBinary(RequestMessage requestMessage,
ByteBufAllocator allocator) |
ByteBuf |
AbstractGryoMessageSerializerV1d0.serializeRequestAsBinary(RequestMessage requestMessage,
ByteBufAllocator allocator) |
String |
GraphSONMessageSerializerV1d0.serializeRequestAsString(RequestMessage requestMessage) |
String |
GraphSONMessageSerializerV2d0.serializeRequestAsString(RequestMessage requestMessage) |
String |
MessageTextSerializer.serializeRequestAsString(RequestMessage requestMessage) |
String |
GraphSONMessageSerializerV3d0.serializeRequestAsString(RequestMessage requestMessage) |
void |
AbstractGraphSONMessageSerializerV2d0.RequestMessageSerializer.serializeWithType(RequestMessage requestMessage,
JsonGenerator jsonGenerator,
SerializerProvider serializerProvider,
TypeSerializer typeSerializer) |
<O extends OutputShim> |
RequestMessageGryoSerializer.write(KryoShim<?,O> kryo,
O output,
RequestMessage requestMessage) |
Modifier and Type | Method and Description |
---|---|
<I extends InputShim> |
RequestMessageGryoSerializer.read(KryoShim<I,?> kryo,
I input,
Class<RequestMessage> aClass) |
Modifier and Type | Method and Description |
---|---|
RequestMessage |
RequestMessageSerializer.readValue(ByteBuf buffer,
GraphBinaryReader context) |
Modifier and Type | Method and Description |
---|---|
void |
RequestMessageSerializer.writeValue(RequestMessage value,
ByteBuf buffer,
GraphBinaryWriter context) |
Modifier and Type | Method and Description |
---|---|
List<ResponseMessage> |
AbstractClient.submit(RequestMessage requestMessage) |
List<ResponseMessage> |
SimpleClient.submit(RequestMessage requestMessage) |
void |
AbstractClient.submit(RequestMessage requestMessage,
Consumer<ResponseMessage> callback) |
void |
SimpleClient.submit(RequestMessage requestMessage,
Consumer<ResponseMessage> callback) |
CompletableFuture<List<ResponseMessage>> |
AbstractClient.submitAsync(RequestMessage requestMessage) |
CompletableFuture<List<ResponseMessage>> |
SimpleClient.submitAsync(RequestMessage requestMessage) |
abstract void |
AbstractClient.writeAndFlush(RequestMessage requestMessage) |
void |
NioClient.writeAndFlush(RequestMessage requestMessage) |
void |
WebSocketClient.writeAndFlush(RequestMessage requestMessage) |
Modifier and Type | Method and Description |
---|---|
RequestMessage |
Context.getRequestMessage()
Gets the current request to Gremlin Server.
|
Constructor and Description |
---|
Context(RequestMessage requestMessage,
ChannelHandlerContext ctx,
Settings settings,
GraphManager graphManager,
GremlinExecutor gremlinExecutor,
ScheduledExecutorService scheduledExecutorService) |
Modifier and Type | Method and Description |
---|---|
protected void |
OpSelectorHandler.decode(ChannelHandlerContext ctx,
RequestMessage msg,
List<Object> objects) |
Modifier and Type | Method and Description |
---|---|
protected static void |
AbstractOpProcessor.attemptCommit(RequestMessage msg,
GraphManager graphManager,
boolean strict) |
protected static void |
AbstractOpProcessor.attemptRollback(RequestMessage msg,
GraphManager graphManager,
boolean strict) |
protected Map<String,Object> |
AbstractOpProcessor.generateMetaData(ChannelHandlerContext ctx,
RequestMessage msg,
ResponseStatusCode code,
Iterator itty)
Deprecated.
As of release 3.4.0, replaced by
AbstractOpProcessor.generateResultMetaData(ChannelHandlerContext, RequestMessage, ResponseStatusCode, Iterator, Settings) |
protected Map<String,Object> |
AbstractOpProcessor.generateResultMetaData(ChannelHandlerContext ctx,
RequestMessage msg,
ResponseStatusCode code,
Iterator itty,
Settings settings)
Generates response result meta-data to put on a
ResponseMessage . |
protected Map<String,Object> |
AbstractOpProcessor.generateStatusAttributes(ChannelHandlerContext ctx,
RequestMessage msg,
ResponseStatusCode code,
Iterator itty,
Settings settings)
Generates response status meta-data to put on a
ResponseMessage . |
protected boolean |
AbstractOpProcessor.isForceFlushed(ChannelHandlerContext ctx,
RequestMessage msg,
Iterator itty)
Determines if a
Frame should be force flushed outside of the resultIterationBatchSize and the
termination of the iterator. |
protected void |
AbstractOpProcessor.iterateComplete(ChannelHandlerContext ctx,
RequestMessage msg,
Iterator itty)
Called when iteration within
AbstractOpProcessor.handleIterator(Context, Iterator) is on its final pass and the final
frame is about to be sent back to the client. |
protected static Frame |
AbstractOpProcessor.makeFrame(ChannelHandlerContext ctx,
RequestMessage msg,
MessageSerializer serializer,
boolean useBinary,
List<Object> aggregate,
ResponseStatusCode code,
Map<String,Object> responseMetaData,
Map<String,Object> statusAttributes)
Caution:
#makeFrame(ResponseHandlerContext, RequestMessage, MessageSerializer, boolean, List, ResponseStatusCode, Map, Map)
should be used instead of this method whenever a ResponseHandlerContext is available. |
abstract Optional<ThrowingConsumer<Context>> |
AbstractEvalOpProcessor.selectOther(RequestMessage requestMessage)
A sub-class may have additional "ops" that it will service.
|
protected Optional<ThrowingConsumer<Context>> |
AbstractEvalOpProcessor.validateEvalMessage(RequestMessage message) |
Modifier and Type | Method and Description |
---|---|
protected static Session |
SessionOpProcessor.getSession(Context context,
RequestMessage msg)
Examines the
RequestMessage and extracts the session token. |
Optional<ThrowingConsumer<Context>> |
SessionOpProcessor.selectOther(RequestMessage requestMessage)
Session based requests accept a "close" operator in addition to "eval".
|
protected Optional<ThrowingConsumer<Context>> |
SessionOpProcessor.validateEvalMessage(RequestMessage message) |
Modifier and Type | Method and Description |
---|---|
Optional<ThrowingConsumer<Context>> |
StandardOpProcessor.selectOther(RequestMessage requestMessage) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
TraversalOpProcessor.generateMetaData(ChannelHandlerContext ctx,
RequestMessage msg,
ResponseStatusCode code,
Iterator itty) |
protected void |
TraversalOpProcessor.iterateComplete(ChannelHandlerContext ctx,
RequestMessage msg,
Iterator itty) |
Copyright © 2013–2019 Apache Software Foundation. All rights reserved.