Class Channelizer.AbstractChannelizer
- java.lang.Object
- 
- io.netty.channel.ChannelHandlerAdapter
- 
- io.netty.channel.ChannelInboundHandlerAdapter
- 
- io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
- 
- org.apache.tinkerpop.gremlin.driver.Channelizer.AbstractChannelizer
 
 
 
 
- 
- All Implemented Interfaces:
- io.netty.channel.ChannelHandler,- io.netty.channel.ChannelInboundHandler,- Channelizer
 - Direct Known Subclasses:
- Channelizer.HttpChannelizer
 - Enclosing interface:
- Channelizer
 
 public abstract static class Channelizer.AbstractChannelizer extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel> implements Channelizer Base implementation of the client sideChannelizer.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandlerio.netty.channel.ChannelHandler.Sharable
 - 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.driver.ChannelizerChannelizer.AbstractChannelizer, Channelizer.HttpChannelizer
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected Clusterclusterprotected org.apache.tinkerpop.gremlin.driver.Connectionconnectionprotected static StringPIPELINE_GREMLIN_HANDLERprotected static StringPIPELINE_HTTP_AGGREGATORprotected static StringPIPELINE_HTTP_CODECprotected static StringPIPELINE_HTTP_DECODERprotected static StringPIPELINE_HTTP_DECOMPRESSION_HANDLERprotected static StringPIPELINE_HTTP_ENCODERprotected static StringPIPELINE_IDLE_CONNECTION_HANDLERprotected static StringPIPELINE_IDLE_STATE_HANDLERprotected static StringPIPELINE_SSL_HANDLERprotected io.netty.handler.ssl.SslHandlersslHandler
 - 
Constructor SummaryConstructors Constructor Description AbstractChannelizer()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose(io.netty.channel.Channel channel)Called onConnection.closeAsync()to perform anChannelizerspecific functions.abstract voidconfigure(io.netty.channel.ChannelPipeline pipeline)voidconnected()Called after the channel connects.voidfinalize(io.netty.channel.ChannelPipeline pipeline)voidinit(org.apache.tinkerpop.gremlin.driver.Connection connection)Initializes theChannelizer.protected voidinitChannel(io.netty.channel.socket.SocketChannel socketChannel)booleansupportsSsl()- 
Methods inherited from class io.netty.channel.ChannelInitializerchannelRegistered, exceptionCaught, handlerAdded, handlerRemoved
 - 
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapterchannelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.driver.ChannelizergetScheme
 
- 
 
- 
- 
- 
Field Detail- 
connectionprotected org.apache.tinkerpop.gremlin.driver.Connection connection 
 - 
clusterprotected Cluster cluster 
 - 
sslHandlerprotected io.netty.handler.ssl.SslHandler sslHandler 
 - 
PIPELINE_GREMLIN_HANDLERprotected static final String PIPELINE_GREMLIN_HANDLER - See Also:
- Constant Field Values
 
 - 
PIPELINE_SSL_HANDLERprotected static final String PIPELINE_SSL_HANDLER - See Also:
- Constant Field Values
 
 - 
PIPELINE_IDLE_STATE_HANDLERprotected static final String PIPELINE_IDLE_STATE_HANDLER - See Also:
- Constant Field Values
 
 - 
PIPELINE_IDLE_CONNECTION_HANDLERprotected static final String PIPELINE_IDLE_CONNECTION_HANDLER - See Also:
- Constant Field Values
 
 - 
PIPELINE_HTTP_CODECprotected static final String PIPELINE_HTTP_CODEC - See Also:
- Constant Field Values
 
 - 
PIPELINE_HTTP_AGGREGATORprotected static final String PIPELINE_HTTP_AGGREGATOR - See Also:
- Constant Field Values
 
 - 
PIPELINE_HTTP_ENCODERprotected static final String PIPELINE_HTTP_ENCODER - See Also:
- Constant Field Values
 
 - 
PIPELINE_HTTP_DECODERprotected static final String PIPELINE_HTTP_DECODER - See Also:
- Constant Field Values
 
 - 
PIPELINE_HTTP_DECOMPRESSION_HANDLERprotected static final String PIPELINE_HTTP_DECOMPRESSION_HANDLER - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
supportsSslpublic boolean supportsSsl() 
 - 
configurepublic abstract void configure(io.netty.channel.ChannelPipeline pipeline) 
 - 
finalizepublic void finalize(io.netty.channel.ChannelPipeline pipeline) 
 - 
closepublic void close(io.netty.channel.Channel channel) Description copied from interface:ChannelizerCalled onConnection.closeAsync()to perform anChannelizerspecific functions. Note that theConnectionalready callsChannel.close()so there is no need to call that method here. An implementation will typically use this method to send aChannelizerspecific message to the server to notify of shutdown coming from the client side.- Specified by:
- closein interface- Channelizer
 
 - 
initpublic void init(org.apache.tinkerpop.gremlin.driver.Connection connection) Description copied from interface:ChannelizerInitializes theChannelizer. Called just after construction.- Specified by:
- initin interface- Channelizer
 
 - 
initChannelprotected void initChannel(io.netty.channel.socket.SocketChannel socketChannel) - Specified by:
- initChannelin class- io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
 
 - 
connectedpublic void connected() Description copied from interface:ChannelizerCalled after the channel connects. TheChannelizermay need to perform some functions, such as a handshake.- Specified by:
- connectedin interface- Channelizer
 
 
- 
 
-