Open Kilda Java Documentation
FlowStatsEntry.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.JsonProperty;
19
20
import
java.io.Serializable;
21
25
public
class
FlowStatsEntry
implements
Serializable {
26
27
@JsonProperty
28
private
int
tableId;
29
30
@JsonProperty
31
private
long
cookie;
32
33
@JsonProperty
34
private
long
packetCount;
35
36
@JsonProperty
37
private
long
byteCount;
38
39
public
FlowStatsEntry
(@JsonProperty(
"tableId"
)
int
tableId,
40
@JsonProperty(
"cookie"
)
long
cookie,
41
@JsonProperty(
"packetCount"
)
long
packetCount,
42
@JsonProperty(
"byteCount"
)
long
byteCount) {
43
this.tableId = tableId;
44
this.cookie = cookie;
45
this.packetCount = packetCount;
46
this.byteCount = byteCount;
47
}
48
49
public
int
getTableId
() {
50
return
tableId;
51
}
52
53
public
long
getCookie
() {
54
return
cookie;
55
}
56
57
public
long
getPacketCount
() {
58
return
packetCount;
59
}
60
61
public
long
getByteCount
() {
62
return
byteCount;
63
}
64
}
org.openkilda.messaging.info.stats.FlowStatsEntry.getPacketCount
long getPacketCount()
Definition:
FlowStatsEntry.java:57
org.openkilda.messaging.info.stats.FlowStatsEntry.getByteCount
long getByteCount()
Definition:
FlowStatsEntry.java:61
org.openkilda.messaging.info.stats.FlowStatsEntry
Definition:
FlowStatsEntry.java:25
org.openkilda.messaging.info.stats.FlowStatsEntry.getTableId
int getTableId()
Definition:
FlowStatsEntry.java:49
org.openkilda.messaging.info.stats.FlowStatsEntry.FlowStatsEntry
FlowStatsEntry(@JsonProperty("tableId") int tableId, @JsonProperty("cookie") long cookie, @JsonProperty("packetCount") long packetCount, @JsonProperty("byteCount") long byteCount)
Definition:
FlowStatsEntry.java:39
org.openkilda.messaging.info.stats.FlowStatsEntry.getCookie
long getCookie()
Definition:
FlowStatsEntry.java:53
open-kilda-develop
services
src
messaging
src
main
java
org
openkilda
messaging
info
stats
FlowStatsEntry.java
Generated by
1.8.14