Class HttpGremlinEndpointHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<RequestMessage>
-
- org.apache.tinkerpop.gremlin.server.handler.HttpGremlinEndpointHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
@Sharable public class HttpGremlinEndpointHandler extends io.netty.channel.SimpleChannelInboundHandler<RequestMessage>
Handler that processes RequestMessage. This handler will attempt to execute the query and stream the results back in HTTP chunks to the client.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpGremlinEndpointHandler.RequestState
-
Field Summary
Fields Modifier and Type Field Description protected static Set<String>INVALID_BINDINGS_KEYSstatic longWRITE_PAUSE_TIME_MSLength of time to pause writes in milliseconds when the high watermark is exceeded.static com.codahale.metrics.MeterwritePausesMeterTracks the rate of pause to writes when the high watermark is exceeded.
-
Constructor Summary
Constructors Constructor Description HttpGremlinEndpointHandler(GremlinExecutor gremlinExecutor, GraphManager graphManager, Settings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelRead0(io.netty.channel.ChannelHandlerContext ctx, RequestMessage requestMessage)voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
WRITE_PAUSE_TIME_MS
public static final long WRITE_PAUSE_TIME_MS
Length of time to pause writes in milliseconds when the high watermark is exceeded.- See Also:
- Constant Field Values
-
writePausesMeter
public static final com.codahale.metrics.Meter writePausesMeter
Tracks the rate of pause to writes when the high watermark is exceeded.
-
-
Constructor Detail
-
HttpGremlinEndpointHandler
public HttpGremlinEndpointHandler(GremlinExecutor gremlinExecutor, GraphManager graphManager, Settings settings)
-
-
Method Detail
-
channelRead0
public void channelRead0(io.netty.channel.ChannelHandlerContext ctx, RequestMessage requestMessage)- Specified by:
channelRead0in classio.netty.channel.SimpleChannelInboundHandler<RequestMessage>
-
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-
-