public abstract class NettyClientBase extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected org.jboss.netty.bootstrap.ClientBootstrap |
bootstrap |
Constructor and Description |
---|
NettyClientBase() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
connect(InetSocketAddress addr) |
org.jboss.netty.channel.Channel |
getChannel() |
abstract org.apache.tajo.rpc.RpcConnectionPool.RpcConnectionKey |
getKey() |
InetSocketAddress |
getRemoteAddress() |
abstract <T> T |
getStub() |
void |
init(InetSocketAddress addr,
org.jboss.netty.channel.ChannelPipelineFactory pipeFactory,
org.jboss.netty.channel.socket.ClientSocketChannelFactory factory) |
boolean |
isConnected() |
public abstract <T> T getStub()
public abstract org.apache.tajo.rpc.RpcConnectionPool.RpcConnectionKey getKey()
public void init(InetSocketAddress addr, org.jboss.netty.channel.ChannelPipelineFactory pipeFactory, org.jboss.netty.channel.socket.ClientSocketChannelFactory factory) throws IOException
IOException
public void connect(InetSocketAddress addr)
public boolean isConnected()
public InetSocketAddress getRemoteAddress()
public org.jboss.netty.channel.Channel getChannel()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2014 Apache Software Foundation. All Rights Reserved.