class ClouderaManagerModificationService implements ClusterModificationService {

    @VisibleForTesting
    void pollDeployConfig(ApiCommand restartCommand) throws CloudbreakException {
        PollingResult hostTemplatePollingResult = clouderaManagerPollingServiceProvider.startPollingCmClientConfigDeployment(
                stack, apiClient, restartCommand.getId());
        if (isExited(hostTemplatePollingResult)) {
            throw new CancellationException("Cluster was terminated while waiting for config deploy");
        } else if (isTimeout(hostTemplatePollingResult)) {
            throw new CloudbreakException("Timeout while Cloudera Manager was config deploying services.");
        }
    }

    public  ClouderaManagerModificationService(Stack stack, HttpClientConfig clientConfig);

}