blob: fd844f99ab5219a8f0207b58ed4133eabea3c7f0 [file] [log] [blame]
tom0eb04ca2014-08-25 14:34:51 -07001// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
2// Copyright (c) 2011, 2012 Open Networking Foundation
3// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
4// This library was generated by the LoxiGen Compiler.
5// See the file LICENSE.txt which should have been included in the source distribution
6
7// Automatically generated by LOXI from template of_interface.java
8// Do not modify
9
10package org.projectfloodlight.openflow.protocol;
11
12import org.projectfloodlight.openflow.protocol.*;
13import org.projectfloodlight.openflow.protocol.action.*;
14import org.projectfloodlight.openflow.protocol.actionid.*;
15import org.projectfloodlight.openflow.protocol.bsntlv.*;
16import org.projectfloodlight.openflow.protocol.errormsg.*;
17import org.projectfloodlight.openflow.protocol.meterband.*;
18import org.projectfloodlight.openflow.protocol.instruction.*;
19import org.projectfloodlight.openflow.protocol.instructionid.*;
20import org.projectfloodlight.openflow.protocol.match.*;
21import org.projectfloodlight.openflow.protocol.oxm.*;
22import org.projectfloodlight.openflow.protocol.queueprop.*;
23import org.projectfloodlight.openflow.types.*;
24import org.projectfloodlight.openflow.util.*;
25import org.projectfloodlight.openflow.exceptions.*;
26import org.jboss.netty.buffer.ChannelBuffer;
27
28public interface OFPortStatsEntry extends OFObject {
29 OFPort getPortNo();
30 U64 getRxPackets();
31 U64 getTxPackets();
32 U64 getRxBytes();
33 U64 getTxBytes();
34 U64 getRxDropped();
35 U64 getTxDropped();
36 U64 getRxErrors();
37 U64 getTxErrors();
38 U64 getRxFrameErr();
39 U64 getRxOverErr();
40 U64 getRxCrcErr();
41 U64 getCollisions();
42 long getDurationSec() throws UnsupportedOperationException;
43 long getDurationNsec() throws UnsupportedOperationException;
44 OFVersion getVersion();
45
46 void writeTo(ChannelBuffer channelBuffer);
47
48 Builder createBuilder();
49 public interface Builder {
50 OFPortStatsEntry build();
51 OFPort getPortNo();
52 Builder setPortNo(OFPort portNo);
53 U64 getRxPackets();
54 Builder setRxPackets(U64 rxPackets);
55 U64 getTxPackets();
56 Builder setTxPackets(U64 txPackets);
57 U64 getRxBytes();
58 Builder setRxBytes(U64 rxBytes);
59 U64 getTxBytes();
60 Builder setTxBytes(U64 txBytes);
61 U64 getRxDropped();
62 Builder setRxDropped(U64 rxDropped);
63 U64 getTxDropped();
64 Builder setTxDropped(U64 txDropped);
65 U64 getRxErrors();
66 Builder setRxErrors(U64 rxErrors);
67 U64 getTxErrors();
68 Builder setTxErrors(U64 txErrors);
69 U64 getRxFrameErr();
70 Builder setRxFrameErr(U64 rxFrameErr);
71 U64 getRxOverErr();
72 Builder setRxOverErr(U64 rxOverErr);
73 U64 getRxCrcErr();
74 Builder setRxCrcErr(U64 rxCrcErr);
75 U64 getCollisions();
76 Builder setCollisions(U64 collisions);
77 long getDurationSec() throws UnsupportedOperationException;
78 Builder setDurationSec(long durationSec) throws UnsupportedOperationException;
79 long getDurationNsec() throws UnsupportedOperationException;
80 Builder setDurationNsec(long durationNsec) throws UnsupportedOperationException;
81 OFVersion getVersion();
82 }
83}