@Test public void canGetClientPaxosUris() { Set<String> clientPaxosUris = PaxosTimeLockUriUtils.getClientPaxosUris(ADDRESSES, CLIENT); assertThat(clientPaxosUris).containsExactlyInAnyOrder( String.join("/", ADDRESS_1, PaxosTimeLockConstants.INTERNAL_NAMESPACE, PaxosTimeLockConstants.CLIENT_PAXOS_NAMESPACE, CLIENT), String.join("/", ADDRESS_2, PaxosTimeLockConstants.INTERNAL_NAMESPACE, PaxosTimeLockConstants.CLIENT_PAXOS_NAMESPACE, CLIENT)); }
public static Set<String> getClientPaxosUris(Set<String> addresses, String client) { return getNamespacedUris( addresses, PaxosTimeLockConstants.INTERNAL_NAMESPACE, PaxosTimeLockConstants.CLIENT_PAXOS_NAMESPACE, client); }
PaxosTimeLockUriUtils { public static Set<String> getClientPaxosUris(Set<String> addresses, String client) { return getNamespacedUris( addresses, PaxosTimeLockConstants.INTERNAL_NAMESPACE, PaxosTimeLockConstants.CLIENT_PAXOS_NAMESPACE, client); } }
PaxosTimeLockUriUtils { public static Set<String> getClientPaxosUris(Set<String> addresses, String client) { return getNamespacedUris( addresses, PaxosTimeLockConstants.INTERNAL_NAMESPACE, PaxosTimeLockConstants.CLIENT_PAXOS_NAMESPACE, client); } private  PaxosTimeLockUriUtils(); }
PaxosTimeLockUriUtils { public static Set<String> getClientPaxosUris(Set<String> addresses, String client) { return getNamespacedUris( addresses, PaxosTimeLockConstants.INTERNAL_NAMESPACE, PaxosTimeLockConstants.CLIENT_PAXOS_NAMESPACE, client); } private  PaxosTimeLockUriUtils(); static Set<String> getLeaderPaxosUris(Set<String> addresses); static Set<String> getClientPaxosUris(Set<String> addresses, String client); }
PaxosTimeLockUriUtils { public static Set<String> getClientPaxosUris(Set<String> addresses, String client) { return getNamespacedUris( addresses, PaxosTimeLockConstants.INTERNAL_NAMESPACE, PaxosTimeLockConstants.CLIENT_PAXOS_NAMESPACE, client); } private  PaxosTimeLockUriUtils(); static Set<String> getLeaderPaxosUris(Set<String> addresses); static Set<String> getClientPaxosUris(Set<String> addresses, String client);  }