use of com.alibaba.otter.shared.communication.core.impl.rmi.RmiCommunicationEndpoint 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.rmi.RmiCommunicationEndpoint in project otter by alibaba.
the class RmiCommunicationTest method initial.
@BeforeClass
public void initial() {
RmiCommunicationEndpoint endpoint1099 = new RmiCommunicationEndpoint(1099);
endpoint1099.setAlwaysCreateRegistry(false);
endpoint1099.initial();
RmiCommunicationEndpoint endpoint1098 = new RmiCommunicationEndpoint(1098);
endpoint1098.setAlwaysCreateRegistry(false);
endpoint1098.initial();
CommunicationConnectionPoolFactory factory = new CommunicationConnectionPoolFactory(new RmiCommunicationConnectionFactory());
factory.initial();
client = new DefaultCommunicationClientImpl(factory);
client.initial();
}
use of com.alibaba.otter.shared.communication.core.impl.rmi.RmiCommunicationEndpoint in project otter by alibaba.
the class RmiConnectionTest method initial.
@BeforeClass
public void initial() {
// 创建endpoint
RmiCommunicationEndpoint endpoint = new RmiCommunicationEndpoint(1099);
endpoint.setAlwaysCreateRegistry(false);
endpoint.initial();
}
Aggregations