1 package org.openkilda.model;
3 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4 import com.fasterxml.jackson.annotation.JsonInclude;
5 import com.fasterxml.jackson.annotation.JsonProperty;
6 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
8 import java.io.Serializable;
16 @JsonInclude(JsonInclude.Include.NON_NULL)
17 @JsonIgnoreProperties(ignoreUnknown =
true)
18 @JsonPropertyOrder({
"assignmenttype",
"interfacetype",
"status",
"crossconnect",
"customeruuid",
19 "switch_id",
"port_name",
"stats"})
20 public class PortInfo implements Serializable, Comparable<PortInfo> {
23 @JsonProperty(
"assignmenttype")
24 private String assignmenttype;
27 @JsonProperty(
"interfacetype")
28 private String interfacetype;
31 @JsonProperty(
"status")
35 @JsonProperty(
"crossconnect")
36 private String crossconnect;
39 @JsonProperty(
"customeruuid")
40 private String customeruuid;
43 @JsonProperty(
"switch_id")
44 private String switchName;
47 @JsonProperty(
"port_name")
48 private String portName;
51 @JsonProperty(
"port_number")
52 private String portNumber;
54 @JsonProperty(
"stats")
55 private Map<String, Double> stats;
58 private final static long serialVersionUID = 6234209548424333879L;
67 return assignmenttype;
77 this.assignmenttype = assignmenttype;
97 this.interfacetype = interfacetype;
137 this.crossconnect = crossconnect;
157 this.customeruuid = customeruuid;
177 this.switchName = switchName;
197 this.portName = portName;
217 this.portNumber = portNumber;
238 Integer portNumber1 = Integer.parseInt(portNumber);
239 Integer portNumber2 = Integer.parseInt(
port.portNumber);
240 return portNumber1 - portNumber2;
String getInterfacetype()
void setCustomeruuid(final String customeruuid)
String getAssignmenttype()
Map< String, Double > getStats()
void setInterfacetype(final String interfacetype)
void setStatus(final String status)
void setAssignmenttype(final String assignmenttype)
void setStats(Map< String, Double > stats)
void setCrossconnect(final String crossconnect)
int compareTo(final PortInfo port)
void setPortNumber(final String portNumber)
void setSwitchName(final String switchName)
void setPortName(final String portName)