org.openflow.protocol.statistics
Class OFGroupDescription

java.lang.Object
  extended by org.openflow.protocol.statistics.OFGroupDescription
All Implemented Interfaces:
OFActionFactoryAware, OFStatistics

public class OFGroupDescription
extends java.lang.Object
implements OFStatistics, OFActionFactoryAware

Represents an ofp_meter_stats structure

Author:
Srini Seetharaman (srini.seetharaman@gmail.com)

Field Summary
protected  OFActionFactory actionFactory
           
protected  java.util.List<OFBucket> buckets
           
protected  int groupId
           
protected  short length
           
static int MINIMUM_LENGTH
           
protected  byte type
           
 
Constructor Summary
OFGroupDescription()
           
 
Method Summary
 int computeLength()
          Computes, sets and returns the length of this OFStatistics message.
 boolean equals(java.lang.Object obj)
           
 java.util.List<OFBucket> getBuckets()
           
 int getGroupId()
           
 int getLength()
          Returns the wire length of this message in bytes
 byte getType()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 void setActionFactory(OFActionFactory actionFactory)
          Sets the OFActionFactory
 OFGroupDescription setBuckets(java.util.List<OFBucket> buckets)
           
 OFGroupDescription setGroupId(int groupId)
           
 void setType(byte type)
           
 java.lang.String toString()
           
 void updateLength()
           
 void writeTo(java.nio.ByteBuffer data)
          Write this message's binary format to the specified ByteBuffer
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MINIMUM_LENGTH

public static int MINIMUM_LENGTH

actionFactory

protected OFActionFactory actionFactory

length

protected short length

type

protected byte type

groupId

protected int groupId

buckets

protected java.util.List<OFBucket> buckets
Constructor Detail

OFGroupDescription

public OFGroupDescription()
Method Detail

getGroupId

public int getGroupId()
Returns:
the groupId

setGroupId

public OFGroupDescription setGroupId(int groupId)
Parameters:
groupId - the groupId to set

getType

public byte getType()
Returns:
the type

setType

public void setType(byte type)
Parameters:
type - the type to set

getBuckets

public java.util.List<OFBucket> getBuckets()
Returns:
the buckets

setBuckets

public OFGroupDescription setBuckets(java.util.List<OFBucket> buckets)
Parameters:
buckets - the buckets to set

getLength

public int getLength()
Description copied from interface: OFStatistics
Returns the wire length of this message in bytes

Specified by:
getLength in interface OFStatistics
Returns:
the length

setActionFactory

public void setActionFactory(OFActionFactory actionFactory)
Description copied from interface: OFActionFactoryAware
Sets the OFActionFactory

Specified by:
setActionFactory in interface OFActionFactoryAware

readFrom

public void readFrom(java.nio.ByteBuffer data)
Description copied from interface: OFStatistics
Read this message off the wire from the specified ByteBuffer

Specified by:
readFrom in interface OFStatistics

writeTo

public void writeTo(java.nio.ByteBuffer data)
Description copied from interface: OFStatistics
Write this message's binary format to the specified ByteBuffer

Specified by:
writeTo in interface OFStatistics

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

updateLength

public void updateLength()

computeLength

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

Specified by:
computeLength in interface OFStatistics
Returns: