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
Parser for
Lsp.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final int -
Constructor Summary
ConstructorsConstructorDescriptionStatefulLspObjectParser(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTlv(TlvsBuilder builder, Tlv tlv) protected final voidaddVendorInformationTlvs(TlvsBuilder builder, List<VendorInformationTlv> tlvs) parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) voidserializeObject(Object object, io.netty.buffer.ByteBuf buffer) Serializes given object to bytes wrapped in given ByteBuf.voidserializeTlvs(@Nullable Tlvs tlvs, io.netty.buffer.ByteBuf body) Methods inherited from class org.opendaylight.protocol.pcep.spi.AbstractObjectWithTlvsParser
parseTlvs, serializeOptionalTlv, serializeTlv, serializeVendorInformationTlvsMethods inherited from class org.opendaylight.protocol.pcep.spi.CommonObjectParser
getObjectClass, getObjectType
-
Field Details
-
DELEGATE
protected static final int DELEGATE- See Also:
-
SYNC
protected static final int SYNC- See Also:
-
REMOVE
protected static final int REMOVE- See Also:
-
ADMINISTRATIVE
protected static final int ADMINISTRATIVE- See Also:
-
OPERATIONAL
protected static final int OPERATIONAL- See Also:
-
CREATE
protected static final int CREATE- See Also:
-
PCE_ALLOCATION
protected static final int PCE_ALLOCATION- See Also:
-
FOUR_BITS_SHIFT
protected static final int FOUR_BITS_SHIFT- See Also:
-
FLAGS_SIZE
protected static final int FLAGS_SIZE- See Also:
-
-
Constructor Details
-
StatefulLspObjectParser
-
-
Method Details
-
parseObject
public Lsp parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException - Throws:
PCEPDeserializerException
-
addTlv
- Overrides:
addTlvin classAbstractObjectWithTlvsParser<TlvsBuilder>
-
serializeObject
Description copied from interface:ObjectSerializerSerializes given object to bytes wrapped in given ByteBuf.- Parameters:
object- PCEP object to be serializedbuffer- ByteBuf wrapper around serialized object
-
serializeTlvs
-
addVendorInformationTlvs
- Specified by:
addVendorInformationTlvsin classAbstractObjectWithTlvsParser<TlvsBuilder>
-