use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager 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());
}
use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager 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());
}
use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager 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);
}
use of org.openkilda.wfm.share.flow.resources.FlowResourcesManager in project open-kilda by telstra.
the class FlowValidationHubServiceTest method setUpOnce.
@BeforeClass
public static void setUpOnce() {
FlowValidationTestBase.setUpOnce();
flowResourcesManager = new FlowResourcesManager(persistenceManager, flowResourcesConfig);
flowValidationService = new FlowValidationService(persistenceManager, flowResourcesManager, MIN_BURST_SIZE_IN_KBITS, BURST_COEFFICIENT);
}
Aggregations