org.openflow.protocol.statistics
Class OFGroupFeatures
java.lang.Object
org.openflow.protocol.statistics.OFGroupFeatures
- All Implemented Interfaces:
- OFStatistics
public class OFGroupFeatures
- extends java.lang.Object
- implements OFStatistics
Represents an ofp_meter_stats structure
- Author:
- Srini Seetharaman (srini.seetharaman@gmail.com)
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MINIMUM_LENGTH
public static int MINIMUM_LENGTH
length
protected short length
types
protected int types
maxGroups
protected int[] maxGroups
actions
protected int[] actions
OFGroupFeatures
public OFGroupFeatures()
getTypes
public int getTypes()
- Returns:
- the types
setTypes
public void setTypes(int types)
- Parameters:
types
- the types to set
getCapabilities
public int getCapabilities()
- Returns:
- the capabilities
setCapabilities
public void setCapabilities(int capabilities)
- Parameters:
capabilities
- the capabilities to set
getActions
public java.util.Set<OFActionType> getActions(int type)
- Parameters:
type
- the type to retrieve the supported actions
- Returns:
- actions the set of action types supported
setActions
public void setActions(int type,
java.util.Set<OFActionType> actions)
- Parameters:
type
- the type to retrieve the supported actionsactions
- the set of action types supported
getMaxGroups
public int[] getMaxGroups()
- Returns:
- the four maxGroup values
getMaxGroups
public int getMaxGroups(int type)
- Parameters:
type
- the type corresponding to this maxGroup
- Returns:
- the maxGroup value for this type
setMaxGroups
public void setMaxGroups(int[] maxGroups)
- Parameters:
maxGroups
- the four maxGroups values to set
setMaxGroups
public void setMaxGroups(int type,
int maxGroup)
- Parameters:
type
- the type corresponding to this maxGroupmaxGroup
- the maxGroup values to set for this type
getActions
public int[] getActions()
- Returns:
- the four action bitmaps
setActions
public void setActions(int[] actions)
- Parameters:
actions
- the four action bitmaps 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
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
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
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
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: