Open Kilda Java Documentation
FlowInfo.java
Go to the documentation of this file.
1 package org.openkilda.pce.provider;
2 
3 import java.io.Serializable;
4 
9 public final class FlowInfo implements Serializable {
10  private String flowId;
11  private long cookie;
12  private int transitVlanId;
13  private int meterId;
14  private String srcSwitchId;
15 
16  public FlowInfo() {}
17 
18  public FlowInfo(String flowId, long cookie, int transitVlanId, int meterId, String srcSwitchId) {
19  this.flowId = flowId;
20  this.cookie = cookie;
21  this.transitVlanId = transitVlanId;
22  this.meterId = meterId;
23  this.srcSwitchId = srcSwitchId;
24  }
25 
26  public String getFlowId() {
27  return flowId;
28  }
29 
30  public FlowInfo setFlowId(String flowId) {
31  this.flowId = flowId;
32  return this;
33  }
34 
35  public long getCookie() {
36  return cookie;
37  }
38 
39  public FlowInfo setCookie(long cookie) {
40  this.cookie = cookie;
41  return this;
42  }
43 
44  public int getTransitVlanId() {
45  return transitVlanId;
46  }
47 
48  public FlowInfo setTransitVlanId(int transitVlanId) {
49  this.transitVlanId = transitVlanId;
50  return this;
51  }
52 
53  public int getMeterId() {
54  return meterId;
55  }
56 
57  public FlowInfo setMeterId(int meterId) {
58  this.meterId = meterId;
59  return this;
60  }
61 
62  public String getSrcSwitchId() {
63  return srcSwitchId;
64  }
65 
66  public FlowInfo setSrcSwitchId(String srcSwitchId) {
67  this.srcSwitchId = srcSwitchId;
68  return this;
69  }
70 }
FlowInfo(String flowId, long cookie, int transitVlanId, int meterId, String srcSwitchId)
Definition: FlowInfo.java:18
FlowInfo setFlowId(String flowId)
Definition: FlowInfo.java:30
FlowInfo setCookie(long cookie)
Definition: FlowInfo.java:39
FlowInfo setMeterId(int meterId)
Definition: FlowInfo.java:57
FlowInfo setSrcSwitchId(String srcSwitchId)
Definition: FlowInfo.java:66
FlowInfo setTransitVlanId(int transitVlanId)
Definition: FlowInfo.java:48