Search in sources :

Example 1 with FlowCreateService

use of org.openkilda.wfm.topology.flowhs.service.FlowCreateService in project open-kilda by telstra.

the class FlowCreateHubBolt method init.

@Override
protected void init() {
    FlowResourcesManager resourcesManager = new FlowResourcesManager(persistenceManager, flowResourcesConfig);
    AvailableNetworkFactory availableNetworkFactory = new AvailableNetworkFactory(pathComputerConfig, persistenceManager.getRepositoryFactory());
    PathComputer pathComputer = new PathComputerFactory(pathComputerConfig, availableNetworkFactory).getPathComputer();
    service = new FlowCreateService(this, persistenceManager, pathComputer, resourcesManager, config.getFlowCreationRetriesLimit(), config.getPathAllocationRetriesLimit(), config.getPathAllocationRetryDelay(), config.getSpeakerCommandRetriesLimit());
}
Also used : PathComputer(org.openkilda.pce.PathComputer) AvailableNetworkFactory(org.openkilda.pce.AvailableNetworkFactory) PathComputerFactory(org.openkilda.pce.PathComputerFactory) FlowCreateService(org.openkilda.wfm.topology.flowhs.service.FlowCreateService) FlowResourcesManager(org.openkilda.wfm.share.flow.resources.FlowResourcesManager)

Example 2 with FlowCreateService

use of org.openkilda.wfm.topology.flowhs.service.FlowCreateService in project open-kilda by telstra.

the class YFlowCreateHubBolt method init.

@Override
protected void init() {
    FlowResourcesManager resourcesManager = new FlowResourcesManager(persistenceManager, flowResourcesConfig);
    AvailableNetworkFactory availableNetworkFactory = new AvailableNetworkFactory(pathComputerConfig, persistenceManager.getRepositoryFactory());
    PathComputer pathComputer = new PathComputerFactory(pathComputerConfig, availableNetworkFactory).getPathComputer();
    RuleManager ruleManager = new RuleManagerImpl(ruleManagerConfig);
    FlowGenericHubCarrierIsolatingResponsesAndLifecycleEvents isolatingCarrier = new FlowGenericHubCarrierIsolatingResponsesAndLifecycleEvents(this);
    flowCreateService = new FlowCreateService(isolatingCarrier, persistenceManager, pathComputer, resourcesManager, flowCreateConfig.getFlowCreationRetriesLimit(), flowCreateConfig.getPathAllocationRetriesLimit(), flowCreateConfig.getPathAllocationRetryDelay(), flowCreateConfig.getSpeakerCommandRetriesLimit());
    flowDeleteService = new FlowDeleteService(isolatingCarrier, persistenceManager, resourcesManager, yFlowCreateConfig.getSpeakerCommandRetriesLimit());
    yFlowCreateService = new YFlowCreateService(this, persistenceManager, pathComputer, resourcesManager, ruleManager, flowCreateService, flowDeleteService, yFlowCreateConfig.getResourceAllocationRetriesLimit(), yFlowCreateConfig.getSpeakerCommandRetriesLimit(), yFlowCreateConfig.getPrefixForGeneratedYFlowId(), yFlowCreateConfig.getPrefixForGeneratedSubFlowId());
}
Also used : PathComputer(org.openkilda.pce.PathComputer) AvailableNetworkFactory(org.openkilda.pce.AvailableNetworkFactory) PathComputerFactory(org.openkilda.pce.PathComputerFactory) RuleManager(org.openkilda.rulemanager.RuleManager) YFlowCreateService(org.openkilda.wfm.topology.flowhs.service.yflow.YFlowCreateService) FlowCreateService(org.openkilda.wfm.topology.flowhs.service.FlowCreateService) FlowResourcesManager(org.openkilda.wfm.share.flow.resources.FlowResourcesManager) FlowDeleteService(org.openkilda.wfm.topology.flowhs.service.FlowDeleteService) YFlowCreateService(org.openkilda.wfm.topology.flowhs.service.yflow.YFlowCreateService) RuleManagerImpl(org.openkilda.rulemanager.RuleManagerImpl)

Aggregations

AvailableNetworkFactory (org.openkilda.pce.AvailableNetworkFactory)2 PathComputer (org.openkilda.pce.PathComputer)2 PathComputerFactory (org.openkilda.pce.PathComputerFactory)2 FlowResourcesManager (org.openkilda.wfm.share.flow.resources.FlowResourcesManager)2 FlowCreateService (org.openkilda.wfm.topology.flowhs.service.FlowCreateService)2 RuleManager (org.openkilda.rulemanager.RuleManager)1 RuleManagerImpl (org.openkilda.rulemanager.RuleManagerImpl)1 FlowDeleteService (org.openkilda.wfm.topology.flowhs.service.FlowDeleteService)1 YFlowCreateService (org.openkilda.wfm.topology.flowhs.service.yflow.YFlowCreateService)1