public abstract class OFStatisticsMessageBase extends OFMessage implements OFStatisticsFactoryAware
Modifier and Type | Field and Description |
---|---|
protected short |
flags |
static int |
MINIMUM_LENGTH |
protected List<? extends OFStatistics> |
statistics |
protected OFStatisticsFactory |
statisticsFactory |
protected OFStatisticsType |
statisticType |
Constructor and Description |
---|
OFStatisticsMessageBase() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
OFStatistics |
getFirstStatistics()
return the first statistics request in the list of statistics, for
statistics messages that expect exactly one message in their body (e.g.,
flow stats request, port statsrequest)
|
short |
getFlags() |
List<? extends OFStatistics> |
getStatistics() |
OFStatisticsType |
getStatisticType() |
int |
hashCode() |
void |
readFrom(org.jboss.netty.buffer.ChannelBuffer data)
Read this message off the wire from the specified ByteBuffer
|
void |
setFlags(short flags) |
void |
setStatistics(List<? extends OFStatistics> statistics) |
void |
setStatisticsFactory(OFStatisticsFactory statisticsFactory)
Sets the OFStatisticsFactory
|
void |
setStatisticType(OFStatisticsType statisticType) |
void |
writeTo(org.jboss.netty.buffer.ChannelBuffer data)
Write this message's binary format to the specified ByteBuffer
|
getData, getDataAsString, getLength, getLengthU, getMessageStore, getType, getVersion, getXid, setLength, setLengthU, setType, setVersion, setXid, toString
public static int MINIMUM_LENGTH
protected OFStatisticsFactory statisticsFactory
protected OFStatisticsType statisticType
protected short flags
protected List<? extends OFStatistics> statistics
public OFStatisticsType getStatisticType()
public void setStatisticType(OFStatisticsType statisticType)
statisticType
- the statisticType to setpublic short getFlags()
public void setFlags(short flags)
flags
- the flags to setpublic List<? extends OFStatistics> getStatistics()
public OFStatistics getFirstStatistics()
public void setStatistics(List<? extends OFStatistics> statistics)
statistics
- the statistics to setpublic void setStatisticsFactory(OFStatisticsFactory statisticsFactory)
OFStatisticsFactoryAware
setStatisticsFactory
in interface OFStatisticsFactoryAware
public void readFrom(org.jboss.netty.buffer.ChannelBuffer data)
OFMessage
public void writeTo(org.jboss.netty.buffer.ChannelBuffer data)
OFMessage
Copyright © 2015. All rights reserved.