Search in sources :

Example 1 with YFlowRerouteService

use of org.openkilda.wfm.topology.flowhs.service.yflow.YFlowRerouteService 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)

Aggregations

AvailableNetworkFactory (org.openkilda.pce.AvailableNetworkFactory)1 PathComputer (org.openkilda.pce.PathComputer)1 PathComputerFactory (org.openkilda.pce.PathComputerFactory)1 RuleManager (org.openkilda.rulemanager.RuleManager)1 RuleManagerImpl (org.openkilda.rulemanager.RuleManagerImpl)1 FlowResourcesManager (org.openkilda.wfm.share.flow.resources.FlowResourcesManager)1 FlowRerouteService (org.openkilda.wfm.topology.flowhs.service.FlowRerouteService)1 YFlowRerouteService (org.openkilda.wfm.topology.flowhs.service.yflow.YFlowRerouteService)1