7d9c6ee8f054210edd2131a9978d61cc3f0bff45
[openflowjava.git] / third-party / openflow-codec / src / main / java / org / openflow / codec / protocol / statistics / OFPStatistics.java
1 package org.openflow.codec.protocol.statistics;
2
3 import org.openflow.codec.io.IDataBuffer;
4
5 /**
6  * The base class for all OpenFlow statistics.
7  *
8  * @author David Erickson (daviderickson@cs.stanford.edu) - Mar 11, 2010
9  */
10 public interface OFPStatistics {
11     /**
12      * Returns the wire length of this message in bytes
13      *
14      * @return the length
15      */
16     public int getLength();
17
18     /**
19      * Read this message off the wire from the specified DataBuffer
20      *
21      * @param data
22      */
23     public void readFrom(IDataBuffer data);
24
25     /**
26      * Write this message's binary format to the specified DataBuffer
27      *
28      * @param data
29      */
30     public void writeTo(IDataBuffer data);
31 }