public class LinkAttributesTlv extends Object implements PcepValueType
| Modifier and Type | Field and Description |
|---|---|
short |
hLength |
protected static org.slf4j.Logger |
log |
static int |
TLV_HEADER_LENGTH |
static short |
TYPE |
| Constructor and Description |
|---|
LinkAttributesTlv(List<PcepValueType> llLinkAttributesSubTLVs)
Constructor to initialize Link Attributes Sub TLVs.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
short |
getLength()
Returns the Length of PCEP Message.
|
List<PcepValueType> |
getllLinkAttributesSubTLVs()
Returns linked list of Link Attribute of Sub TLV.
|
short |
getType()
Returns the Type of PCEP Message.
|
PcepVersion |
getVersion()
Returns the Version Of PCEP Message.
|
int |
hashCode() |
static LinkAttributesTlv |
of(List<PcepValueType> llLinkAttributesSubTLVs)
Returns object of TE Link Attributes TLV.
|
static PcepValueType |
read(org.jboss.netty.buffer.ChannelBuffer c,
short hLength)
Reads channel buffer and returns object of TE Link Attributes TLV.
|
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 short hLength
public static final int TLV_HEADER_LENGTH
public LinkAttributesTlv(List<PcepValueType> llLinkAttributesSubTLVs)
llLinkAttributesSubTLVs - linked list of PcepValueTypepublic static LinkAttributesTlv of(List<PcepValueType> llLinkAttributesSubTLVs)
llLinkAttributesSubTLVs - linked list of Link Attribute of Sub TLVpublic List<PcepValueType> getllLinkAttributesSubTLVs()
public PcepVersion getVersion()
PcepValueTypegetVersion in interface PcepValueTypepublic 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 PcepValueType read(org.jboss.netty.buffer.ChannelBuffer c, short hLength) throws PcepParseException
c - input channel bufferhLength - lengthPcepParseException - if mandatory fields are missing