Search in sources :

Example 1 with FlowFetcher

use of org.openkilda.wfm.topology.ping.bolt.FlowFetcher in project open-kilda by telstra.

the class PingTopology method flowFetcher.

private void flowFetcher(TopologyBuilder topology) {
    PersistenceManager persistenceManager = new PersistenceManager(configurationProvider);
    FlowResourcesConfig flowResourcesConfig = configurationProvider.getConfiguration(FlowResourcesConfig.class);
    FlowFetcher bolt = new FlowFetcher(persistenceManager, flowResourcesConfig, topologyConfig.getPeriodicPingCacheExpirationInterval());
    declareBolt(topology, bolt, FlowFetcher.BOLT_ID).globalGrouping(TickDeduplicator.BOLT_ID, TickDeduplicator.STREAM_PING_ID).shuffleGrouping(InputRouter.BOLT_ID, InputRouter.STREAM_ON_DEMAND_REQUEST_ID).shuffleGrouping(InputRouter.BOLT_ID, InputRouter.STREAM_ON_DEMAND_Y_FLOW_REQUEST_ID).allGrouping(InputRouter.BOLT_ID, InputRouter.STREAM_PERIODIC_PING_UPDATE_REQUEST_ID);
}
Also used : FlowResourcesConfig(org.openkilda.wfm.share.flow.resources.FlowResourcesConfig) FlowFetcher(org.openkilda.wfm.topology.ping.bolt.FlowFetcher) PersistenceManager(org.openkilda.persistence.PersistenceManager)

Aggregations

PersistenceManager (org.openkilda.persistence.PersistenceManager)1 FlowResourcesConfig (org.openkilda.wfm.share.flow.resources.FlowResourcesConfig)1 FlowFetcher (org.openkilda.wfm.topology.ping.bolt.FlowFetcher)1