public class PceccCapabilityTlv extends Object implements PcepValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
GFLAG_CHECK |
static short |
LENGTH |
static byte |
LFLAG_CHECK |
protected static org.slf4j.Logger |
log |
static int |
SET |
static short |
TYPE |
| Constructor and Description |
|---|
PceccCapabilityTlv(boolean bGFlag,
boolean bLFlag)
Constructor to initialize G-flag L-flag.
|
PceccCapabilityTlv(int rawValue)
Constructor to initialize raw Value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getGFlag()
Returns G-flag.
|
int |
getInt()
Returns the raw value.
|
short |
getLength()
Returns the Length of PCEP Message.
|
boolean |
getLFlag()
Returns L-flag.
|
short |
getType()
Returns the Type of PCEP Message.
|
PcepVersion |
getVersion()
Returns the Version Of PCEP Message.
|
int |
hashCode() |
static PceccCapabilityTlv |
of(int raw)
Returns newly created PceccCapabilityTlv object.
|
static PceccCapabilityTlv |
read(org.jboss.netty.buffer.ChannelBuffer c)
Reads channel buffer and returns object of PceccCapabilityTlv.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer c)
Writes the byte Stream of PCEP Message to channel buffer.
|
protected static final org.slf4j.Logger log
public static final short TYPE
public static final short LENGTH
public static final int SET
public static final byte LFLAG_CHECK
public static final byte GFLAG_CHECK
public PceccCapabilityTlv(int rawValue)
rawValue - raw valuepublic PceccCapabilityTlv(boolean bGFlag,
boolean bLFlag)
bGFlag - G-flagbLFlag - L-flagpublic static PceccCapabilityTlv of(int raw)
raw - valuepublic PcepVersion getVersion()
PcepValueTypegetVersion in interface PcepValueTypepublic boolean getGFlag()
public boolean getLFlag()
public int getInt()
public short getType()
PcepValueTypegetType in interface PcepValueTypepublic short getLength()
PcepValueTypegetLength in interface PcepValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer c)
PcepValueTypewrite in interface PcepValueTypec - of type channel bufferpublic static PceccCapabilityTlv read(org.jboss.netty.buffer.ChannelBuffer c)
c - input channel bufferCopyright © 2015. All rights reserved.