public HostAssert hasBroadcastSocketAddress(InetSocketAddress address) { assertThat(actual.getBroadcastSocketAddress()).isNotNull().isEqualTo(address); return this; }
public HostAssert hasNoBroadcastSocketAddress() { assertThat(actual.getBroadcastSocketAddress()).isNull(); return this; }
InterruptedException { boolean isConnectedHost = c.address.equals(host.getSocketAddress()); if (isConnectedHost || host.getBroadcastSocketAddress() != null) { String query; if (isConnectedHost) { query = SELECT_LOCAL; } else { InetSocketAddress broadcastAddress = host.getBroadcastSocketAddress(); query = isPeersV2 return row; } else { InetSocketAddress address = host.getBroadcastSocketAddress();
assertThat(host.getBroadcastSocketAddress()).isNotNull(); row = session() .execute( "select tokens from system.peers where peer = '" + host.getBroadcastSocketAddress().getAddress().getHostAddress() + "'") .one();
assertThat(host2).isNotNull(); InetSocketAddress node2OldBroadcastAddress = host2.getBroadcastSocketAddress(); InetSocketAddress node2NewBroadcastAddress = new InetSocketAddress(InetAddress.getByName("1.2.3.4"), scassandras.getBinaryPort()); assertThat(host2.getBroadcastSocketAddress().getAddress()) .isEqualTo(node2NewBroadcastAddress.getAddress());
public HostAssert hasBroadcastSocketAddress(InetSocketAddress address) { assertThat(actual.getBroadcastSocketAddress()).isNotNull().isEqualTo(address); return this; }
public HostAssert hasNoBroadcastSocketAddress() { assertThat(actual.getBroadcastSocketAddress()).isNull(); return this; }
assertThat(host.getBroadcastSocketAddress()).isNotNull(); row = session() .execute( "select tokens from system.peers where peer = '" + host.getBroadcastSocketAddress().getAddress().getHostAddress() + "'") .one();
assertThat(host2).isNotNull(); InetSocketAddress node2OldBroadcastAddress = host2.getBroadcastSocketAddress(); InetSocketAddress node2NewBroadcastAddress = new InetSocketAddress(InetAddress.getByName("1.2.3.4"), scassandras.getBinaryPort()); assertThat(host2.getBroadcastSocketAddress().getAddress()) .isEqualTo(node2NewBroadcastAddress.getAddress());