use of com.sequenceiq.freeipa.flow.freeipa.provision.event.hostmetadatasetup.HostMetadataSetupRequest in project cloudbreak by hortonworks.
the class FreeIpaUpscaleActions method collectingHostMetadataAction.
@Bean(name = "UPSCALE_COLLECTING_HOST_METADATA_STATE")
public Action<?, ?> collectingHostMetadataAction() {
return new AbstractUpscaleAction<>(BootstrapMachinesSuccess.class) {
@Override
protected void doExecute(StackContext context, BootstrapMachinesSuccess payload, Map<Object, Object> variables) {
Stack stack = context.getStack();
stackUpdater.updateStackStatus(stack.getId(), getInProgressStatus(variables), "Collecting host metadata");
HostMetadataSetupRequest request = new HostMetadataSetupRequest(stack.getId());
sendEvent(context, request.selector(), request);
}
};
}
Aggregations