Open Kilda Java Documentation
NetworkDump.java
Go to the documentation of this file.
1 package org.openkilda.messaging.ctrl.state;
2 
3 import com.fasterxml.jackson.annotation.JsonCreator;
4 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
5 import com.fasterxml.jackson.annotation.JsonInclude;
6 import com.fasterxml.jackson.annotation.JsonProperty;
7 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10 
11 import java.io.Serializable;
12 import java.util.Set;
13 
14 @JsonSerialize
15 @JsonInclude(JsonInclude.Include.NON_NULL)
16 @JsonIgnoreProperties(ignoreUnknown = true)
17 public class NetworkDump implements Serializable {
18  @JsonProperty("switches")
19  private Set<SwitchInfoData> switches;
20 
21  @JsonProperty("isls")
22  private Set<IslInfoData> isls;
23 
24  @JsonCreator
25  public NetworkDump(
26  @JsonProperty("switches") Set<SwitchInfoData> switches,
27  @JsonProperty("isls") Set<IslInfoData> isls) {
28  this.switches = switches;
29  this.isls = isls;
30  }
31 
32  public Set<SwitchInfoData> getSwitches() {
33  return switches;
34  }
35 
36  public Set<IslInfoData> getIsls() {
37  return isls;
38  }
39 }
NetworkDump( @JsonProperty("switches") Set< SwitchInfoData > switches, @JsonProperty("isls") Set< IslInfoData > isls)