16 package org.openkilda.messaging.command.discovery;
21 import com.fasterxml.jackson.annotation.JsonCreator;
22 import com.fasterxml.jackson.annotation.JsonInclude;
23 import com.fasterxml.jackson.annotation.JsonProperty;
24 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
25 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
29 @JsonInclude(JsonInclude.Include.NON_NULL)
34 "destination_switch_id"})
39 private static final long serialVersionUID = 1L;
44 @JsonProperty(
"source_switch_id")
50 @JsonProperty(
"source_port_no")
51 private int srcPortNo;
56 @JsonProperty(
"destination_switch_id")
74 @JsonProperty(
"source_port_no")
final int srcPortNo,
75 @JsonProperty(
"destination_switch_id")
final SwitchId dstSwitchId) {
76 this.srcSwitchId = srcSwitchId;
77 this.srcPortNo = srcPortNo;
78 this.dstSwitchId = dstSwitchId;
96 this.srcSwitchId = switchId;
114 this.srcPortNo = portNo;
132 this.dstSwitchId = switchId;
140 return String.format(
"%s-%s -> %s", srcSwitchId, srcPortNo, dstSwitchId);
DiscoverPathCommandData()
DiscoverPathCommandData(@JsonProperty("source_switch_id") final SwitchId srcSwitchId, @JsonProperty("source_port_no") final int srcPortNo, @JsonProperty("destination_switch_id") final SwitchId dstSwitchId)
void setSrcPortNo(int portNo)
SwitchId getSrcSwitchId()
void setDstSwitchId(SwitchId switchId)
SwitchId getDstSwitchId()
void setSrcSwitchId(SwitchId switchId)