@Test public void ignoresHostsWithoutHealthChecks() throws ApiException { hostsAre(new ApiHost().hostname("hostY")); assertEquals(Collections.emptyMap(), subject.getHostStatuses()); }
@Override public Map<HostName, ClusterManagerState.ClusterManagerStatus> getHostStatuses() { return convertHealthSummary(getHostHealthSummary(), ClouderaManagerClusterStatusService::healthSummaryToState); }
ClouderaManagerClusterStatusService implements ClusterStatusService { @Override public Map<HostName, ClusterManagerState.ClusterManagerStatus> getHostStatuses() { return convertHealthSummary(getHostHealthSummary(), ClouderaManagerClusterStatusService::healthSummaryToState); } }
ClouderaManagerClusterStatusService implements ClusterStatusService { @Override public Map<HostName, ClusterManagerState.ClusterManagerStatus> getHostStatuses() { return convertHealthSummary(getHostHealthSummary(), ClouderaManagerClusterStatusService::healthSummaryToState); } ClouderaManagerClusterStatusService(Stack stack, HttpClientConfig clientConfig); }
ClouderaManagerClusterStatusService implements ClusterStatusService { @Override public Map<HostName, ClusterManagerState.ClusterManagerStatus> getHostStatuses() { return convertHealthSummary(getHostHealthSummary(), ClouderaManagerClusterStatusService::healthSummaryToState); } ClouderaManagerClusterStatusService(Stack stack, HttpClientConfig clientConfig); @PostConstruct void initApiClient(); @Override ClusterStatusResult getStatus(boolean blueprintPresent); @Override ExtendedHostStatuses getExtendedHostStatuses(); @Override Map<HostName, ClusterManagerState.ClusterManagerStatus> getHostStatuses(); @Override Map<HostName, String> getHostStatusesRaw(); @Override boolean isClusterManagerRunning(); }
ClouderaManagerClusterStatusService implements ClusterStatusService { @Override public Map<HostName, ClusterManagerState.ClusterManagerStatus> getHostStatuses() { return convertHealthSummary(getHostHealthSummary(), ClouderaManagerClusterStatusService::healthSummaryToState); } ClouderaManagerClusterStatusService(Stack stack, HttpClientConfig clientConfig); @PostConstruct void initApiClient(); @Override ClusterStatusResult getStatus(boolean blueprintPresent); @Override ExtendedHostStatuses getExtendedHostStatuses(); @Override Map<HostName, ClusterManagerState.ClusterManagerStatus> getHostStatuses(); @Override Map<HostName, String> getHostStatusesRaw(); @Override boolean isClusterManagerRunning();  }