Java Code Examples for com.alibaba.dubbo.remoting.Server#close()

The following examples show how to use com.alibaba.dubbo.remoting.Server#close() . 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: AbstractExchangeGroup.java    From dubbo-2.6.5 with Apache License 2.0 5 votes vote down vote up
@Override
public void leave(URL url) throws RemotingException {
    Server server = servers.remove(url);
    if (server != null) {
        server.close();
    }
}
 
Example 2
Source File: NettyClientTest.java    From dubbo-remoting-netty4 with Apache License 2.0 5 votes vote down vote up
@Test
public void testServerClose() throws Exception {
    for (int i = 0; i < 100; i++) {
        Server aServer = Exchangers.bind(URL.valueOf("exchange://localhost:" + (5000 + i) + "?transporter=netty4"), new TelnetServerHandler());
        aServer.close();
    }
}
 
Example 3
Source File: NettyClientTest.java    From dubbo-remoting-netty4 with Apache License 2.0 5 votes vote down vote up
@Test
public void testServerClose() throws Exception {
    for (int i = 0; i < 100; i++) {
        Server aServer = Exchangers.bind(URL.valueOf("exchange://localhost:" + (5000 + i) + "?transporter=netty4"), new TelnetServerHandler());
        aServer.close();
    }
}
 
Example 4
Source File: NettyClientTest.java    From dubbox with Apache License 2.0 5 votes vote down vote up
@Test
public void testServerClose() throws Exception {
    for (int i = 0; i < 100; i++) {
        Server aServer = Exchangers.bind(URL.valueOf("exchange://localhost:" + (5000 + i) + "?client=netty"), new TelnetServerHandler());
        aServer.close();
    }
}
 
Example 5
Source File: NettyClientTest.java    From dubbox with Apache License 2.0 5 votes vote down vote up
@Test
public void testServerClose() throws Exception {
    for (int i = 0; i < 100; i++) {
        Server aServer = Exchangers.bind(URL.valueOf("exchange://localhost:" + (5000 + i) + "?client=netty"), new TelnetServerHandler());
        aServer.close();
    }
}
 
Example 6
Source File: NettyClientTest.java    From dubbo3 with Apache License 2.0 5 votes vote down vote up
@Test
public void testServerClose() throws Exception {
    for (int i = 0; i < 100; i++) {
        Server aServer = Exchangers.bind(URL.valueOf("exchange://localhost:" + (5000 + i) + "?client=netty"), new TelnetServerHandler());
        aServer.close();
    }
}
 
Example 7
Source File: NettyClientTest.java    From dubbox-hystrix with Apache License 2.0 5 votes vote down vote up
@Test
public void testServerClose() throws Exception {
    for (int i = 0; i < 100; i++) {
        Server aServer = Exchangers.bind(URL.valueOf("exchange://localhost:" + (5000 + i) + "?client=netty"), new TelnetServerHandler());
        aServer.close();
    }
}
 
Example 8
Source File: NettyClientTest.java    From dubbox with Apache License 2.0 5 votes vote down vote up
@Test
public void testServerClose() throws Exception {
    for (int i = 0; i < 100; i++) {
        Server aServer = Exchangers.bind(URL.valueOf("exchange://localhost:" + (5000 + i) + "?client=netty"), new TelnetServerHandler());
        aServer.close();
    }
}
 
Example 9
Source File: NettyClientTest.java    From dubbox with Apache License 2.0 5 votes vote down vote up
@Test
public void testServerClose() throws Exception {
    for (int i = 0; i < 100; i++) {
        Server aServer = Exchangers.bind(URL.valueOf("exchange://localhost:" + (5000 + i) + "?transporter=netty4"), new TelnetServerHandler());
        aServer.close();
    }
}
 
Example 10
Source File: AbstractGroup.java    From dubbo-2.6.5 with Apache License 2.0 5 votes vote down vote up
@Override
public void leave(URL url) throws RemotingException {
    Server server = servers.remove(url);
    if (server != null) {
        server.close();
    }
}
 
Example 11
Source File: NettyClientTest.java    From dubbo-2.6.5 with Apache License 2.0 5 votes vote down vote up
@Test
public void testServerClose() throws Exception {
    for (int i = 0; i < 100; i++) {
        Server aServer = Exchangers.bind(URL.valueOf("exchange://localhost:" + (5000 + i) + "?client=netty"), new TelnetServerHandler());
        aServer.close();
    }
}
 
Example 12
Source File: AbstractGroup.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public void leave(URL url) throws RemotingException {
    Server server = servers.remove(url);
    if (server != null) {
        server.close();
    }
}
 
Example 13
Source File: AbstractExchangeGroup.java    From dubbox-hystrix with Apache License 2.0 4 votes vote down vote up
public void leave(URL url) throws RemotingException {
    Server server = servers.remove(url);
    if (server != null) {
        server.close();
    }
}
 
Example 14
Source File: AbstractGroup.java    From dubbox-hystrix with Apache License 2.0 4 votes vote down vote up
public void leave(URL url) throws RemotingException {
    Server server = servers.remove(url);
    if (server != null) {
        server.close();
    }
}
 
Example 15
Source File: AbstractExchangeGroup.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public void leave(URL url) throws RemotingException {
    Server server = servers.remove(url);
    if (server != null) {
        server.close();
    }
}
 
Example 16
Source File: AbstractExchangeGroup.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public void leave(URL url) throws RemotingException {
    Server server = servers.remove(url);
    if (server != null) {
        server.close();
    }
}
 
Example 17
Source File: AbstractGroup.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public void leave(URL url) throws RemotingException {
    Server server = servers.remove(url);
    if (server != null) {
        server.close();
    }
}
 
Example 18
Source File: AbstractExchangeGroup.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public void leave(URL url) throws RemotingException {
    Server server = servers.remove(url);
    if (server != null) {
        server.close();
    }
}
 
Example 19
Source File: AbstractGroup.java    From dubbox with Apache License 2.0 4 votes vote down vote up
public void leave(URL url) throws RemotingException {
    Server server = servers.remove(url);
    if (server != null) {
        server.close();
    }
}