Class PCEPRequestMessageParser
java.lang.Object
org.opendaylight.protocol.pcep.spi.AbstractMessageParser
org.opendaylight.protocol.pcep.parser.message.PCEPRequestMessageParser
- All Implemented Interfaces:
MessageParser
,MessageSerializer
- Direct Known Subclasses:
PCEPMonitoringRequestMessageParser
,StatefulPCRequestMessageParser
Parser for
Pcreq
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected MonitoringRequest
getMonitoring
(Queue<Object> objects) protected SegmentComputation
protected SegmentComputation
getP2PSegmentComputation
(P2pBuilder builder, Queue<Object> objects, List<Message> errors, Rp rp) getRequests
(Queue<Object> objects, List<Message> errors) void
serializeMessage
(Message message, io.netty.buffer.ByteBuf out) Serializes given message to bytes wrapped in given ByteBuf.protected void
serializeMonitoringRequest
(MonitoringRequest monReq, io.netty.buffer.ByteBuf out) protected void
serializeP2MP
(io.netty.buffer.ByteBuf buffer, P2mp p2mp) protected void
serializeP2P
(io.netty.buffer.ByteBuf buffer, P2p p2p) protected void
serializeRequest
(PcreqMessage msg, io.netty.buffer.ByteBuf buffer) protected void
serializeSvec
(PcreqMessage msg, io.netty.buffer.ByteBuf buffer) protected Message
Methods inherited from class org.opendaylight.protocol.pcep.spi.AbstractMessageParser
addVendorInformationObjects, createErrorMsg, parseMessage, serializeObject, serializeVendorInformationObjects
-
Field Details
-
TYPE
public static final int TYPE- See Also:
-
-
Constructor Details
-
PCEPRequestMessageParser
-
-
Method Details
-
serializeMessage
Description copied from interface:MessageSerializer
Serializes given message to bytes wrapped in given ByteBuf.- Parameters:
message
- PCEP message to be serializedout
- ByteBuf wrapper around serialized message
-
serializeRequest
-
serializeSvec
-
serializeP2P
-
serializeP2MP
-
serializeMonitoringRequest
-
validate
protected Message validate(Queue<Object> objects, List<Message> errors) throws PCEPDeserializerException - Specified by:
validate
in classAbstractMessageParser
- Throws:
PCEPDeserializerException
-
getSvecs
-
getRequests
-
getP2PSegmentComputation
protected SegmentComputation getP2PSegmentComputation(P2pBuilder builder, Queue<Object> objects, List<Message> errors, Rp rp) -
getP2MPSegmentComputation
-
getMonitoring
-