@Override public boolean equals(Object other) { if (other == this) return true; if (other instanceof Entry) { Entry that = (Entry) other; return this.action == that.action && this.host.equals(that.host); } return false; }
void refreshConnectedHost(Host host) { // Deal with the control connection if it was using this host Host ccHost = controlConnection.connectedHost(); if (ccHost == null || ccHost.equals(host) && loadBalancingPolicy().distance(ccHost) != HostDistance.LOCAL) controlConnection.triggerReconnect(); for (SessionManager s : sessions) s.updateCreatedPools(host); }
@Override public boolean equals(Object other) { if (other == this) return true; if (other instanceof Entry) { Entry that = (Entry) other; return this.action == that.action && this.host.equals(that.host); } return false; }
if (!host.equals(host4)) { TokenRange hostRange = metadata.getTokenRanges(keyspace, host).iterator().next(); assertThat(host4Range).doesNotIntersect(hostRange);
void refreshConnectedHost(Host host) { // Deal with the control connection if it was using this host Host ccHost = controlConnection.connectedHost(); if (ccHost == null || ccHost.equals(host) && loadBalancingPolicy().distance(ccHost) != HostDistance.LOCAL) controlConnection.triggerReconnect(); for (SessionManager s : sessions) s.updateCreatedPools(host); }
void refreshConnectedHost(Host host) { // Deal with the control connection if it was using this host Host ccHost = controlConnection.connectedHost(); if (ccHost == null || ccHost.equals(host) && loadBalancingPolicy().distance(ccHost) != HostDistance.LOCAL) controlConnection.triggerReconnect(); for (SessionManager s : sessions) s.updateCreatedPools(host); }
void refreshConnectedHost(Host host) { // Deal with the control connection if it was using this host Host ccHost = controlConnection.connectedHost(); if (ccHost == null || ccHost.equals(host) && loadBalancingPolicy().distance(ccHost) != HostDistance.LOCAL) controlConnection.triggerReconnect(); for (SessionManager s : sessions) s.updateCreatedPools(host); }
if (!(!peerHost1.equals(peerHost2) // consistent because peer1/peer2 sets will be comprehensive || localHost.equals(peerHost1) // consistent because local/peer1 sets will be comprehensive || localHost.equals(peerHost2) // consistent because local/peer2 sets will be comprehensive )) { throw new InternalFijiError(
if (!host.equals(host4)) { TokenRange hostRange = metadata.getTokenRanges(keyspace, host).iterator().next(); assertThat(host4Range).doesNotIntersect(hostRange);