use of org.openkilda.wfm.error.MessageException in project open-kilda by telstra.
the class WfmStatsParseBolt method handleInput.
@Override
public void handleInput(Tuple tuple) {
if (active) {
log.debug("Ingoing tuple: {}", tuple);
Message message = (Message) tuple.getValueByField(MessageKafkaTranslator.FIELD_ID_PAYLOAD);
try {
InfoData data = getInfoData(message);
if (data instanceof SwitchPortStatusData) {
doParseSwitchPortsData((SwitchPortStatusData) data);
}
} catch (MessageException e) {
log.error("Not an InfoMessage in queue message={}", message);
}
}
}
Aggregations