Search in sources :

Example 1 with CacheWarmingService

use of org.openkilda.wfm.topology.cache.service.CacheWarmingService in project open-kilda by telstra.

the class CacheBolt method initState.

/**
 * {@inheritDoc}
 */
@Override
public void initState(InMemoryKeyValueState<String, Cache> state) {
    this.state = state;
    networkCache = (NetworkCache) state.get(NETWORK_CACHE);
    if (networkCache == null) {
        networkCache = new NetworkCache();
        this.state.put(NETWORK_CACHE, networkCache);
    }
    flowCache = (FlowCache) state.get(FLOW_CACHE);
    if (flowCache == null) {
        flowCache = new FlowCache();
        this.state.put(FLOW_CACHE, flowCache);
    }
    cacheWarmingService = new CacheWarmingService(networkCache);
    reroutedFlows.clear();
}
Also used : FlowCache(org.openkilda.pce.cache.FlowCache) CacheWarmingService(org.openkilda.wfm.topology.cache.service.CacheWarmingService) NetworkCache(org.openkilda.pce.cache.NetworkCache)

Aggregations

FlowCache (org.openkilda.pce.cache.FlowCache)1 NetworkCache (org.openkilda.pce.cache.NetworkCache)1 CacheWarmingService (org.openkilda.wfm.topology.cache.service.CacheWarmingService)1