public class OFGroup extends Object implements OFValueType<OFGroup>
Modifier and Type | Field and Description |
---|---|
static OFGroup |
ALL
All groups
|
static OFGroup |
ANY
Wildcard group used only for flow mod (delete) and flow stats requests.
|
static OFGroup |
FULL_MASK |
static OFGroup |
MAX
Maximum number of physical and logical switch groups.
|
static OFGroup |
NO_MASK |
static OFGroup |
ZERO
group 0 in case we need it
|
Modifier and Type | Method and Description |
---|---|
OFGroup |
applyMask(OFGroup mask) |
int |
compareTo(OFGroup o) |
boolean |
equals(Object obj) |
int |
getGroupNumber()
return the group number as a int32
|
int |
getLength() |
int |
hashCode() |
static OFGroup |
of(int groupNumber)
get an OFGroup object corresponding to a raw 32-bit integer group number.
|
void |
putTo(com.google.common.hash.PrimitiveSink sink) |
static OFGroup |
read4Bytes(io.netty.buffer.ByteBuf c) |
String |
toString() |
void |
write4Bytes(io.netty.buffer.ByteBuf c) |
public static final OFGroup MAX
public static final OFGroup ALL
public static final OFGroup ANY
public static final OFGroup ZERO
public static final OFGroup NO_MASK
public static final OFGroup FULL_MASK
public static OFGroup of(int groupNumber)
groupNumber
- the raw 32-bit group numberpublic int getGroupNumber()
public int getLength()
getLength
in interface OFValueType<OFGroup>
public void write4Bytes(io.netty.buffer.ByteBuf c)
public static OFGroup read4Bytes(io.netty.buffer.ByteBuf c) throws OFParseError
OFParseError
public OFGroup applyMask(OFGroup mask)
applyMask
in interface OFValueType<OFGroup>
public int compareTo(OFGroup o)
compareTo
in interface Comparable<OFGroup>
public void putTo(com.google.common.hash.PrimitiveSink sink)
putTo
in interface PrimitiveSinkable
Copyright © 2015. All rights reserved.