use of org.openkilda.wfm.share.model.Endpoint in project open-kilda by telstra.
the class IslLatencyBolt method handleInput.
@Override
protected void handleInput(Tuple input) throws PipelineException {
InfoData data = pullValue(input, LATENCY_DATA_FIELD, InfoData.class);
long timestamp = getCommandContext().getCreateTime();
if (data instanceof IslRoundTripLatency) {
Endpoint destination = pullValue(input, CACHE_DATA_FIELD, Endpoint.class);
islLatencyService.handleRoundTripIslLatency((IslRoundTripLatency) data, destination, timestamp);
} else if (data instanceof IslOneWayLatency) {
islLatencyService.handleOneWayIslLatency((IslOneWayLatency) data, timestamp);
} else {
unhandledInput(input);
}
}
use of org.openkilda.wfm.share.model.Endpoint in project open-kilda by telstra.
the class IslStatsBolt method handleLatencyData.
private void handleLatencyData(Tuple input) throws PipelineException {
InfoData data = pullValue(input, LATENCY_DATA_FIELD, InfoData.class);
long timestamp = getCommandContext().getCreateTime();
if (data instanceof IslRoundTripLatency) {
Endpoint destination = pullValue(input, CACHE_DATA_FIELD, Endpoint.class);
islStatsService.handleRoundTripLatencyMetric(timestamp, (IslRoundTripLatency) data, destination);
} else if (data instanceof IslOneWayLatency) {
islStatsService.handleOneWayLatencyMetric(timestamp, (IslOneWayLatency) data);
} else {
unhandledInput(input);
}
}
Aggregations