use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager in project open-kilda by telstra.
the class FlowDeleteHubBolt method init.
@Override
protected void init() {
FlowResourcesManager resourcesManager = new FlowResourcesManager(persistenceManager, flowResourcesConfig);
service = new FlowDeleteService(this, persistenceManager, resourcesManager, config.getSpeakerCommandRetriesLimit());
}
use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager in project open-kilda by telstra.
the class FlowValidationHubBolt method init.
@Override
public void init() {
FlowResourcesManager flowResourcesManager = new FlowResourcesManager(persistenceManager, flowResourcesConfig);
service = new FlowValidationHubService(this, persistenceManager, flowResourcesManager, flowMeterMinBurstSizeInKbits, flowMeterBurstCoefficient);
}
use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager in project open-kilda by telstra.
the class FlowValidationServiceTest method setUpOnce.
@BeforeClass
public static void setUpOnce() {
FlowValidationTestBase.setUpOnce();
FlowResourcesManager flowResourcesManager = new FlowResourcesManager(persistenceManager, flowResourcesConfig);
service = new FlowValidationService(persistenceManager, flowResourcesManager, MIN_BURST_SIZE_IN_KBITS, BURST_COEFFICIENT);
}
use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager in project open-kilda by telstra.
the class AbstractYFlowTest method before.
@Before
public void before() {
dummyFactory = new PersistenceDummyEntityFactory(persistenceManager);
FlowResourcesConfig resourceConfig = configurationProvider.getConfiguration(FlowResourcesConfig.class);
flowResourcesManager = spy(new FlowResourcesManager(persistenceManager, resourceConfig));
RuleManagerConfig ruleManagerConfig = configurationProvider.getConfiguration(RuleManagerConfig.class);
ruleManager = spy(new RuleManagerImpl(ruleManagerConfig));
alterFeatureToggles(true, true, true, true);
dummyFactory.makeSwitch(SWITCH_SHARED);
dummyFactory.makeSwitch(SWITCH_FIRST_EP);
dummyFactory.makeSwitch(SWITCH_SECOND_EP);
dummyFactory.makeSwitch(SWITCH_TRANSIT);
dummyFactory.makeSwitch(SWITCH_NEW_TRANSIT);
dummyFactory.makeSwitch(SWITCH_ALT_TRANSIT);
dummyFactory.makeSwitch(SWITCH_NEW_FIRST_EP);
dummyFactory.makeSwitch(SWITCH_NEW_SECOND_EP);
for (IslDirectionalReference reference : new IslDirectionalReference[] { islSharedToFirst, islSharedToSecond, islSharedToTransit, islTransitToFirst, islTransitToSecond, islSharedToAltTransit, islAltTransitToFirst, islAltTransitToSecond, islTransitToNewFirst, islTransitToNewSecond, islSharedToNewAltTransit, islNewAltTransitToFirst, islNewAltTransitToSecond, islSharedToNewTransit, islNewTransitToFirst, islNewTransitToSecond }) {
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 FlowFetcher method init.
@Override
@PersistenceContextRequired(requiresNew = true)
public void init() {
super.init();
flowRepository = persistenceManager.getRepositoryFactory().createFlowRepository();
yFlowRepository = persistenceManager.getRepositoryFactory().createYFlowRepository();
flowResourcesManager = new FlowResourcesManager(persistenceManager, flowResourcesConfig);
try {
refreshHeap(null, false);
} catch (PipelineException e) {
log.error("Failed to init periodic ping cache");
}
}
Aggregations