public class OFAction extends Object implements Cloneable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
OFAction() |
Modifier and Type | Method and Description |
---|---|
OFAction |
clone() |
boolean |
equals(Object obj) |
static OFAction |
fromString(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(org.jboss.netty.buffer.ChannelBuffer data) |
OFAction |
setLength(short length)
Set the length of this message
|
void |
setType(OFActionType type)
Set the type of this message
|
String |
toString()
Returns a summary of the message
|
void |
writeTo(org.jboss.netty.buffer.ChannelBuffer data) |
public static int MINIMUM_LENGTH
public static int OFFSET_LENGTH
public static int OFFSET_TYPE
protected OFActionType type
protected short length
public short getLength()
public int getLengthU()
public OFAction setLength(short length)
length
- public OFActionType getType()
public void setType(OFActionType type)
type
- public String toString()
public static OFAction fromString(String val)
val
- public void readFrom(org.jboss.netty.buffer.ChannelBuffer data)
public void writeTo(org.jboss.netty.buffer.ChannelBuffer data)
public OFAction clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2015. All rights reserved.