Open Kilda Java Documentation
NetworkTopologyChange.java
Go to the documentation of this file.
1 package org.openkilda.messaging.info.event;
2 
4 
5 import com.fasterxml.jackson.annotation.JsonCreator;
6 import com.fasterxml.jackson.annotation.JsonProperty;
7 
8 public class NetworkTopologyChange extends InfoData {
9  @JsonProperty("type")
10  private final NetworkTopologyChangeType type;
11 
12  @JsonProperty("switch_id")
13  private final String switchId;
14 
15  @JsonProperty("port_number")
16  private final int portNumber;
17 
18  @JsonCreator
20  @JsonProperty("type") NetworkTopologyChangeType type,
21  @JsonProperty("switch_id") String switchId,
22  @JsonProperty("port_number") int portNumber) {
23  this.type = type;
24  this.switchId = switchId;
25  this.portNumber = portNumber;
26  }
27 
29  return type;
30  }
31 
32  public String getSwitchId() {
33  return switchId;
34  }
35 
36  public int getPortNumber() {
37  return portNumber;
38  }
39 }
NetworkTopologyChange( @JsonProperty("type") NetworkTopologyChangeType type, @JsonProperty("switch_id") String switchId, @JsonProperty("port_number") int portNumber)