|
||||||||||
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.OFGroupMod
public class OFGroupMod
Represents an ofp_group_mod message
Field Summary | |
---|---|
protected OFActionFactory |
actionFactory
|
protected java.util.List<OFBucket> |
buckets
|
protected short |
command
|
protected int |
groupId
|
protected byte |
groupType
|
static int |
MINIMUM_LENGTH
|
static short |
OFPGC_ADD
|
static short |
OFPGC_DELETE
|
static short |
OFPGC_MODIFY
|
static byte |
OFPGT_ALL
|
static byte |
OFPGT_FF
|
static byte |
OFPGT_INDIRECT
|
static byte |
OFPGT_SELECT
|
Fields inherited from class org.openflow.protocol.OFMessage |
---|
length, OFP_VERSION, type, version, xid |
Constructor Summary | |
---|---|
OFGroupMod()
|
Method Summary | |
---|---|
void |
computeLength()
This method is called during the writeTo method for serialization and is expected to set the length of the message. |
boolean |
equals(java.lang.Object obj)
|
java.util.List<OFBucket> |
getBuckets()
Returns read-only copies of the buckets |
short |
getCommand()
|
int |
getGroupId()
|
byte |
getGroupType()
|
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 |
OFGroupMod |
setBuckets(java.util.List<OFBucket> buckets)
Sets the list of buckets this groupmod contains |
OFGroupMod |
setCommand(short command)
|
OFGroupMod |
setGroupId(int groupId)
|
OFGroupMod |
setGroupType(byte groupType)
|
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, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int MINIMUM_LENGTH
public static final short OFPGC_ADD
public static final short OFPGC_MODIFY
public static final short OFPGC_DELETE
public static final byte OFPGT_ALL
public static final byte OFPGT_SELECT
public static final byte OFPGT_INDIRECT
public static final byte OFPGT_FF
protected OFActionFactory actionFactory
protected short command
protected byte groupType
protected int groupId
protected java.util.List<OFBucket> buckets
Constructor Detail |
---|
public OFGroupMod()
Method Detail |
---|
public int getGroupId()
public OFGroupMod setGroupId(int groupId)
groupId
- the groupId to setpublic byte getGroupType()
public OFGroupMod setGroupType(byte groupType)
type
- the type to setpublic short getCommand()
public OFGroupMod setCommand(short command)
command
- the command to setpublic java.util.List<OFBucket> getBuckets()
public OFGroupMod setBuckets(java.util.List<OFBucket> buckets)
buckets
- a list of ordered OFBucket objectspublic void setActionFactory(OFActionFactory actionFactory)
OFActionFactoryAware
setActionFactory
in interface OFActionFactoryAware
public 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 void computeLength()
OFMessage
computeLength
in class OFMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |