Search in sources :

Example 11 with FlowLog

use of com.sequenceiq.cloudbreak.domain.FlowLog in project cloudbreak by hortonworks.

the class FlowLogService method finalize.

private FlowLog finalize(Long stackId, String flowId, String state) {
    flowLogRepository.finalizeByFlowId(flowId);
    FlowLog flowLog = new FlowLog(stackId, flowId, state, Boolean.TRUE);
    flowLog.setCloudbreakNodeId(cloudbreakNodeConfig.getId());
    return flowLogRepository.save(flowLog);
}
Also used : FlowLog(com.sequenceiq.cloudbreak.domain.FlowLog)

Aggregations

FlowLog (com.sequenceiq.cloudbreak.domain.FlowLog)11 ArrayList (java.util.ArrayList)8 Random (java.util.Random)8 StackCreationFlowConfig (com.sequenceiq.cloudbreak.core.flow2.stack.provision.StackCreationFlowConfig)7 StackTerminationFlowConfig (com.sequenceiq.cloudbreak.core.flow2.stack.termination.StackTerminationFlowConfig)7 FlowLogRepository (com.sequenceiq.cloudbreak.repository.FlowLogRepository)7 Arrays (java.util.Arrays)7 Collections (java.util.Collections)7 List (java.util.List)7 Map (java.util.Map)7 Set (java.util.Set)7 Status (com.sequenceiq.cloudbreak.api.model.Status)6 PollGroup (com.sequenceiq.cloudbreak.cloud.scheduler.PollGroup)6 InMemoryStateStore (com.sequenceiq.cloudbreak.cloud.store.InMemoryStateStore)6 Flow2Handler (com.sequenceiq.cloudbreak.core.flow2.Flow2Handler)6 FlowRegister (com.sequenceiq.cloudbreak.core.flow2.FlowRegister)6 CloudbreakNode (com.sequenceiq.cloudbreak.domain.CloudbreakNode)6 CloudbreakNodeConfig (com.sequenceiq.cloudbreak.ha.CloudbreakNodeConfig)6 CloudbreakNodeRepository (com.sequenceiq.cloudbreak.repository.CloudbreakNodeRepository)6 StackRepository (com.sequenceiq.cloudbreak.repository.StackRepository)6