use of org.openkilda.messaging.ctrl.state.CacheBoltState in project open-kilda by telstra.
the class CacheBolt method dumpState.
@Override
public AbstractDumpState dumpState() {
NetworkDump networkDump = new NetworkDump(networkCache.dumpSwitches(), networkCache.dumpIsls());
FlowDump flowDump = new FlowDump(flowCache.dumpFlows());
return new CacheBoltState(networkDump, flowDump);
}
use of org.openkilda.messaging.ctrl.state.CacheBoltState in project open-kilda by telstra.
the class CacheTopologyTest method getNetworkDump.
private NetworkDump getNetworkDump(ConsumerRecord<String, String> raw) throws IOException {
Message responseGeneric = objectMapper.readValue(raw.value(), Message.class);
CtrlResponse response = (CtrlResponse) responseGeneric;
DumpStateResponseData data = (DumpStateResponseData) response.getData();
CacheBoltState cacheState = (CacheBoltState) data.getState();
return cacheState.getNetwork();
}
Aggregations