org.openflow.protocol.statistics
Interface OFStatistics

All Known Implementing Classes:
OFAggregateStatisticsReply, OFAggregateStatisticsRequest, OFDescriptionStatistics, OFFlowStatisticsReply, OFFlowStatisticsRequest, OFGroupDescription, OFGroupFeatures, OFGroupStatisticsReply, OFGroupStatisticsRequest, OFMeterConfigStatisticsReply, OFMeterFeatures, OFMeterStatisticsReply, OFMeterStatisticsRequest, OFPortDescription, OFPortStatisticsReply, OFPortStatisticsRequest, OFQueueStatisticsReply, OFQueueStatisticsRequest, OFTableFeatures, OFTableStatistics, OFVendorStatistics

public interface OFStatistics

The base class for all OpenFlow multipart messages (primarily statistics).

Author:
David Erickson (daviderickson@cs.stanford.edu) - Mar 11, 2010

Method Summary
 int computeLength()
          Computes, sets and returns the length of this OFStatistics message.
 int getLength()
          Returns the wire length of this message in bytes
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 void writeTo(java.nio.ByteBuffer data)
          Write this message's binary format to the specified ByteBuffer
 

Method Detail

getLength

int getLength()
Returns the wire length of this message in bytes

Returns:
the length

readFrom

void readFrom(java.nio.ByteBuffer data)
Read this message off the wire from the specified ByteBuffer

Parameters:
data -

writeTo

void writeTo(java.nio.ByteBuffer data)
Write this message's binary format to the specified ByteBuffer

Parameters:
data -

computeLength

int computeLength()
Computes, sets and returns the length of this OFStatistics message. The value will be able to be retrieved from getLength() without recomputing after this method is called.

Returns: