use of org.openkilda.wfm.share.model.IslReference in project open-kilda by telstra.
the class NetworkUniIslService method roundTripStatusNotification.
/**
* Process round trip status notification.
*/
public void roundTripStatusNotification(RoundTripStatus status) {
log.debug("Uni-ISL service receive ROUND TRIP STATUS notification");
IslReference reference = lookupEndpointData(status.getEndpoint());
if (isIslReferenceUsable(reference)) {
carrier.notifyIslRoundTripStatus(reference, status);
}
}
use of org.openkilda.wfm.share.model.IslReference in project open-kilda by telstra.
the class NetworkUniIslService method uniIslSetup.
/**
* .
*/
public void uniIslSetup(Endpoint endpoint, Isl history) {
log.info("Uni-ISL service receive SETUP request for {}", endpoint);
IslReference reference;
if (history != null) {
reference = IslReference.of(history);
carrier.setupIslFromHistory(endpoint, reference, history);
} else {
reference = IslReference.of(endpoint);
}
endpointData.put(endpoint, reference);
}
use of org.openkilda.wfm.share.model.IslReference in project open-kilda by telstra.
the class IslStatusUpdateBolt method handleIslStatusUpdateNotification.
private void handleIslStatusUpdateNotification(Tuple tuple, IslStatusUpdateNotification notification) {
IslReference islReference = new IslReference(Endpoint.of(notification.getSrcSwitchId(), notification.getSrcPortNo()), Endpoint.of(notification.getDstSwitchId(), notification.getDstPortNo()));
Values values = new Values(islReference, notification, getCommandContext());
getOutput().emit(StreamType.ISL_STATUS.toString(), tuple, values);
}
use of org.openkilda.wfm.share.model.IslReference in project open-kilda by telstra.
the class CacheBolt method emitCachedData.
@Override
public void emitCachedData(IslRoundTripLatency data, Endpoint destination) {
IslReference islReference = new IslReference(Endpoint.of(data.getSrcSwitchId(), data.getSrcPortNo()), destination);
Values values = new Values(islReference, data, destination, getCommandContext());
getOutput().emit(StreamType.LATENCY.toString(), getCurrentTuple(), values);
}
use of org.openkilda.wfm.share.model.IslReference in project open-kilda by telstra.
the class OneWayLatencyManipulationBolt method emitIslOneWayLatency.
@Override
public void emitIslOneWayLatency(IslOneWayLatency islOneWayLatency) throws PipelineException {
IslReference islReference = pullValue(getCurrentTuple(), ISL_GROUPING_FIELD, IslReference.class);
Values values = new Values(islReference, islOneWayLatency, getCommandContext());
getOutput().emit(StreamType.LATENCY.toString(), getCurrentTuple(), values);
}
Aggregations