Search in sources :

Example 16 with FlowResourcesManager

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

the class FlowRerouteHubBolt method init.

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

Example 17 with FlowResourcesManager

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

the class FlowMirrorPointCreateHubBolt method init.

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

Example 18 with FlowResourcesManager

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

the class FlowPathSwapHubBolt method init.

@Override
protected void init() {
    FlowResourcesManager resourcesManager = new FlowResourcesManager(persistenceManager, flowResourcesConfig);
    RuleManager ruleManager = new RuleManagerImpl(ruleManagerConfig);
    service = new FlowPathSwapService(this, persistenceManager, ruleManager, config.getSpeakerCommandRetriesLimit(), resourcesManager);
}
Also used : RuleManager(org.openkilda.rulemanager.RuleManager) FlowResourcesManager(org.openkilda.wfm.share.flow.resources.FlowResourcesManager) FlowPathSwapService(org.openkilda.wfm.topology.flowhs.service.FlowPathSwapService) RuleManagerImpl(org.openkilda.rulemanager.RuleManagerImpl)

Example 19 with FlowResourcesManager

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

the class FlowValidationHubServiceTest method setUpOnce.

@BeforeClass
public static void setUpOnce() {
    FlowValidationTestBase.setUpOnce();
    flowResourcesManager = new FlowResourcesManager(persistenceManager, flowResourcesConfig);
    flowValidationService = new FlowValidationService(persistenceManager, flowResourcesManager, MIN_BURST_SIZE_IN_KBITS, BURST_COEFFICIENT);
}
Also used : FlowResourcesManager(org.openkilda.wfm.share.flow.resources.FlowResourcesManager) FlowValidationService(org.openkilda.wfm.topology.flowhs.fsm.validation.FlowValidationService) BeforeClass(org.junit.BeforeClass)

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