use of com.sequenceiq.freeipa.flow.freeipa.backup.full.event.TriggerFullBackupEvent in project cloudbreak by hortonworks.
the class FullBackupActions method backupAction.
@Bean(name = "BACKUP_STATE")
public Action<?, ?> backupAction() {
return new AbstractBackupAction<>(TriggerFullBackupEvent.class) {
@Override
protected void doExecute(BackupContext context, TriggerFullBackupEvent payload, Map<Object, Object> variables) {
LOGGER.info("Full backup flow started with: {}", payload);
setChainedAction(variables, payload.isChained());
setFinalChain(variables, payload.isFinalChain());
setOperationId(variables, payload.getOperationId());
sendEvent(context, new CreateFullBackupEvent(payload.getResourceId()));
}
};
}
Aggregations