Open Kilda Java Documentation
PortStatsEntry.java
Go to the documentation of this file.
1 /* Copyright 2017 Telstra Open Source
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package org.openkilda.messaging.info.stats;
17 
18 import com.fasterxml.jackson.annotation.JsonCreator;
19 import com.fasterxml.jackson.annotation.JsonProperty;
20 
21 import java.io.Serializable;
22 
26 public class PortStatsEntry implements Serializable {
27 
28  @JsonProperty
29  private int portNo;
30 
31  @JsonProperty
32  private long rxPackets;
33 
34  @JsonProperty
35  private long txPackets;
36 
37  @JsonProperty
38  private long rxBytes;
39 
40  @JsonProperty
41  private long txBytes;
42 
43  @JsonProperty
44  private long rxDropped;
45 
46  @JsonProperty
47  private long txDropped;
48 
49  @JsonProperty
50  private long rxErrors;
51 
52  @JsonProperty
53  private long txErrors;
54 
55  @JsonProperty
56  private long rxFrameErr;
57 
58  @JsonProperty
59  private long rxOverErr;
60 
61  @JsonProperty
62  private long rxCrcErr;
63 
64  @JsonProperty
65  private long collisions;
66 
67  @JsonCreator
68  public PortStatsEntry(@JsonProperty("portNo") int portNo,
69  @JsonProperty("rxPackets") long rxPackets,
70  @JsonProperty("txPackets") long txPackets,
71  @JsonProperty("rxBytes") long rxBytes,
72  @JsonProperty("txBytes") long txBytes,
73  @JsonProperty("rxDropped") long rxDropped,
74  @JsonProperty("txDropped") long txDropped,
75  @JsonProperty("rxErrors") long rxErrors,
76  @JsonProperty("txErrors") long txErrors,
77  @JsonProperty("rxFrameErr") long rxFrameErr,
78  @JsonProperty("rxOverErr") long rxOverErr,
79  @JsonProperty("rxCrcErr") long rxCrcErr,
80  @JsonProperty("collisions") long collisions) {
81  this.portNo = portNo;
82  this.rxPackets = rxPackets;
83  this.txPackets = txPackets;
84  this.rxBytes = rxBytes;
85  this.txBytes = txBytes;
86  this.rxDropped = rxDropped;
87  this.txDropped = txDropped;
88  this.rxErrors = rxErrors;
89  this.txErrors = txErrors;
90  this.rxFrameErr = rxFrameErr;
91  this.rxOverErr = rxOverErr;
92  this.rxCrcErr = rxCrcErr;
93  this.collisions = collisions;
94  }
95 
96  public int getPortNo() {
97  return portNo;
98  }
99 
100  public long getRxPackets() {
101  return rxPackets;
102  }
103 
104  public long getTxPackets() {
105  return txPackets;
106  }
107 
108  public long getRxBytes() {
109  return rxBytes;
110  }
111 
112  public long getTxBytes() {
113  return txBytes;
114  }
115 
116  public long getRxDropped() {
117  return rxDropped;
118  }
119 
120  public long getTxDropped() {
121  return txDropped;
122  }
123 
124  public long getRxErrors() {
125  return rxErrors;
126  }
127 
128  public long getTxErrors() {
129  return txErrors;
130  }
131 
132  public long getRxFrameErr() {
133  return rxFrameErr;
134  }
135 
136  public long getRxOverErr() {
137  return rxOverErr;
138  }
139 
140  public long getRxCrcErr() {
141  return rxCrcErr;
142  }
143 
144  public long getCollisions() {
145  return collisions;
146  }
147 }
long getCollisions()
int getPortNo()
long getRxFrameErr()
long getTxPackets()
PortStatsEntry(@JsonProperty("portNo") int portNo, @JsonProperty("rxPackets") long rxPackets, @JsonProperty("txPackets") long txPackets, @JsonProperty("rxBytes") long rxBytes, @JsonProperty("txBytes") long txBytes, @JsonProperty("rxDropped") long rxDropped, @JsonProperty("txDropped") long txDropped, @JsonProperty("rxErrors") long rxErrors, @JsonProperty("txErrors") long txErrors, @JsonProperty("rxFrameErr") long rxFrameErr, @JsonProperty("rxOverErr") long rxOverErr, @JsonProperty("rxCrcErr") long rxCrcErr, @JsonProperty("collisions") long collisions)
long getTxErrors()
long getRxErrors()
long getRxCrcErr()
long getTxBytes()
long getRxDropped()
long getRxBytes()
long getTxDropped()
long getRxOverErr()
long getRxPackets()