Class PCEPGlobalConstraintsObjectParser
- java.lang.Object
-
- org.opendaylight.protocol.pcep.spi.CommonObjectParser
-
- org.opendaylight.protocol.pcep.spi.AbstractObjectWithTlvsParser<TlvsBuilder>
-
- org.opendaylight.protocol.pcep.parser.object.PCEPGlobalConstraintsObjectParser
-
- All Implemented Interfaces:
ObjectParser
,ObjectSerializer
public class PCEPGlobalConstraintsObjectParser extends AbstractObjectWithTlvsParser<TlvsBuilder>
Parser forGc
.
-
-
Constructor Summary
Constructors Constructor Description PCEPGlobalConstraintsObjectParser(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addVendorInformationTlvs(TlvsBuilder builder, List<VendorInformationTlv> tlvs)
Gc
parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes)
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
addTlv, parseTlvs, serializeTlv, serializeVendorInformationTlvs
-
Methods inherited from class org.opendaylight.protocol.pcep.spi.CommonObjectParser
getObjectClass, getObjectType
-
-
-
-
Constructor Detail
-
PCEPGlobalConstraintsObjectParser
public PCEPGlobalConstraintsObjectParser(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg)
-
-
Method Detail
-
parseObject
public Gc parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException
- Throws:
PCEPDeserializerException
-
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>
-
-