com.alibaba.rocketmq.remoting.common
类 RemotingHelper
java.lang.Object
com.alibaba.rocketmq.remoting.common.RemotingHelper
public class RemotingHelper
- extends Object
通信层一些辅助方法
- 从以下版本开始:
- 2013-7-13
- 作者:
- shijia.wxr
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemotingLogName
public static final String RemotingLogName
- 另请参见:
- 常量字段值
RemotingHelper
public RemotingHelper()
exceptionSimpleDesc
public static String exceptionSimpleDesc(Throwable e)
string2SocketAddress
public static SocketAddress string2SocketAddress(String addr)
- IP:PORT
invokeSync
public static RemotingCommand invokeSync(String addr,
RemotingCommand request,
long timeoutMillis)
throws InterruptedException,
RemotingConnectException,
RemotingSendRequestException,
RemotingTimeoutException
- 短连接调用 TODO
- 抛出:
InterruptedException
RemotingConnectException
RemotingSendRequestException
RemotingTimeoutException
parseChannelRemoteAddr
public static String parseChannelRemoteAddr(io.netty.channel.Channel channel)
parseChannelRemoteName
public static String parseChannelRemoteName(io.netty.channel.Channel channel)
parseSocketAddressAddr
public static String parseSocketAddressAddr(SocketAddress socketAddress)
parseSocketAddressName
public static String parseSocketAddressName(SocketAddress socketAddress)
Copyright © 2012-2015. All Rights Reserved.