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());
}
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);
}
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));
}
Aggregations