use of com.sequenceiq.cloudbreak.reactor.api.event.orchestration.CmSyncTriggerEvent in project cloudbreak by hortonworks.
the class CmSyncActions method cmSync.
@Bean(name = "CM_SYNC_STATE")
public Action<?, ?> cmSync() {
return new AbstractCmSyncAction<>(CmSyncTriggerEvent.class) {
@Override
protected void doExecute(CmSyncContext context, CmSyncTriggerEvent payload, Map<Object, Object> variables) {
CmSyncRequest cmSyncRequest = new CmSyncRequest(context.getStack().getId(), payload.getCandidateImageUuids(), context.getFlowTriggerUserCrn());
sendEvent(context, cmSyncRequest.selector(), cmSyncRequest);
}
};
}
Aggregations