public class PcepRsvpSpecObjHeader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
PcepRsvpSpecObjHeader(short objLen,
byte objClassNum,
byte objClassType)
Constructor to initialize length, class num and type.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getObjClassNum()
Returns Object num.
|
byte |
getObjClassType()
Returns Object type.
|
short |
getObjLen()
Returns Object Length.
|
static PcepRsvpSpecObjHeader |
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.
|
public PcepRsvpSpecObjHeader(short objLen,
byte objClassNum,
byte objClassType)
objLen - object lengthobjClassNum - pcep rsvp error spec object class numobjClassType - pcep rsvp error spec object class typepublic void setObjClassNum(byte value)
value - pcep rsvp error spec object class numpublic void setObjClassType(byte value)
value - pcep rsvp error spec object class typepublic void setObjLen(short value)
value - pcep rsvp error spec 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 PcepRsvpSpecObjHeader read(org.jboss.netty.buffer.ChannelBuffer cb)
cb - of type channel bufferCopyright © 2015. All rights reserved.