本文整理了Java中org.wildfly.clustering.group.Node.getSocketAddress()
方法的一些代码示例,展示了Node.getSocketAddress()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getSocketAddress()
方法的具体详情如下:
包路径:org.wildfly.clustering.group.Node
类名称:Node
方法名:getSocketAddress
[英]Returns the unique socking binding address of this node.
[中]返回此节点的唯一套接字绑定地址。
代码示例来源:origin: wildfly/wildfly
@Override
public boolean preferred(Node node) {
return node.getSocketAddress().getAddress().getHostAddress().equals(this.address.getAddress().getHostAddress()) && (node.getSocketAddress().getPort() == this.address.getPort());
}
}
代码示例来源:origin: wildfly/wildfly
@Override
public boolean preferred(Node node) {
OutboundSocketBinding binding = this.binding.get();
try {
return binding.getResolvedDestinationAddress().equals(node.getSocketAddress().getAddress()) && (binding.getDestinationPort() == node.getSocketAddress().getPort());
} catch (UnknownHostException e) {
throw new IllegalArgumentException(e);
}
}
}
代码示例来源:origin: org.wildfly/wildfly-clustering-singleton-api
@Override
public boolean preferred(Node node) {
return node.getSocketAddress().getAddress().getHostAddress().equals(this.address.getAddress().getHostAddress()) && (node.getSocketAddress().getPort() == this.address.getPort());
}
}
代码示例来源:origin: org.jboss.eap/wildfly-clustering-singleton-extension
@Override
public boolean preferred(Node node) {
OutboundSocketBinding binding = this.binding.get();
try {
return binding.getResolvedDestinationAddress().equals(node.getSocketAddress().getAddress()) && (binding.getDestinationPort() == node.getSocketAddress().getPort());
} catch (UnknownHostException e) {
throw new IllegalArgumentException(e);
}
}
}
代码示例来源:origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm
String sourceKey(Node node) {
return node.getName() + ":" + node.getSocketAddress().toString();
}
代码示例来源:origin: io.thorntail/topology-jgroups
String sourceKey(Node node) {
return node.getName() + ":" + node.getSocketAddress().toString();
}
内容来源于网络,如有侵权,请联系作者删除!