use of com.sequenceiq.cloudbreak.reactor.api.event.stack.StackWithFingerprintsEvent in project cloudbreak by hortonworks.
the class StackCreationActions method tlsSetupAction.
@Bean(name = "TLS_SETUP_STATE")
public Action<?, ?> tlsSetupAction() {
return new AbstractStackCreationAction<GetSSHFingerprintsResult>(GetSSHFingerprintsResult.class) {
@Override
protected void doExecute(StackContext context, GetSSHFingerprintsResult payload, Map<Object, Object> variables) throws Exception {
stackCreationService.setupTls(context);
StackWithFingerprintsEvent fingerprintsEvent = new StackWithFingerprintsEvent(payload.getStackId(), payload.getSshFingerprints());
sendEvent(context.getFlowId(), StackCreationEvent.TLS_SETUP_FINISHED_EVENT.event(), fingerprintsEvent);
}
};
}
Aggregations