@Test public void testDeleteHostFromCluster() { InstanceMetaData hostMetadata = new InstanceMetaData(); underTest.deleteHostFromCluster(hostMetadata); verify(clouderaManagerDecomissioner).deleteHost(stack, hostMetadata, apiClient); }
@Override public void deleteHostFromCluster(InstanceMetaData data) { clouderaManagerDecomissioner.deleteHost(stack, data, client); }
ClouderaManagerClusterDecomissionService implements ClusterDecomissionService { @Override public void deleteHostFromCluster(InstanceMetaData data) { clouderaManagerDecomissioner.deleteHost(stack, data, client); } }
ClouderaManagerClusterDecomissionService implements ClusterDecomissionService { @Override public void deleteHostFromCluster(InstanceMetaData data) { clouderaManagerDecomissioner.deleteHost(stack, data, client); } ClouderaManagerClusterDecomissionService(Stack stack, HttpClientConfig clientConfig); }
ClouderaManagerClusterDecomissionService implements ClusterDecomissionService { @Override public void deleteHostFromCluster(InstanceMetaData data) { clouderaManagerDecomissioner.deleteHost(stack, data, client); } ClouderaManagerClusterDecomissionService(Stack stack, HttpClientConfig clientConfig); @PostConstruct void initApiClient(); @Override void verifyNodesAreRemovable(Stack stack, Collection<InstanceMetaData> removableInstances); @Override Set<InstanceMetaData> collectDownscaleCandidates(@Nonnull HostGroup hostGroup, Integer scalingAdjustment, int defaultRootVolumeSize,
            Set<InstanceMetaData> instanceMetaDatasInStack); @Override Map<String, InstanceMetaData> collectHostsToRemove(@Nonnull HostGroup hostGroup, Set<String> hostNames); @Override Set<String> decommissionClusterNodes(Map<String, InstanceMetaData> hostsToRemove); @Override void removeManagementServices(); @Override void deleteHostFromCluster(InstanceMetaData data); @Override void deleteUnusedCredentialsFromCluster(); @Override void restartStaleServices(); @Override Map<String, Map<String, String>> getStatusOfComponentsForHost(String host); }
ClouderaManagerClusterDecomissionService implements ClusterDecomissionService { @Override public void deleteHostFromCluster(InstanceMetaData data) { clouderaManagerDecomissioner.deleteHost(stack, data, client); } ClouderaManagerClusterDecomissionService(Stack stack, HttpClientConfig clientConfig); @PostConstruct void initApiClient(); @Override void verifyNodesAreRemovable(Stack stack, Collection<InstanceMetaData> removableInstances); @Override Set<InstanceMetaData> collectDownscaleCandidates(@Nonnull HostGroup hostGroup, Integer scalingAdjustment, int defaultRootVolumeSize,
            Set<InstanceMetaData> instanceMetaDatasInStack); @Override Map<String, InstanceMetaData> collectHostsToRemove(@Nonnull HostGroup hostGroup, Set<String> hostNames); @Override Set<String> decommissionClusterNodes(Map<String, InstanceMetaData> hostsToRemove); @Override void removeManagementServices(); @Override void deleteHostFromCluster(InstanceMetaData data); @Override void deleteUnusedCredentialsFromCluster(); @Override void restartStaleServices(); @Override Map<String, Map<String, String>> getStatusOfComponentsForHost(String host);  }