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

字段摘要
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
 
从类 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.