Search in sources :

Example 1 with UpgradeCcmHealthCheckResult

use of com.sequenceiq.cloudbreak.reactor.api.event.cluster.upgrade.ccm.UpgradeCcmHealthCheckResult in project cloudbreak by hortonworks.

the class HealthCheckHandler method doAccept.

@Override
public Selectable doAccept(HandlerEvent<UpgradeCcmHealthCheckRequest> event) {
    UpgradeCcmHealthCheckRequest request = event.getData();
    Long stackId = request.getResourceId();
    LOGGER.info("Health check for CCM upgrade...");
    upgradeCcmService.healthCheck(stackId);
    return new UpgradeCcmHealthCheckResult(stackId, request.getClusterId(), request.getOldTunnel());
}
Also used : UpgradeCcmHealthCheckResult(com.sequenceiq.cloudbreak.reactor.api.event.cluster.upgrade.ccm.UpgradeCcmHealthCheckResult) UpgradeCcmHealthCheckRequest(com.sequenceiq.cloudbreak.reactor.api.event.cluster.upgrade.ccm.UpgradeCcmHealthCheckRequest)

Aggregations

UpgradeCcmHealthCheckRequest (com.sequenceiq.cloudbreak.reactor.api.event.cluster.upgrade.ccm.UpgradeCcmHealthCheckRequest)1 UpgradeCcmHealthCheckResult (com.sequenceiq.cloudbreak.reactor.api.event.cluster.upgrade.ccm.UpgradeCcmHealthCheckResult)1