|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openflow.protocol.OFMessage
org.openflow.protocol.OFMeterMod
public class OFMeterMod
Corresponds to the struct ofp_meter_mod OpenFlow structure
Nested Class Summary | |
---|---|
static class |
OFMeterMod.OFMeterFlags
|
Field Summary | |
---|---|
protected java.util.List<OFMeterBand> |
bands
|
protected short |
command
|
protected short |
flags
|
protected OFMeterBandFactory |
meterBandFactory
|
protected int |
meterId
|
static int |
MINIMUM_LENGTH
|
static int |
OFPMC_ADD
|
static int |
OFPMC_DELETE
|
static int |
OFPMC_MODIFY
|
Fields inherited from class org.openflow.protocol.OFMessage |
---|
length, OFP_VERSION, type, version, xid |
Constructor Summary | |
---|---|
OFMeterMod()
|
Method Summary | |
---|---|
OFMeterMod |
clone()
|
void |
computeLength()
This method computes the command of the OFMeterMod message, both setting the command field and returning the value. |
boolean |
equals(java.lang.Object obj)
|
java.util.List<OFMeterBand> |
getBands()
|
short |
getCommand()
|
int |
getCommandU()
Get the unsigned int command |
int |
getFlags()
|
int |
getMeterId()
|
int |
hashCode()
|
void |
readFrom(java.nio.ByteBuffer data)
Read this message off the wire from the specified ByteBuffer |
OFMeterMod |
setBands(java.util.List<OFMeterBand> bands)
|
void |
setCommand(short command)
|
OFMeterMod |
setFlags(short flags)
|
void |
setMeterBandFactory(OFMeterBandFactory meterBandFactory)
Sets the OFMeterBandFactory |
OFMeterMod |
setMeterId(int meterId)
|
java.lang.String |
toString()
Returns a summary of the message |
void |
writeTo(java.nio.ByteBuffer data)
Write this message's binary format to the specified ByteBuffer |
Methods inherited from class org.openflow.protocol.OFMessage |
---|
getLength, getLengthU, getType, getVersion, getXid, setLength, setLengthU, setType, setVersion, setXid |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int MINIMUM_LENGTH
public static final int OFPMC_ADD
public static final int OFPMC_MODIFY
public static final int OFPMC_DELETE
protected OFMeterBandFactory meterBandFactory
protected int meterId
protected short flags
protected short command
protected java.util.List<OFMeterBand> bands
Constructor Detail |
---|
public OFMeterMod()
Method Detail |
---|
public int getMeterId()
public OFMeterMod setMeterId(int meterId)
meterId
- the meterId to setpublic int getFlags()
public OFMeterMod setFlags(short flags)
flags
- the flags associated with the meterpublic short getCommand()
public int getCommandU()
public void setCommand(short command)
command
- the command to setpublic java.util.List<OFMeterBand> getBands()
public OFMeterMod setBands(java.util.List<OFMeterBand> bands)
bands
- the bands to setpublic void readFrom(java.nio.ByteBuffer data)
OFMessage
readFrom
in class OFMessage
public void writeTo(java.nio.ByteBuffer data)
OFMessage
writeTo
in class OFMessage
public int hashCode()
hashCode
in class OFMessage
public boolean equals(java.lang.Object obj)
equals
in class OFMessage
public OFMeterMod clone()
clone
in class java.lang.Object
public void setMeterBandFactory(OFMeterBandFactory meterBandFactory)
OFMeterBandFactoryAware
setMeterBandFactory
in interface OFMeterBandFactoryAware
public java.lang.String toString()
OFMessage
toString
in class OFMessage
public void computeLength()
computeLength
in class OFMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |