public class RemotingHelper extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
RemotingLogName |
| 构造器和说明 |
|---|
RemotingHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
exceptionSimpleDesc(Throwable e) |
static RemotingCommand |
invokeSync(String addr,
RemotingCommand request,
long timeoutMillis)
短连接调用 TODO
|
static String |
parseChannelRemoteAddr(io.netty.channel.Channel channel) |
static String |
parseChannelRemoteName(io.netty.channel.Channel channel) |
static String |
parseSocketAddressAddr(SocketAddress socketAddress) |
static String |
parseSocketAddressName(SocketAddress socketAddress) |
static SocketAddress |
string2SocketAddress(String addr)
IP:PORT
|
public static SocketAddress string2SocketAddress(String addr)
public static RemotingCommand invokeSync(String addr, RemotingCommand request, long timeoutMillis) throws InterruptedException, RemotingConnectException, RemotingSendRequestException, RemotingTimeoutException
public static String parseChannelRemoteAddr(io.netty.channel.Channel channel)
public static String parseChannelRemoteName(io.netty.channel.Channel channel)
public static String parseSocketAddressAddr(SocketAddress socketAddress)
public static String parseSocketAddressName(SocketAddress socketAddress)
Copyright © 2012–2016. All rights reserved.