Search in sources :

Example 6 with RuleManagerImpl

use of org.openkilda.rulemanager.RuleManagerImpl in project open-kilda by telstra.

the class YFlowDeleteHubBolt method init.

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

Example 7 with RuleManagerImpl

use of org.openkilda.rulemanager.RuleManagerImpl 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 8 with RuleManagerImpl

use of org.openkilda.rulemanager.RuleManagerImpl in project open-kilda by telstra.

the class FlowPathSwapServiceTest method setUp.

@Before
public void setUp() {
    doAnswer(buildSpeakerRequestAnswer()).when(carrier).sendSpeakerRequest(any(SpeakerRequest.class));
    setupFlowRepositorySpy();
    setupFlowPathRepositorySpy();
    RuleManagerConfig ruleManagerConfig = configurationProvider.getConfiguration(RuleManagerConfig.class);
    ruleManager = spy(new RuleManagerImpl(ruleManagerConfig));
}
Also used : RuleManagerConfig(org.openkilda.rulemanager.RuleManagerConfig) SpeakerRequest(org.openkilda.floodlight.api.request.SpeakerRequest) RuleManagerImpl(org.openkilda.rulemanager.RuleManagerImpl) Before(org.junit.Before)

Aggregations

RuleManagerImpl (org.openkilda.rulemanager.RuleManagerImpl)8 FlowResourcesManager (org.openkilda.wfm.share.flow.resources.FlowResourcesManager)6 RuleManager (org.openkilda.rulemanager.RuleManager)5 AvailableNetworkFactory (org.openkilda.pce.AvailableNetworkFactory)3 PathComputer (org.openkilda.pce.PathComputer)3 PathComputerFactory (org.openkilda.pce.PathComputerFactory)3 Before (org.junit.Before)2 RuleManagerConfig (org.openkilda.rulemanager.RuleManagerConfig)2 FlowDeleteService (org.openkilda.wfm.topology.flowhs.service.FlowDeleteService)2 SpeakerRequest (org.openkilda.floodlight.api.request.SpeakerRequest)1 IslDirectionalReference (org.openkilda.persistence.dummy.IslDirectionalReference)1 PersistenceDummyEntityFactory (org.openkilda.persistence.dummy.PersistenceDummyEntityFactory)1 FlowResourcesConfig (org.openkilda.wfm.share.flow.resources.FlowResourcesConfig)1 FlowCreateService (org.openkilda.wfm.topology.flowhs.service.FlowCreateService)1 FlowPathSwapService (org.openkilda.wfm.topology.flowhs.service.FlowPathSwapService)1 FlowRerouteService (org.openkilda.wfm.topology.flowhs.service.FlowRerouteService)1 FlowUpdateService (org.openkilda.wfm.topology.flowhs.service.FlowUpdateService)1 YFlowCreateService (org.openkilda.wfm.topology.flowhs.service.yflow.YFlowCreateService)1 YFlowDeleteService (org.openkilda.wfm.topology.flowhs.service.yflow.YFlowDeleteService)1 YFlowRerouteService (org.openkilda.wfm.topology.flowhs.service.yflow.YFlowRerouteService)1