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