org.openflow.protocol.statistics
Class OFTableFeatures

java.lang.Object
  extended by org.openflow.protocol.statistics.OFTableFeatures
All Implemented Interfaces:
java.lang.Cloneable, OFTableFeaturesPropertyFactoryAware, OFStatistics

public class OFTableFeatures
extends java.lang.Object
implements OFStatistics, java.lang.Cloneable, OFTableFeaturesPropertyFactoryAware

Corresponds to the struct ofp_packet_tableRequest OpenFlow structure

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

Field Summary
protected  int config
           
protected  short length
           
protected  int maxEntries
           
protected  long metadataMatch
           
protected  long metadataWrite
           
static short MINIMUM_LENGTH
           
protected  java.lang.String name
           
static int OFP_MAX_TABLE_NAME_LEN
           
protected  java.util.List<OFTableFeaturesProperty> properties
           
protected  byte tableId
           
protected  OFTableFeaturesPropertyFactory tableRequestPropertyFactory
           
 
Constructor Summary
OFTableFeatures()
           
 
Method Summary
 OFTableFeatures clone()
           
 int computeLength()
          This method computes the length of the OFTableFeatures message, both setting the length field and returning the value.
 boolean equals(java.lang.Object obj)
           
 int getConfig()
           
 int getLength()
          Returns the wire length of this message in bytes
 int getMaxEntries()
           
 long getMetadataMatch()
          Get metadataMatch
 long getMetadataWrite()
          Get metadataWrite
 java.lang.String getName()
           
 java.util.List<OFTableFeaturesProperty> getProperties()
           
 int getTableFeaturesId()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 OFTableFeatures setConfig(int config)
           
 void setLength(short length)
           
 OFTableFeatures setMaxEntries(int maxEntries)
           
 OFTableFeatures setMetadataMatch(long metadataMatch)
          Set metadataMatch
 OFTableFeatures setMetadataWrite(long metadataWrite)
          Set metadataWrite
 OFTableFeatures setName(java.lang.String name)
           
 OFTableFeatures setProperties(java.util.List<OFTableFeaturesProperty> properties)
           
 OFTableFeatures setTableFeaturesId(byte tableId)
           
 void setTableFeaturesPropertyFactory(OFTableFeaturesPropertyFactory tableRequestPropertyFactory)
          Sets the OFTableFeaturesPropertyFactory
 java.lang.String toString()
           
 void writeTo(java.nio.ByteBuffer data)
          Write this message's binary format to the specified ByteBuffer
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MINIMUM_LENGTH

public static short MINIMUM_LENGTH

OFP_MAX_TABLE_NAME_LEN

public static final int OFP_MAX_TABLE_NAME_LEN
See Also:
Constant Field Values

tableRequestPropertyFactory

protected OFTableFeaturesPropertyFactory tableRequestPropertyFactory

maxEntries

protected int maxEntries

tableId

protected byte tableId

length

protected short length

metadataMatch

protected long metadataMatch

metadataWrite

protected long metadataWrite

properties

protected java.util.List<OFTableFeaturesProperty> properties

name

protected java.lang.String name

config

protected int config
Constructor Detail

OFTableFeatures

public OFTableFeatures()
Method Detail

getTableFeaturesId

public int getTableFeaturesId()
Returns:
the tableId

setTableFeaturesId

public OFTableFeatures setTableFeaturesId(byte tableId)
Parameters:
tableId - the tableId to set

getMaxEntries

public int getMaxEntries()
Returns:
the maxEntries

setMaxEntries

public OFTableFeatures setMaxEntries(int maxEntries)
Parameters:
maxEntries - the port to associate the tableRequest with

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

setLength

public void setLength(short length)
Parameters:
length - the length to set

getProperties

public java.util.List<OFTableFeaturesProperty> getProperties()
Returns:
the properties

setProperties

public OFTableFeatures setProperties(java.util.List<OFTableFeaturesProperty> properties)
Parameters:
properties - the properties to set

getMetadataMatch

public long getMetadataMatch()
Get metadataMatch

Returns:

setMetadataMatch

public OFTableFeatures setMetadataMatch(long metadataMatch)
Set metadataMatch

Parameters:
metadataMatch -

getMetadataWrite

public long getMetadataWrite()
Get metadataWrite

Returns:

setMetadataWrite

public OFTableFeatures setMetadataWrite(long metadataWrite)
Set metadataWrite

Parameters:
metadataWrite -

getName

public java.lang.String getName()
Returns:
the name

setName

public OFTableFeatures setName(java.lang.String name)
Parameters:
name - the name to set

getConfig

public int getConfig()
Returns:
the config

setConfig

public OFTableFeatures setConfig(int config)
Parameters:
config - the config to set

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

clone

public OFTableFeatures clone()
Overrides:
clone in class java.lang.Object

setTableFeaturesPropertyFactory

public void setTableFeaturesPropertyFactory(OFTableFeaturesPropertyFactory tableRequestPropertyFactory)
Description copied from interface: OFTableFeaturesPropertyFactoryAware
Sets the OFTableFeaturesPropertyFactory

Specified by:
setTableFeaturesPropertyFactory in interface OFTableFeaturesPropertyFactoryAware

toString

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

computeLength

public int computeLength()
This method computes the length of the OFTableFeatures message, both setting the length field and returning the value.

Specified by:
computeLength in interface OFStatistics
Returns:
the length