use of com.alibaba.otter.shared.communication.core.impl.dubbo.DubboCommunicationEndpoint in project otter by alibaba.
the class DubboConnectionTest method initial.
@BeforeClass
public void initial() {
// 创建endpoint
DubboCommunicationEndpoint endpoint = new DubboCommunicationEndpoint(2088);
endpoint.initial();
}
use of com.alibaba.otter.shared.communication.core.impl.dubbo.DubboCommunicationEndpoint in project otter by alibaba.
the class NodeCommunicationEndpoint method afterPropertiesSet.
public void afterPropertiesSet() throws Exception {
// String ip = config.currentNode().getIp();
Long port = configClientService.currentNode().getPort();
if (endpoint instanceof RmiCommunicationEndpoint) {
RmiCommunicationEndpoint rmiEndpoint = (RmiCommunicationEndpoint) endpoint;
// rmiEndpoint.setHost(ip);
rmiEndpoint.setPort(port.intValue());
}
if (endpoint instanceof DubboCommunicationEndpoint) {
DubboCommunicationEndpoint dubboEndpoint = (DubboCommunicationEndpoint) endpoint;
dubboEndpoint.setPort(port.intValue());
}
endpoint.initial();
}
use of com.alibaba.otter.shared.communication.core.impl.dubbo.DubboCommunicationEndpoint in project otter by alibaba.
the class DubboCommunicationTest method initial.
@BeforeClass
public void initial() {
DubboCommunicationEndpoint endpoint2088 = new DubboCommunicationEndpoint(2088);
endpoint2088.initial();
DubboCommunicationEndpoint endpoint2089 = new DubboCommunicationEndpoint(2089);
endpoint2089.initial();
CommunicationConnectionFactory factory = new DubboCommunicationConnectionFactory();
client = new DefaultCommunicationClientImpl(factory);
client.initial();
}
Aggregations