|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openflow.protocol.action.OFAction
public class OFAction
The base class for all OpenFlow Actions.
| Field Summary | |
|---|---|
protected short |
length
|
static int |
MINIMUM_LENGTH
Note the true minimum length for this header is 8 including a pad to 64 bit alignment, however as this base class is used for demuxing an incoming Action, it is only necessary to read the first 4 bytes. |
static int |
OFFSET_LENGTH
|
static int |
OFFSET_TYPE
|
protected OFActionType |
type
|
| Constructor Summary | |
|---|---|
OFAction()
|
|
| Method Summary | |
|---|---|
OFAction |
clone()
|
boolean |
equals(java.lang.Object obj)
|
static OFAction |
fromString(java.lang.String val)
Given the output from toString(), create a new OFAction |
short |
getLength()
Get the length of this message |
int |
getLengthU()
Get the length of this message, unsigned |
OFActionType |
getType()
Get the type of this message |
int |
hashCode()
|
void |
readFrom(java.nio.ByteBuffer data)
|
OFAction |
setLength(short length)
Set the length of this message |
OFAction |
setType(OFActionType type)
Set the type of this message |
java.lang.String |
toString()
Returns a summary of the message |
void |
writeTo(java.nio.ByteBuffer data)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int MINIMUM_LENGTH
public static int OFFSET_LENGTH
public static int OFFSET_TYPE
protected OFActionType type
protected short length
| Constructor Detail |
|---|
public OFAction()
| Method Detail |
|---|
public short getLength()
public int getLengthU()
public OFAction setLength(short length)
length - public OFActionType getType()
public OFAction setType(OFActionType type)
type - public java.lang.String toString()
toString in class java.lang.Objectpublic static OFAction fromString(java.lang.String val)
val -
public void readFrom(java.nio.ByteBuffer data)
public void writeTo(java.nio.ByteBuffer data)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
public OFAction clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||