Class Stateful07LspObjectParser
- java.lang.Object
-
- org.opendaylight.protocol.pcep.spi.CommonObjectParser
-
- org.opendaylight.protocol.pcep.spi.AbstractObjectWithTlvsParser<TlvsBuilder>
-
- org.opendaylight.protocol.pcep.ietf.stateful07.Stateful07LspObjectParser
-
- All Implemented Interfaces:
ObjectParser
,ObjectSerializer
- Direct Known Subclasses:
CInitiated00LspObjectParser
public class Stateful07LspObjectParser extends AbstractObjectWithTlvsParser<TlvsBuilder>
Parser forLsp
.
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
ADMINISTRATIVE
protected static int
DELEGATE
protected static int
FLAGS_SIZE
protected static int
FOUR_BITS_SHIFT
protected static int
OPERATIONAL
protected static int
REMOVE
protected static int
SYNC
-
Constructor Summary
Constructors Constructor Description Stateful07LspObjectParser(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTlv(TlvsBuilder builder, Tlv tlv)
protected void
addVendorInformationTlvs(TlvsBuilder builder, List<VendorInformationTlv> tlvs)
protected void
parseFlags(LspBuilder builder, io.netty.buffer.ByteBuf bytes)
Lsp
parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes)
protected BitArray
serializeFlags(Lsp specObj)
void
serializeObject(Object object, io.netty.buffer.ByteBuf buffer)
Serializes given object to bytes wrapped in given ByteBuf.void
serializeTlvs(Tlvs tlvs, io.netty.buffer.ByteBuf body)
-
Methods inherited from class org.opendaylight.protocol.pcep.spi.AbstractObjectWithTlvsParser
parseTlvs, serializeTlv, serializeVendorInformationTlvs
-
Methods inherited from class org.opendaylight.protocol.pcep.spi.CommonObjectParser
getObjectClass, getObjectType
-
-
-
-
Field Detail
-
DELEGATE
protected static final int DELEGATE
- See Also:
- Constant Field Values
-
SYNC
protected static final int SYNC
- See Also:
- Constant Field Values
-
REMOVE
protected static final int REMOVE
- See Also:
- Constant Field Values
-
ADMINISTRATIVE
protected static final int ADMINISTRATIVE
- See Also:
- Constant Field Values
-
OPERATIONAL
protected static final int OPERATIONAL
- See Also:
- Constant Field Values
-
FOUR_BITS_SHIFT
protected static final int FOUR_BITS_SHIFT
- See Also:
- Constant Field Values
-
FLAGS_SIZE
protected static final int FLAGS_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Stateful07LspObjectParser
public Stateful07LspObjectParser(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg)
-
-
Method Detail
-
parseObject
public Lsp parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException
- Throws:
PCEPDeserializerException
-
parseFlags
protected void parseFlags(LspBuilder builder, io.netty.buffer.ByteBuf bytes)
-
addTlv
public void addTlv(TlvsBuilder builder, Tlv tlv)
- Overrides:
addTlv
in classAbstractObjectWithTlvsParser<TlvsBuilder>
-
serializeObject
public void serializeObject(Object object, io.netty.buffer.ByteBuf buffer)
Description copied from interface:ObjectSerializer
Serializes given object to bytes wrapped in given ByteBuf.- Parameters:
object
- PCEP object to be serializedbuffer
- ByteBuf wrapper around serialized object
-
serializeTlvs
public void serializeTlvs(Tlvs tlvs, io.netty.buffer.ByteBuf body)
-
addVendorInformationTlvs
protected final void addVendorInformationTlvs(TlvsBuilder builder, List<VendorInformationTlv> tlvs)
- Specified by:
addVendorInformationTlvs
in classAbstractObjectWithTlvsParser<TlvsBuilder>
-
-