|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openflow.protocol.OFBucket
public class OFBucket
Represents an ofp_bucket
Field Summary | |
---|---|
protected OFActionFactory |
actionFactory
|
protected java.util.List<OFAction> |
actions
|
protected short |
length
|
static int |
MINIMUM_LENGTH
|
protected int |
watchGroup
|
protected int |
watchPort
|
protected short |
weight
|
Constructor Summary | |
---|---|
OFBucket()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.List<OFAction> |
getActions()
Returns read-only copies of the actions contained in this bucket |
short |
getLength()
Returns the length of this bucket (including padding) |
int |
getLengthU()
Get the length of this bucket, unsigned |
int |
getWatchGroup()
Returns the watchGroup set for this bucket |
int |
getWatchPort()
Returns the watchPort set for this bucket |
short |
getWeight()
Returns the weight of this bucket |
int |
hashCode()
|
void |
readFrom(java.nio.ByteBuffer data)
|
void |
setActionFactory(OFActionFactory actionFactory)
Sets the OFActionFactory |
OFBucket |
setActions(java.util.List<OFAction> actions)
Sets the list of actions this bucket contains |
OFBucket |
setLength(short length)
Sets the length of this bucket |
OFBucket |
setWatchGroup(int watchGroup)
Sets the watchGroup for this bucket |
OFBucket |
setWatchPort(int watchPort)
Sets the watchPort for this bucket |
OFBucket |
setWeight(short weight)
Sets the weight of this bucket |
java.lang.String |
toString()
|
void |
writeTo(java.nio.ByteBuffer data)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int MINIMUM_LENGTH
protected short length
protected short weight
protected int watchPort
protected int watchGroup
protected OFActionFactory actionFactory
protected java.util.List<OFAction> actions
Constructor Detail |
---|
public OFBucket()
Method Detail |
---|
public java.util.List<OFAction> getActions()
public OFBucket setActions(java.util.List<OFAction> actions)
actions
- a list of ordered OFAction objectspublic int getWatchPort()
public OFBucket setWatchPort(int watchPort)
the
- watch portpublic int getWatchGroup()
public OFBucket setWatchGroup(int watchGroup)
the
- watch grouppublic short getLength()
public int getLengthU()
public OFBucket setLength(short length)
length
- public short getWeight()
public OFBucket setWeight(short weight)
weight
- public void readFrom(java.nio.ByteBuffer data)
public void writeTo(java.nio.ByteBuffer data)
public void setActionFactory(OFActionFactory actionFactory)
OFActionFactoryAware
setActionFactory
in interface OFActionFactoryAware
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |