Search in sources :

Example 6 with FlowLog

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

the class HeartbeatServiceTest method testOneNodeTakesAllFlows.

@Test
public void testOneNodeTakesAllFlows() {
    List<CloudbreakNode> clusterNodes = getClusterNodes();
    // myself
    clusterNodes.get(0).setLastUpdated(200_000);
    // set all nodes to failed except myself
    for (int i = 1; i < clusterNodes.size(); i++) {
        CloudbreakNode node = clusterNodes.get(i);
        node.setLastUpdated(50_000);
    }
    when(cloudbreakNodeRepository.findAll()).thenReturn(clusterNodes);
    when(clock.getCurrentTime()).thenReturn(200_000L);
    // all flows that need to be re-distributed
    List<String> suspendedFlows = new ArrayList<>();
    List<FlowLog> node1FlowLogs = getFlowLogs(2, 5000);
    suspendedFlows.addAll(node1FlowLogs.stream().map(FlowLog::getFlowId).distinct().collect(Collectors.toList()));
    when(flowLogRepository.findAllByCloudbreakNodeId(NODE_1_ID)).thenReturn(new HashSet<>(node1FlowLogs));
    Set<FlowLog> node2FlowLogs = new HashSet<>(getFlowLogs(3, 3000));
    suspendedFlows.addAll(node2FlowLogs.stream().map(FlowLog::getFlowId).distinct().collect(Collectors.toList()));
    when(flowLogRepository.findAllByCloudbreakNodeId(NODE_2_ID)).thenReturn(node2FlowLogs);
    Map<CloudbreakNode, List<String>> distribution = new HashMap<>();
    distribution.computeIfAbsent(clusterNodes.get(0), v -> new ArrayList<>()).addAll(Arrays.asList(suspendedFlows.get(0), suspendedFlows.get(1), suspendedFlows.get(2), suspendedFlows.get(3), suspendedFlows.get(4)));
    when(flowDistributor.distribute(any(), any())).thenReturn(distribution);
    Set<FlowLog> myNewFlowLogs = new HashSet<>();
    myNewFlowLogs.addAll(node1FlowLogs);
    myNewFlowLogs.addAll(node2FlowLogs);
    when(flowLogRepository.findAllByCloudbreakNodeId(MY_ID)).thenReturn(myNewFlowLogs);
    when(runningFlows.get(any())).thenReturn(null);
    heartbeatService.scheduledFlowDistribution();
    verify(flowLogRepository).save(flowLogListCaptor.capture());
    List<FlowLog> updatedFlows = flowLogListCaptor.getValue();
    assertEquals(myNewFlowLogs.size(), updatedFlows.size());
    for (FlowLog updatedFlow : updatedFlows) {
        assertEquals(MY_ID, updatedFlow.getCloudbreakNodeId());
    }
    verify(flow2Handler, times(5)).restartFlow(stringCaptor.capture());
    List<String> allFlowIds = stringCaptor.getAllValues();
    assertEquals(5, allFlowIds.size());
    for (String flowId : suspendedFlows) {
        assertTrue(allFlowIds.contains(flowId));
    }
}
Also used : Arrays(java.util.Arrays) StackRepository(com.sequenceiq.cloudbreak.repository.StackRepository) Mock(org.mockito.Mock) Matchers.anyCollection(org.mockito.Matchers.anyCollection) RunWith(org.junit.runner.RunWith) FlowLog(com.sequenceiq.cloudbreak.domain.FlowLog) HashMap(java.util.HashMap) Random(java.util.Random) Supplier(java.util.function.Supplier) Captor(org.mockito.Captor) Matchers.anyString(org.mockito.Matchers.anyString) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) Status(com.sequenceiq.cloudbreak.api.model.Status) Flow2Handler(com.sequenceiq.cloudbreak.core.flow2.Flow2Handler) ArgumentCaptor(org.mockito.ArgumentCaptor) OptimisticLockingFailureException(org.springframework.dao.OptimisticLockingFailureException) Map(java.util.Map) StackTerminationFlowConfig(com.sequenceiq.cloudbreak.core.flow2.stack.termination.StackTerminationFlowConfig) Before(org.junit.Before) InjectMocks(org.mockito.InjectMocks) CloudbreakNodeRepository(com.sequenceiq.cloudbreak.repository.CloudbreakNodeRepository) FlowRegister(com.sequenceiq.cloudbreak.core.flow2.FlowRegister) CloudbreakNode(com.sequenceiq.cloudbreak.domain.CloudbreakNode) InMemoryStateStore(com.sequenceiq.cloudbreak.cloud.store.InMemoryStateStore) Assert.assertTrue(org.junit.Assert.assertTrue) Set(java.util.Set) ReflectionTestUtils(org.springframework.test.util.ReflectionTestUtils) Mockito.times(org.mockito.Mockito.times) Test(org.junit.Test) Mockito.when(org.mockito.Mockito.when) StackCreationFlowConfig(com.sequenceiq.cloudbreak.core.flow2.stack.provision.StackCreationFlowConfig) Collectors(java.util.stream.Collectors) FlowDistributor(com.sequenceiq.cloudbreak.service.ha.FlowDistributor) Mockito.verify(org.mockito.Mockito.verify) Matchers.any(org.mockito.Matchers.any) HeartbeatService(com.sequenceiq.cloudbreak.service.ha.HeartbeatService) List(java.util.List) MockitoJUnitRunner(org.mockito.runners.MockitoJUnitRunner) FlowLogRepository(com.sequenceiq.cloudbreak.repository.FlowLogRepository) PollGroup(com.sequenceiq.cloudbreak.cloud.scheduler.PollGroup) Collections(java.util.Collections) CloudbreakNodeConfig(com.sequenceiq.cloudbreak.ha.CloudbreakNodeConfig) Assert.assertEquals(org.junit.Assert.assertEquals) FlowLog(com.sequenceiq.cloudbreak.domain.FlowLog) HashMap(java.util.HashMap) CloudbreakNode(com.sequenceiq.cloudbreak.domain.CloudbreakNode) ArrayList(java.util.ArrayList) Matchers.anyString(org.mockito.Matchers.anyString) ArrayList(java.util.ArrayList) List(java.util.List) HashSet(java.util.HashSet) Test(org.junit.Test)

Example 7 with FlowLog

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

the class HeartbeatServiceTest method testOneNodeTakesAllFlowsWithCleanup.

@Test
public void testOneNodeTakesAllFlowsWithCleanup() {
    List<CloudbreakNode> clusterNodes = getClusterNodes();
    // myself
    clusterNodes.get(0).setLastUpdated(200_000);
    // set all nodes to failed except myself
    for (int i = 1; i < clusterNodes.size(); i++) {
        CloudbreakNode node = clusterNodes.get(i);
        node.setLastUpdated(50_000);
    }
    when(cloudbreakNodeRepository.findAll()).thenReturn(clusterNodes);
    when(clock.getCurrentTime()).thenReturn(200_000L);
    // all flows that need to be re-distributed
    List<String> suspendedFlows = new ArrayList<>();
    List<FlowLog> node1FlowLogs = getFlowLogs(2, 5000);
    suspendedFlows.addAll(node1FlowLogs.stream().map(FlowLog::getFlowId).distinct().collect(Collectors.toList()));
    when(flowLogRepository.findAllByCloudbreakNodeId(NODE_1_ID)).thenReturn(new HashSet<>(node1FlowLogs)).thenReturn(Collections.emptySet());
    Set<FlowLog> node2FlowLogs = new HashSet<>(getFlowLogs(3, 3000));
    suspendedFlows.addAll(node2FlowLogs.stream().map(FlowLog::getFlowId).distinct().collect(Collectors.toList()));
    when(flowLogRepository.findAllByCloudbreakNodeId(NODE_2_ID)).thenReturn(node2FlowLogs).thenReturn(Collections.emptySet());
    Map<CloudbreakNode, List<String>> distribution = new HashMap<>();
    distribution.computeIfAbsent(clusterNodes.get(0), v -> new ArrayList<>()).addAll(Arrays.asList(suspendedFlows.get(0), suspendedFlows.get(1), suspendedFlows.get(2), suspendedFlows.get(3), suspendedFlows.get(4)));
    when(flowDistributor.distribute(any(), any())).thenReturn(distribution);
    Set<FlowLog> myNewFlowLogs = new HashSet<>();
    myNewFlowLogs.addAll(node1FlowLogs);
    myNewFlowLogs.addAll(node2FlowLogs);
    when(flowLogRepository.findAllByCloudbreakNodeId(MY_ID)).thenReturn(myNewFlowLogs);
    when(runningFlows.get(any())).thenReturn(null);
    heartbeatService.scheduledFlowDistribution();
    verify(flowLogRepository).save(flowLogListCaptor.capture());
    List<FlowLog> updatedFlows = flowLogListCaptor.getValue();
    assertEquals(myNewFlowLogs.size(), updatedFlows.size());
    for (FlowLog updatedFlow : updatedFlows) {
        assertEquals(MY_ID, updatedFlow.getCloudbreakNodeId());
    }
    verify(flow2Handler, times(5)).restartFlow(stringCaptor.capture());
    List<String> allFlowIds = stringCaptor.getAllValues();
    assertEquals(5, allFlowIds.size());
    for (String flowId : suspendedFlows) {
        assertTrue(allFlowIds.contains(flowId));
    }
}
Also used : Arrays(java.util.Arrays) StackRepository(com.sequenceiq.cloudbreak.repository.StackRepository) Mock(org.mockito.Mock) Matchers.anyCollection(org.mockito.Matchers.anyCollection) RunWith(org.junit.runner.RunWith) FlowLog(com.sequenceiq.cloudbreak.domain.FlowLog) HashMap(java.util.HashMap) Random(java.util.Random) Supplier(java.util.function.Supplier) Captor(org.mockito.Captor) Matchers.anyString(org.mockito.Matchers.anyString) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) Status(com.sequenceiq.cloudbreak.api.model.Status) Flow2Handler(com.sequenceiq.cloudbreak.core.flow2.Flow2Handler) ArgumentCaptor(org.mockito.ArgumentCaptor) OptimisticLockingFailureException(org.springframework.dao.OptimisticLockingFailureException) Map(java.util.Map) StackTerminationFlowConfig(com.sequenceiq.cloudbreak.core.flow2.stack.termination.StackTerminationFlowConfig) Before(org.junit.Before) InjectMocks(org.mockito.InjectMocks) CloudbreakNodeRepository(com.sequenceiq.cloudbreak.repository.CloudbreakNodeRepository) FlowRegister(com.sequenceiq.cloudbreak.core.flow2.FlowRegister) CloudbreakNode(com.sequenceiq.cloudbreak.domain.CloudbreakNode) InMemoryStateStore(com.sequenceiq.cloudbreak.cloud.store.InMemoryStateStore) Assert.assertTrue(org.junit.Assert.assertTrue) Set(java.util.Set) ReflectionTestUtils(org.springframework.test.util.ReflectionTestUtils) Mockito.times(org.mockito.Mockito.times) Test(org.junit.Test) Mockito.when(org.mockito.Mockito.when) StackCreationFlowConfig(com.sequenceiq.cloudbreak.core.flow2.stack.provision.StackCreationFlowConfig) Collectors(java.util.stream.Collectors) FlowDistributor(com.sequenceiq.cloudbreak.service.ha.FlowDistributor) Mockito.verify(org.mockito.Mockito.verify) Matchers.any(org.mockito.Matchers.any) HeartbeatService(com.sequenceiq.cloudbreak.service.ha.HeartbeatService) List(java.util.List) MockitoJUnitRunner(org.mockito.runners.MockitoJUnitRunner) FlowLogRepository(com.sequenceiq.cloudbreak.repository.FlowLogRepository) PollGroup(com.sequenceiq.cloudbreak.cloud.scheduler.PollGroup) Collections(java.util.Collections) CloudbreakNodeConfig(com.sequenceiq.cloudbreak.ha.CloudbreakNodeConfig) Assert.assertEquals(org.junit.Assert.assertEquals) FlowLog(com.sequenceiq.cloudbreak.domain.FlowLog) HashMap(java.util.HashMap) CloudbreakNode(com.sequenceiq.cloudbreak.domain.CloudbreakNode) ArrayList(java.util.ArrayList) Matchers.anyString(org.mockito.Matchers.anyString) ArrayList(java.util.ArrayList) List(java.util.List) HashSet(java.util.HashSet) Test(org.junit.Test)

Example 8 with FlowLog

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

the class HeartbeatServiceTest method testDistributionConcurrencyWithDifferentFlows.

@Test
public void testDistributionConcurrencyWithDifferentFlows() {
    List<CloudbreakNode> clusterNodes = getClusterNodes();
    // myself
    clusterNodes.get(0).setLastUpdated(200_000);
    // failed node
    clusterNodes.get(1).setLastUpdated(50_000);
    // active node
    clusterNodes.get(2).setLastUpdated(200_000);
    when(cloudbreakNodeRepository.findAll()).thenReturn(clusterNodes);
    when(clock.getCurrentTime()).thenReturn(200_000L);
    // all flows that need to be re-distributed
    List<String> suspendedFlows = new ArrayList<>();
    List<FlowLog> node1FlowLogs = getFlowLogs(3, 5000);
    suspendedFlows.addAll(node1FlowLogs.stream().map(FlowLog::getFlowId).distinct().collect(Collectors.toList()));
    when(flowLogRepository.findAllByCloudbreakNodeId(NODE_1_ID)).thenReturn(new HashSet<>(node1FlowLogs));
    Map<CloudbreakNode, List<String>> distribution = new HashMap<>();
    distribution.computeIfAbsent(clusterNodes.get(0), v -> new ArrayList<>()).addAll(Arrays.asList(suspendedFlows.get(0), suspendedFlows.get(2)));
    distribution.computeIfAbsent(clusterNodes.get(2), v -> new ArrayList<>()).addAll(Collections.singletonList(suspendedFlows.get(1)));
    when(flowDistributor.distribute(any(), any())).thenReturn(distribution);
    List<FlowLog> myNewFlowLogs = node1FlowLogs.stream().filter(fl -> fl.getFlowId().equalsIgnoreCase(suspendedFlows.get(0))).collect(Collectors.toList());
    when(flowLogRepository.findAllByCloudbreakNodeId(MY_ID)).thenReturn(new HashSet<>(myNewFlowLogs));
    when(runningFlows.get(any())).thenReturn(null);
    when(flowLogRepository.save(anyCollection())).thenThrow(new OptimisticLockingFailureException("Someone already distributed the flows.."));
    heartbeatService.scheduledFlowDistribution();
    verify(flow2Handler, times(1)).restartFlow(stringCaptor.capture());
    List<String> allFlowIds = stringCaptor.getAllValues();
    assertEquals(1, allFlowIds.size());
    for (FlowLog flowLog : myNewFlowLogs) {
        assertTrue(allFlowIds.contains(flowLog.getFlowId()));
    }
}
Also used : Arrays(java.util.Arrays) StackRepository(com.sequenceiq.cloudbreak.repository.StackRepository) Mock(org.mockito.Mock) Matchers.anyCollection(org.mockito.Matchers.anyCollection) RunWith(org.junit.runner.RunWith) FlowLog(com.sequenceiq.cloudbreak.domain.FlowLog) HashMap(java.util.HashMap) Random(java.util.Random) Supplier(java.util.function.Supplier) Captor(org.mockito.Captor) Matchers.anyString(org.mockito.Matchers.anyString) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) Status(com.sequenceiq.cloudbreak.api.model.Status) Flow2Handler(com.sequenceiq.cloudbreak.core.flow2.Flow2Handler) ArgumentCaptor(org.mockito.ArgumentCaptor) OptimisticLockingFailureException(org.springframework.dao.OptimisticLockingFailureException) Map(java.util.Map) StackTerminationFlowConfig(com.sequenceiq.cloudbreak.core.flow2.stack.termination.StackTerminationFlowConfig) Before(org.junit.Before) InjectMocks(org.mockito.InjectMocks) CloudbreakNodeRepository(com.sequenceiq.cloudbreak.repository.CloudbreakNodeRepository) FlowRegister(com.sequenceiq.cloudbreak.core.flow2.FlowRegister) CloudbreakNode(com.sequenceiq.cloudbreak.domain.CloudbreakNode) InMemoryStateStore(com.sequenceiq.cloudbreak.cloud.store.InMemoryStateStore) Assert.assertTrue(org.junit.Assert.assertTrue) Set(java.util.Set) ReflectionTestUtils(org.springframework.test.util.ReflectionTestUtils) Mockito.times(org.mockito.Mockito.times) Test(org.junit.Test) Mockito.when(org.mockito.Mockito.when) StackCreationFlowConfig(com.sequenceiq.cloudbreak.core.flow2.stack.provision.StackCreationFlowConfig) Collectors(java.util.stream.Collectors) FlowDistributor(com.sequenceiq.cloudbreak.service.ha.FlowDistributor) Mockito.verify(org.mockito.Mockito.verify) Matchers.any(org.mockito.Matchers.any) HeartbeatService(com.sequenceiq.cloudbreak.service.ha.HeartbeatService) List(java.util.List) MockitoJUnitRunner(org.mockito.runners.MockitoJUnitRunner) FlowLogRepository(com.sequenceiq.cloudbreak.repository.FlowLogRepository) PollGroup(com.sequenceiq.cloudbreak.cloud.scheduler.PollGroup) Collections(java.util.Collections) CloudbreakNodeConfig(com.sequenceiq.cloudbreak.ha.CloudbreakNodeConfig) Assert.assertEquals(org.junit.Assert.assertEquals) FlowLog(com.sequenceiq.cloudbreak.domain.FlowLog) HashMap(java.util.HashMap) CloudbreakNode(com.sequenceiq.cloudbreak.domain.CloudbreakNode) ArrayList(java.util.ArrayList) Matchers.anyString(org.mockito.Matchers.anyString) OptimisticLockingFailureException(org.springframework.dao.OptimisticLockingFailureException) ArrayList(java.util.ArrayList) List(java.util.List) Test(org.junit.Test)

Example 9 with FlowLog

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

the class EvenFlowDistributorTest method getFlowLogs.

private List<FlowLog> getFlowLogs(int flowCount) {
    List<FlowLog> flows = new ArrayList<>();
    Random random = new Random(System.currentTimeMillis());
    int flowId = random.nextInt(5000);
    long stackId = random.nextLong();
    for (int i = 0; i < flowCount; i++) {
        flows.add(new FlowLog(stackId + i, "" + flowId + i, "RUNNING", false));
    }
    return flows;
}
Also used : Random(java.util.Random) FlowLog(com.sequenceiq.cloudbreak.domain.FlowLog) ArrayList(java.util.ArrayList)

Example 10 with FlowLog

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

the class Flow2Handler method restartFlow.

public void restartFlow(String flowId) {
    FlowLog flowLog = flowLogRepository.findFirstByFlowIdOrderByCreatedDesc(flowId);
    if (RESTARTABLE_FLOWS.contains(flowLog.getFlowType())) {
        Optional<FlowConfiguration<?>> flowConfig = flowConfigs.stream().filter(fc -> fc.getClass().equals(flowLog.getFlowType())).findFirst();
        Payload payload = (Payload) JsonReader.jsonToJava(flowLog.getPayload());
        Flow flow = flowConfig.get().createFlow(flowId, payload.getStackId());
        runningFlows.put(flow, flowLog.getFlowChainId());
        if (flowLog.getFlowChainId() != null) {
            flowChainHandler.restoreFlowChain(flowLog.getFlowChainId());
        }
        Map<Object, Object> variables = (Map<Object, Object>) JsonReader.jsonToJava(flowLog.getVariables());
        flow.initialize(flowLog.getCurrentState(), variables);
        RestartAction restartAction = flowConfig.get().getRestartAction(flowLog.getNextEvent());
        if (restartAction != null) {
            restartAction.restart(flowId, flowLog.getFlowChainId(), flowLog.getNextEvent(), payload);
            return;
        }
    }
    flowLogService.terminate(flowLog.getStackId(), flowId);
}
Also used : ClusterUpgradeFlowConfig(com.sequenceiq.cloudbreak.core.flow2.cluster.upgrade.ClusterUpgradeFlowConfig) Arrays(java.util.Arrays) FlowConfiguration(com.sequenceiq.cloudbreak.core.flow2.config.FlowConfiguration) StackStopFlowConfig(com.sequenceiq.cloudbreak.core.flow2.stack.stop.StackStopFlowConfig) StackSyncFlowConfig(com.sequenceiq.cloudbreak.core.flow2.stack.sync.StackSyncFlowConfig) LoggerFactory(org.slf4j.LoggerFactory) JsonReader(com.cedarsoftware.util.io.JsonReader) FlowLog(com.sequenceiq.cloudbreak.domain.FlowLog) TERMINATION_EVENT(com.sequenceiq.cloudbreak.core.flow2.stack.termination.StackTerminationEvent.TERMINATION_EVENT) MDCBuilder(com.sequenceiq.cloudbreak.logger.MDCBuilder) Acceptable(com.sequenceiq.cloudbreak.cloud.Acceptable) Inject(javax.inject.Inject) ClusterDownscaleFlowConfig(com.sequenceiq.cloudbreak.core.flow2.cluster.downscale.ClusterDownscaleFlowConfig) ManualStackRepairTriggerFlowConfig(com.sequenceiq.cloudbreak.core.flow2.stack.repair.ManualStackRepairTriggerFlowConfig) Event(reactor.bus.Event) ClusterTerminationFlowConfig(com.sequenceiq.cloudbreak.core.flow2.cluster.termination.ClusterTerminationFlowConfig) ClusterStopFlowConfig(com.sequenceiq.cloudbreak.core.flow2.cluster.stop.ClusterStopFlowConfig) Map(java.util.Map) FlowChains(com.sequenceiq.cloudbreak.core.flow2.chain.FlowChains) FlowLogService(com.sequenceiq.cloudbreak.service.flowlog.FlowLogService) ChangePrimaryGatewayFlowConfig(com.sequenceiq.cloudbreak.core.flow2.cluster.repair.ChangePrimaryGatewayFlowConfig) StackTerminationFlowConfig(com.sequenceiq.cloudbreak.core.flow2.stack.termination.StackTerminationFlowConfig) StackDownscaleConfig(com.sequenceiq.cloudbreak.core.flow2.stack.downscale.StackDownscaleConfig) InstanceTerminationFlowConfig(com.sequenceiq.cloudbreak.core.flow2.stack.instance.termination.InstanceTerminationFlowConfig) Logger(org.slf4j.Logger) ClusterCreationFlowConfig(com.sequenceiq.cloudbreak.core.flow2.cluster.provision.ClusterCreationFlowConfig) ClusterCredentialChangeFlowConfig(com.sequenceiq.cloudbreak.core.flow2.cluster.userpasswd.ClusterCredentialChangeFlowConfig) Resource(javax.annotation.Resource) Set(java.util.Set) ClusterResetFlowConfig(com.sequenceiq.cloudbreak.core.flow2.cluster.reset.ClusterResetFlowConfig) ClusterUpscaleFlowConfig(com.sequenceiq.cloudbreak.core.flow2.cluster.upscale.ClusterUpscaleFlowConfig) UUID(java.util.UUID) StackCreationFlowConfig(com.sequenceiq.cloudbreak.core.flow2.stack.provision.StackCreationFlowConfig) Payload(com.sequenceiq.cloudbreak.cloud.event.Payload) ClusterStartFlowConfig(com.sequenceiq.cloudbreak.core.flow2.cluster.start.ClusterStartFlowConfig) ClusterSyncFlowConfig(com.sequenceiq.cloudbreak.core.flow2.cluster.sync.ClusterSyncFlowConfig) List(java.util.List) Component(org.springframework.stereotype.Component) StackUpscaleConfig(com.sequenceiq.cloudbreak.core.flow2.stack.upscale.StackUpscaleConfig) FlowChainHandler(com.sequenceiq.cloudbreak.core.flow2.chain.FlowChainHandler) LoggerContextKey(com.sequenceiq.cloudbreak.logger.LoggerContextKey) FlowLogRepository(com.sequenceiq.cloudbreak.repository.FlowLogRepository) Optional(java.util.Optional) StackStartFlowConfig(com.sequenceiq.cloudbreak.core.flow2.stack.start.StackStartFlowConfig) Consumer(reactor.fn.Consumer) Collections(java.util.Collections) FlowConfiguration(com.sequenceiq.cloudbreak.core.flow2.config.FlowConfiguration) FlowLog(com.sequenceiq.cloudbreak.domain.FlowLog) Payload(com.sequenceiq.cloudbreak.cloud.event.Payload) Map(java.util.Map)

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