Пример #1
0
 static Collection<ClientIdentifier> getManageableClients(IMonitoringConsumer consumer) {
   return consumer
       .getChildNamesForNode("management", "clients")
       .orElse(Collections.emptyList())
       .stream()
       .map(ClientIdentifier::valueOf)
       .collect(Collectors.toSet());
 }
Пример #2
0
 static boolean isManageableClient(IMonitoringConsumer consumer, ClientIdentifier to) {
   return consumer.getChildNamesForNode("management", "clients", to.getClientId()).isPresent();
 }