Class StatefulLspObjectParser
java.lang.Object
org.opendaylight.protocol.pcep.spi.CommonObjectParser
org.opendaylight.protocol.pcep.spi.AbstractObjectWithTlvsParser<TlvsBuilder>
org.opendaylight.protocol.pcep.ietf.stateful.StatefulLspObjectParser
- All Implemented Interfaces:
- ObjectParser,- ObjectSerializer
- Direct Known Subclasses:
- InitiatedLspObjectParser
Parser for 
Lsp.- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final int
- 
Constructor SummaryConstructorsConstructorDescriptionStatefulLspObjectParser(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddTlv(TlvsBuilder builder, Tlv tlv) protected final voidaddVendorInformationTlvs(TlvsBuilder builder, List<VendorInformationTlv> tlvs) protected voidparseFlags(LspBuilder builder, io.netty.buffer.ByteBuf bytes) parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) protected BitArrayserializeFlags(Lsp specObj) voidserializeObject(Object object, io.netty.buffer.ByteBuf buffer) Serializes given object to bytes wrapped in given ByteBuf.voidserializeTlvs(Tlvs tlvs, io.netty.buffer.ByteBuf body) Methods inherited from class org.opendaylight.protocol.pcep.spi.AbstractObjectWithTlvsParserparseTlvs, serializeTlv, serializeVendorInformationTlvsMethods inherited from class org.opendaylight.protocol.pcep.spi.CommonObjectParsergetObjectClass, getObjectType
- 
Field Details- 
DELEGATEprotected static final int DELEGATE- See Also:
 
- 
SYNCprotected static final int SYNC- See Also:
 
- 
REMOVEprotected static final int REMOVE- See Also:
 
- 
ADMINISTRATIVEprotected static final int ADMINISTRATIVE- See Also:
 
- 
OPERATIONALprotected static final int OPERATIONAL- See Also:
 
- 
FOUR_BITS_SHIFTprotected static final int FOUR_BITS_SHIFT- See Also:
 
- 
FLAGS_SIZEprotected static final int FLAGS_SIZE- See Also:
 
 
- 
- 
Constructor Details- 
StatefulLspObjectParser
 
- 
- 
Method Details- 
parseObjectpublic Lsp parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException - Throws:
- PCEPDeserializerException
 
- 
parseFlags
- 
addTlv- Overrides:
- addTlvin class- AbstractObjectWithTlvsParser<TlvsBuilder>
 
- 
serializeObjectDescription copied from interface:ObjectSerializerSerializes given object to bytes wrapped in given ByteBuf.- Parameters:
- object- PCEP object to be serialized
- buffer- ByteBuf wrapper around serialized object
 
- 
serializeFlags
- 
serializeTlvs
- 
addVendorInformationTlvs- Specified by:
- addVendorInformationTlvsin class- AbstractObjectWithTlvsParser<TlvsBuilder>
 
 
-