public class PcepRsvpObjectHeader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
static int |
OBJECT_TYPE_SHIFT_VALUE |
static boolean |
REQ_OBJ_MUST_PROCESS |
static boolean |
REQ_OBJ_OPTIONAL_PROCESS |
static boolean |
RSP_OBJ_IGNORED |
static boolean |
RSP_OBJ_PROCESSED |
| Constructor and Description |
|---|
PcepRsvpObjectHeader(byte objClassNum,
byte objClassType,
short objLen)
Constructor to initialize class num, length and type.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getObjClassNum()
Returns Object num.
|
byte |
getObjClassType()
Returns Object type.
|
short |
getObjLen()
Returns Object Length.
|
static PcepRsvpObjectHeader |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the PcepRsvpObjectHeader.
|
void |
setObjClassNum(byte value)
Sets the Class-Num.
|
void |
setObjClassType(byte value)
Sets the Class type.
|
void |
setObjLen(short value)
Sets the Class Length.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte stream of PcepRsvpObjectHeader to channel buffer.
|
protected static final org.slf4j.Logger log
public static final boolean REQ_OBJ_MUST_PROCESS
public static final boolean REQ_OBJ_OPTIONAL_PROCESS
public static final boolean RSP_OBJ_IGNORED
public static final boolean RSP_OBJ_PROCESSED
public static final int OBJECT_TYPE_SHIFT_VALUE
public PcepRsvpObjectHeader(byte objClassNum,
byte objClassType,
short objLen)
objClassNum - object class numberobjClassType - object class typeobjLen - object lengthpublic void setObjClassNum(byte value)
value - object class numberpublic void setObjClassType(byte value)
value - object class typepublic void setObjLen(short value)
value - object lengthpublic short getObjLen()
public byte getObjClassNum()
public byte getObjClassType()
public int write(org.jboss.netty.buffer.ChannelBuffer cb)
cb - of type channel bufferpublic static PcepRsvpObjectHeader read(org.jboss.netty.buffer.ChannelBuffer cb)
cb - input channel buffer