use of com.sequenceiq.freeipa.flow.stack.upgrade.ccm.event.UpgradeCcmEvent in project cloudbreak by hortonworks.
the class UpgradeCcmChangeTunnelHandlerTest method setUp.
@BeforeEach
void setUp() {
UpgradeCcmEvent upgradeCcmEvent = new UpgradeCcmEvent("selector", STACK_ID, Tunnel.CCM);
event = new Event<>(upgradeCcmEvent);
}
use of com.sequenceiq.freeipa.flow.stack.upgrade.ccm.event.UpgradeCcmEvent in project cloudbreak by hortonworks.
the class UpgradeCcmDeregisterMinaHandler method doAccept.
@Override
protected Selectable doAccept(HandlerEvent<UpgradeCcmEvent> event) {
UpgradeCcmEvent request = event.getData();
if (request.getOldTunnel().useCcmV1()) {
LOGGER.info("Deregistering mina for CCM upgrade...");
upgradeCcmService.deregisterMina(request.getResourceId());
} else {
LOGGER.info("Deregistering mina is skipped for previous tunnel type '{}'", request.getOldTunnel());
}
return UPGRADE_CCM_DEREGISTER_MINA_FINISHED_EVENT.createBasedOn(request);
}
use of com.sequenceiq.freeipa.flow.stack.upgrade.ccm.event.UpgradeCcmEvent in project cloudbreak by hortonworks.
the class UpgradeCcmHealthCheckHandler method doAccept.
@Override
protected Selectable doAccept(HandlerEvent<UpgradeCcmEvent> event) {
UpgradeCcmEvent request = event.getData();
if (request.getOldTunnel().useCcmV1()) {
LOGGER.info("Health check for CCM upgrade...");
upgradeCcmService.healthCheck(request.getResourceId());
} else {
LOGGER.info("Health check is skipped for previous tunnel type '{}'", request.getOldTunnel());
}
return UPGRADE_CCM_HEALTH_CHECK_FINISHED_EVENT.createBasedOn(request);
}
use of com.sequenceiq.freeipa.flow.stack.upgrade.ccm.event.UpgradeCcmEvent in project cloudbreak by hortonworks.
the class UpgradeCcmObtainAgentDataHandler method doAccept.
@Override
protected Selectable doAccept(HandlerEvent<UpgradeCcmEvent> event) {
UpgradeCcmEvent request = event.getData();
if (request.getOldTunnel().useCcmV1()) {
LOGGER.info("Obtaining agent data for CCM upgrade...");
upgradeCcmService.obtainAgentData(request.getResourceId());
} else {
LOGGER.info("Obtaining agent data is skipped for previous tunnel type '{}'", request.getOldTunnel());
}
return UPGRADE_CCM_OBTAIN_AGENT_DATA_FINISHED_EVENT.createBasedOn(request);
}
use of com.sequenceiq.freeipa.flow.stack.upgrade.ccm.event.UpgradeCcmEvent in project cloudbreak by hortonworks.
the class UpgradeCcmRegisterClusterProxyHandler method doAccept.
@Override
protected Selectable doAccept(HandlerEvent<UpgradeCcmEvent> event) {
UpgradeCcmEvent request = event.getData();
if (request.getOldTunnel().useCcmV1()) {
LOGGER.info("Registering to cluster proxy for CCM upgrade...");
upgradeCcmService.registerClusterProxy(request.getResourceId());
} else {
LOGGER.info("Registering to cluster proxy step is skipped for previous tunnel type '{}'", request.getOldTunnel());
}
return UPGRADE_CCM_REGISTER_CLUSTER_PROXY_FINISHED_EVENT.createBasedOn(request);
}
Aggregations