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
public class PCEPRequestMessageParser extends AbstractMessageParser
Parser forPcreq
.
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE
-
Constructor Summary
Constructors Constructor Description PCEPRequestMessageParser(ObjectRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MonitoringRequest
getMonitoring(Queue<Object> objects)
protected SegmentComputation
getP2MPSegmentComputation(Queue<Object> objects, List<Message> errors, Rp rp)
protected SegmentComputation
getP2PSegmentComputation(P2pBuilder builder, Queue<Object> objects, List<Message> errors, Rp rp)
protected List<Requests>
getRequests(Queue<Object> objects, List<Message> errors)
protected List<Svec>
getSvecs(Queue<Object> objects)
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
validate(Queue<Object> objects, List<Message> errors)
-
Methods inherited from class org.opendaylight.protocol.pcep.spi.AbstractMessageParser
addVendorInformationObjects, createErrorMsg, parseMessage, serializeObject, serializeVendorInformationObjects
-
-
-
-
Field Detail
-
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PCEPRequestMessageParser
public PCEPRequestMessageParser(ObjectRegistry registry)
-
-
Method Detail
-
serializeMessage
public void serializeMessage(Message message, io.netty.buffer.ByteBuf out)
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
protected void serializeRequest(PcreqMessage msg, io.netty.buffer.ByteBuf buffer)
-
serializeSvec
protected void serializeSvec(PcreqMessage msg, io.netty.buffer.ByteBuf buffer)
-
serializeP2P
protected void serializeP2P(io.netty.buffer.ByteBuf buffer, P2p p2p)
-
serializeP2MP
protected void serializeP2MP(io.netty.buffer.ByteBuf buffer, P2mp p2mp)
-
serializeMonitoringRequest
protected void serializeMonitoringRequest(MonitoringRequest monReq, io.netty.buffer.ByteBuf out)
-
validate
protected Message validate(Queue<Object> objects, List<Message> errors) throws PCEPDeserializerException
- Specified by:
validate
in classAbstractMessageParser
- Throws:
PCEPDeserializerException
-
getP2PSegmentComputation
protected SegmentComputation getP2PSegmentComputation(P2pBuilder builder, Queue<Object> objects, List<Message> errors, Rp rp)
-
getP2MPSegmentComputation
protected SegmentComputation getP2MPSegmentComputation(Queue<Object> objects, List<Message> errors, Rp rp)
-
getMonitoring
protected MonitoringRequest getMonitoring(Queue<Object> objects)
-
-