org.openflow.protocol
Class AggregateStatsReply

java.lang.Object
  extended by org.openflow.gui.net.protocol.OFGMessage
      extended by org.openflow.gui.net.protocol.StatsHeader
          extended by org.openflow.protocol.AggregateStatsReply
All Implemented Interfaces:
Message<OFGMessageType>

public class AggregateStatsReply
extends StatsHeader

A reply with aggregate statistics.

Author:
David Underhill

Field Summary
 long byte_count
          Number of bytes in flows.
 int flow_count
          Number of flows.
 long packet_count
          Number of packets in flows.
 
Fields inherited from class org.openflow.gui.net.protocol.StatsHeader
dpid, flags, REPLY, REQUEST, statsType
 
Fields inherited from class org.openflow.gui.net.protocol.OFGMessage
SIZEOF, timeCreated, TSSEP, type, xid
 
Constructor Summary
AggregateStatsReply(long dpid)
          Create an aggregate request for stats from the switch with the specified DPID.
AggregateStatsReply(long dpid, StatsFlag flags, java.io.DataInput in)
          Create an aggregate stats reply from the switch with the specified DPID and flags and read the reply from the receive buffer.
 
Method Summary
 boolean isStatefulReply()
          returns true because this message is part of a stateful exchange
 int length()
          total length of this message in bytes
 java.lang.String toString()
          String representation of the message including the date and type.
 void write(java.io.DataOutput out)
          sends the message over the specified output stream
 
Methods inherited from class org.openflow.gui.net.protocol.OFGMessage
getType, isStatefulRequest, timeCreated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

packet_count

public long packet_count
Number of packets in flows.


byte_count

public long byte_count
Number of bytes in flows.


flow_count

public int flow_count
Number of flows.

Constructor Detail

AggregateStatsReply

public AggregateStatsReply(long dpid)
Create an aggregate request for stats from the switch with the specified DPID.


AggregateStatsReply

public AggregateStatsReply(long dpid,
                           StatsFlag flags,
                           java.io.DataInput in)
                    throws java.io.IOException
Create an aggregate stats reply from the switch with the specified DPID and flags and read the reply from the receive buffer.

Throws:
java.io.IOException
Method Detail

isStatefulReply

public boolean isStatefulReply()
returns true because this message is part of a stateful exchange

Overrides:
isStatefulReply in class OFGMessage

length

public int length()
total length of this message in bytes

Overrides:
length in class StatsHeader

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Description copied from class: OFGMessage
sends the message over the specified output stream

Overrides:
write in class StatsHeader
Throws:
java.io.IOException

toString

public java.lang.String toString()
Description copied from class: OFGMessage
String representation of the message including the date and type. Also includes the transaction ID if it is non-zero.

Overrides:
toString in class StatsHeader