use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager 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());
}
use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager in project open-kilda by telstra.
the class AbstractFlowTest method before.
@Before
public void before() {
dummyFactory = new PersistenceDummyEntityFactory(persistenceManager);
FlowResourcesConfig resourceConfig = configurationProvider.getConfiguration(FlowResourcesConfig.class);
flowResourcesManager = spy(new FlowResourcesManager(persistenceManager, resourceConfig));
alterFeatureToggles(true, true, true);
dummyFactory.makeSwitch(SWITCH_SOURCE);
dummyFactory.makeSwitch(SWITCH_DEST);
dummyFactory.makeSwitch(SWITCH_TRANSIT);
for (IslDirectionalReference reference : new IslDirectionalReference[] { islSourceDest, islSourceDestAlt, islSourceTransit, islTransitDest }) {
dummyFactory.makeIsl(reference.getSourceEndpoint(), reference.getDestEndpoint());
dummyFactory.makeIsl(reference.getDestEndpoint(), reference.getSourceEndpoint());
}
}
use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager in project open-kilda by telstra.
the class SpeakerFlowSegmentRequestBuilderTest method setUp.
@Before
public void setUp() {
FlowResourcesManager resourcesManager = new FlowResourcesManager(persistenceManager, configurationProvider.getConfiguration(FlowResourcesConfig.class));
target = new SpeakerFlowSegmentRequestBuilder(resourcesManager);
vlanRepository = persistenceManager.getRepositoryFactory().createTransitVlanRepository();
}
use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager 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());
}
use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager in project open-kilda by telstra.
the class FlowMirrorPointDeleteHubBolt method init.
@Override
protected void init() {
FlowResourcesManager resourcesManager = new FlowResourcesManager(persistenceManager, flowResourcesConfig);
service = new FlowMirrorPointDeleteService(this, persistenceManager, resourcesManager, config.getSpeakerCommandRetriesLimit());
}
Aggregations