com.alibaba.dubbo.remoting.transport.ChannelHandlerAdapter Java Examples

The following examples show how to use com.alibaba.dubbo.remoting.transport.ChannelHandlerAdapter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NettyTransporterTest.java    From dubbo-2.6.5 with Apache License 2.0 5 votes vote down vote up
@Test
public void shouldAbleToBindNetty4() throws Exception {
    int port = NetUtils.getAvailablePort();
    URL url = new URL("http", "localhost", port,
            new String[]{Constants.BIND_PORT_KEY, String.valueOf(port)});

    Server server = new NettyTransporter().bind(url, new ChannelHandlerAdapter());

    assertThat(server.isBound(), is(true));
}
 
Example #2
Source File: GrizzlyTransporterTest.java    From dubbo-2.6.5 with Apache License 2.0 5 votes vote down vote up
@Test
public void shouldAbleToBindGrizzly() throws Exception {
    int port = NetUtils.getAvailablePort();
    URL url = new URL("http", "localhost", port,
            new String[]{Constants.BIND_PORT_KEY, String.valueOf(port)});

    Server server = new GrizzlyTransporter().bind(url, new ChannelHandlerAdapter());

    assertThat(server.isBound(), is(true));
}
 
Example #3
Source File: Exchangers.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(URL url, Replier<?> replier) throws RemotingException {
    return connect(url, new ChannelHandlerAdapter(), replier);
}
 
Example #4
Source File: Exchangers.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(String url, Replier<?> replier) throws RemotingException {
    return connect(URL.valueOf(url), new ChannelHandlerAdapter(), replier);
}
 
Example #5
Source File: Exchangers.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(URL url) throws RemotingException {
    return connect(url, new ChannelHandlerAdapter(), null);
}
 
Example #6
Source File: Exchangers.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public static ExchangeServer bind(URL url,  Replier<?> replier) throws RemotingException {
    return bind(url, new ChannelHandlerAdapter(), replier);
}
 
Example #7
Source File: Exchangers.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(URL url, Replier<?> replier) throws RemotingException {
    return connect(url, new ChannelHandlerAdapter(), replier);
}
 
Example #8
Source File: Exchangers.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(String url, Replier<?> replier) throws RemotingException {
    return connect(URL.valueOf(url), new ChannelHandlerAdapter(), replier);
}
 
Example #9
Source File: Exchangers.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(URL url) throws RemotingException {
    return connect(url, new ChannelHandlerAdapter(), null);
}
 
Example #10
Source File: Exchangers.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public static ExchangeServer bind(URL url,  Replier<?> replier) throws RemotingException {
    return bind(url, new ChannelHandlerAdapter(), replier);
}
 
Example #11
Source File: Exchangers.java    From dubbo3 with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(URL url, Replier<?> replier) throws RemotingException {
    return connect(url, new ChannelHandlerAdapter(), replier);
}
 
Example #12
Source File: Exchangers.java    From dubbo3 with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(String url, Replier<?> replier) throws RemotingException {
    return connect(URL.valueOf(url), new ChannelHandlerAdapter(), replier);
}
 
Example #13
Source File: Exchangers.java    From dubbo3 with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(URL url) throws RemotingException {
    return connect(url, new ChannelHandlerAdapter(), null);
}
 
Example #14
Source File: Exchangers.java    From dubbo3 with Apache License 2.0 4 votes vote down vote up
public static ExchangeServer bind(URL url,  Replier<?> replier) throws RemotingException {
    return bind(url, new ChannelHandlerAdapter(), replier);
}
 
Example #15
Source File: Exchangers.java    From dubbox-hystrix with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(URL url, Replier<?> replier) throws RemotingException {
    return connect(url, new ChannelHandlerAdapter(), replier);
}
 
Example #16
Source File: Exchangers.java    From dubbox-hystrix with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(String url, Replier<?> replier) throws RemotingException {
    return connect(URL.valueOf(url), new ChannelHandlerAdapter(), replier);
}
 
Example #17
Source File: Exchangers.java    From dubbox-hystrix with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(URL url) throws RemotingException {
    return connect(url, new ChannelHandlerAdapter(), null);
}
 
Example #18
Source File: Exchangers.java    From dubbox-hystrix with Apache License 2.0 4 votes vote down vote up
public static ExchangeServer bind(URL url,  Replier<?> replier) throws RemotingException {
    return bind(url, new ChannelHandlerAdapter(), replier);
}
 
Example #19
Source File: Exchangers.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(URL url, Replier<?> replier) throws RemotingException {
    return connect(url, new ChannelHandlerAdapter(), replier);
}
 
Example #20
Source File: Exchangers.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(String url, Replier<?> replier) throws RemotingException {
    return connect(URL.valueOf(url), new ChannelHandlerAdapter(), replier);
}
 
Example #21
Source File: Exchangers.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(URL url) throws RemotingException {
    return connect(url, new ChannelHandlerAdapter(), null);
}
 
Example #22
Source File: Exchangers.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public static ExchangeServer bind(URL url,  Replier<?> replier) throws RemotingException {
    return bind(url, new ChannelHandlerAdapter(), replier);
}
 
Example #23
Source File: Exchangers.java    From dubbo-2.6.5 with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(URL url, Replier<?> replier) throws RemotingException {
    return connect(url, new ChannelHandlerAdapter(), replier);
}
 
Example #24
Source File: Exchangers.java    From dubbo-2.6.5 with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(String url, Replier<?> replier) throws RemotingException {
    return connect(URL.valueOf(url), new ChannelHandlerAdapter(), replier);
}
 
Example #25
Source File: Exchangers.java    From dubbo-2.6.5 with Apache License 2.0 4 votes vote down vote up
public static ExchangeClient connect(URL url) throws RemotingException {
    return connect(url, new ChannelHandlerAdapter(), null);
}
 
Example #26
Source File: Exchangers.java    From dubbo-2.6.5 with Apache License 2.0 4 votes vote down vote up
public static ExchangeServer bind(URL url, Replier<?> replier) throws RemotingException {
    return bind(url, new ChannelHandlerAdapter(), replier);
}