Search in sources :

Example 6 with PathComputerFactory

use of org.openkilda.pce.PathComputerFactory in project open-kilda by telstra.

the class FlowUpdateHubBolt 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 FlowUpdateService(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) FlowUpdateService(org.openkilda.wfm.topology.flowhs.service.FlowUpdateService)

Example 7 with PathComputerFactory

use of org.openkilda.pce.PathComputerFactory 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 8 with PathComputerFactory

use of org.openkilda.pce.PathComputerFactory 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)

Aggregations

AvailableNetworkFactory (org.openkilda.pce.AvailableNetworkFactory)8 PathComputerFactory (org.openkilda.pce.PathComputerFactory)8 PathComputer (org.openkilda.pce.PathComputer)7 FlowResourcesManager (org.openkilda.wfm.share.flow.resources.FlowResourcesManager)7 RuleManager (org.openkilda.rulemanager.RuleManager)3 RuleManagerImpl (org.openkilda.rulemanager.RuleManagerImpl)3 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 BeforeClass (org.junit.BeforeClass)1 PropertiesBasedConfigurationProvider (org.openkilda.config.provider.PropertiesBasedConfigurationProvider)1 PathComputerConfig (org.openkilda.pce.PathComputerConfig)1 FlowDeleteService (org.openkilda.wfm.topology.flowhs.service.FlowDeleteService)1 FlowMirrorPointCreateService (org.openkilda.wfm.topology.flowhs.service.FlowMirrorPointCreateService)1 YFlowCreateService (org.openkilda.wfm.topology.flowhs.service.yflow.YFlowCreateService)1 YFlowRerouteService (org.openkilda.wfm.topology.flowhs.service.yflow.YFlowRerouteService)1 YFlowUpdateService (org.openkilda.wfm.topology.flowhs.service.yflow.YFlowUpdateService)1