use of org.openkilda.wfm.topology.network.storm.bolt.bfd.worker.response.BfdWorkerLogicalPortDeleteResponse in project open-kilda by telstra.
the class GrpcRouter method route.
private void route(Tuple input, InfoMessage message) throws PipelineException {
InfoData payload = message.getData();
String key = pullKey(input);
if (payload instanceof CreateLogicalPortResponse) {
emit(STREAM_BFD_WORKER_ID, input, makeBfdWorkerTuple(key, new BfdWorkerLogicalPortCreateResponse((CreateLogicalPortResponse) payload)));
} else if (payload instanceof DeleteLogicalPortResponse) {
emit(STREAM_BFD_WORKER_ID, input, makeBfdWorkerTuple(key, new BfdWorkerLogicalPortDeleteResponse((DeleteLogicalPortResponse) payload)));
} else {
log.debug("Ignore GRPC message {}: {}", payload.getClass().getName(), payload);
}
}
Aggregations