Search in sources :

Example 1 with FlowResourcesManager

use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager 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 FlowResourcesManager

use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager 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)

Example 3 with FlowResourcesManager

use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager in project open-kilda by telstra.

the class YFlowUpdateHubBolt 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);
    basicFlowUpdateService = new FlowUpdateService(new FlowUpdateHubCarrierIsolatingResponsesAndLifecycleEvents(this), persistenceManager, pathComputer, resourcesManager, flowUpdateConfig.getPathAllocationRetriesLimit(), flowUpdateConfig.getPathAllocationRetryDelay(), flowUpdateConfig.getResourceAllocationRetriesLimit(), flowUpdateConfig.getSpeakerCommandRetriesLimit());
    yflowUpdateService = new YFlowUpdateService(this, persistenceManager, pathComputer, resourcesManager, ruleManager, basicFlowUpdateService, yflowUpdateConfig.getResourceAllocationRetriesLimit(), yflowUpdateConfig.getSpeakerCommandRetriesLimit(), yflowUpdateConfig.getPrefixForGeneratedYFlowId(), yflowUpdateConfig.getPrefixForGeneratedSubFlowId());
}
Also used : PathComputer(org.openkilda.pce.PathComputer) AvailableNetworkFactory(org.openkilda.pce.AvailableNetworkFactory) PathComputerFactory(org.openkilda.pce.PathComputerFactory) RuleManager(org.openkilda.rulemanager.RuleManager) FlowResourcesManager(org.openkilda.wfm.share.flow.resources.FlowResourcesManager) YFlowUpdateService(org.openkilda.wfm.topology.flowhs.service.yflow.YFlowUpdateService) FlowUpdateService(org.openkilda.wfm.topology.flowhs.service.FlowUpdateService) YFlowUpdateService(org.openkilda.wfm.topology.flowhs.service.yflow.YFlowUpdateService) RuleManagerImpl(org.openkilda.rulemanager.RuleManagerImpl)

Example 4 with FlowResourcesManager

use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager in project open-kilda by telstra.

the class YFlowRerouteHubBolt 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);
    flowRerouteService = new FlowRerouteService(new FlowRerouteHubCarrierIsolatingResponsesAndLifecycleEvents(this), persistenceManager, pathComputer, resourcesManager, flowRerouteConfig.getPathAllocationRetriesLimit(), flowRerouteConfig.getPathAllocationRetryDelay(), flowRerouteConfig.getResourceAllocationRetriesLimit(), flowRerouteConfig.getSpeakerCommandRetriesLimit());
    yFlowRerouteService = new YFlowRerouteService(this, persistenceManager, pathComputer, resourcesManager, ruleManager, flowRerouteService, yFlowRerouteConfig.getResourceAllocationRetriesLimit(), yFlowRerouteConfig.getSpeakerCommandRetriesLimit());
}
Also used : PathComputer(org.openkilda.pce.PathComputer) AvailableNetworkFactory(org.openkilda.pce.AvailableNetworkFactory) PathComputerFactory(org.openkilda.pce.PathComputerFactory) RuleManager(org.openkilda.rulemanager.RuleManager) YFlowRerouteService(org.openkilda.wfm.topology.flowhs.service.yflow.YFlowRerouteService) FlowResourcesManager(org.openkilda.wfm.share.flow.resources.FlowResourcesManager) RuleManagerImpl(org.openkilda.rulemanager.RuleManagerImpl) YFlowRerouteService(org.openkilda.wfm.topology.flowhs.service.yflow.YFlowRerouteService) FlowRerouteService(org.openkilda.wfm.topology.flowhs.service.FlowRerouteService)

Example 5 with FlowResourcesManager

use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager in project open-kilda by telstra.

the class YFlowValidationHubBolt method init.

@Override
public void init() {
    FlowResourcesManager flowResourcesManager = new FlowResourcesManager(persistenceManager, flowResourcesConfig);
    flowValidationHubService = new FlowValidationHubService(new FlowValidationHubCarrierIsolatingResponsesAndLifecycleEvents(this), persistenceManager, flowResourcesManager, flowMeterMinBurstSizeInKbits, flowMeterBurstCoefficient);
    YFlowValidationService yFlowValidationService = new YFlowValidationService(persistenceManager, flowResourcesManager, flowMeterMinBurstSizeInKbits, flowMeterBurstCoefficient);
    yFlowValidationHubService = new YFlowValidationHubService(this, persistenceManager, flowValidationHubService, yFlowValidationService);
}
Also used : YFlowValidationHubService(org.openkilda.wfm.topology.flowhs.service.yflow.YFlowValidationHubService) FlowResourcesManager(org.openkilda.wfm.share.flow.resources.FlowResourcesManager) YFlowValidationService(org.openkilda.wfm.topology.flowhs.fsm.yflow.validation.YFlowValidationService) YFlowValidationHubService(org.openkilda.wfm.topology.flowhs.service.yflow.YFlowValidationHubService) FlowValidationHubService(org.openkilda.wfm.topology.flowhs.service.FlowValidationHubService)

Aggregations

FlowResourcesManager (org.openkilda.wfm.share.flow.resources.FlowResourcesManager)19 AvailableNetworkFactory (org.openkilda.pce.AvailableNetworkFactory)7 PathComputer (org.openkilda.pce.PathComputer)7 PathComputerFactory (org.openkilda.pce.PathComputerFactory)7 RuleManagerImpl (org.openkilda.rulemanager.RuleManagerImpl)6 RuleManager (org.openkilda.rulemanager.RuleManager)5 Before (org.junit.Before)3 FlowResourcesConfig (org.openkilda.wfm.share.flow.resources.FlowResourcesConfig)3 FlowDeleteService (org.openkilda.wfm.topology.flowhs.service.FlowDeleteService)3 BeforeClass (org.junit.BeforeClass)2 IslDirectionalReference (org.openkilda.persistence.dummy.IslDirectionalReference)2 PersistenceDummyEntityFactory (org.openkilda.persistence.dummy.PersistenceDummyEntityFactory)2 FlowCreateService (org.openkilda.wfm.topology.flowhs.service.FlowCreateService)2 FlowRerouteService (org.openkilda.wfm.topology.flowhs.service.FlowRerouteService)2 FlowUpdateService (org.openkilda.wfm.topology.flowhs.service.FlowUpdateService)2 FlowValidationHubService (org.openkilda.wfm.topology.flowhs.service.FlowValidationHubService)2 PersistenceContextRequired (org.openkilda.persistence.context.PersistenceContextRequired)1 RuleManagerConfig (org.openkilda.rulemanager.RuleManagerConfig)1 PipelineException (org.openkilda.wfm.error.PipelineException)1 FlowValidationService (org.openkilda.wfm.topology.flowhs.fsm.validation.FlowValidationService)1