public class PCEPRequest extends PCEPMessage
From RFC 5440 Section 6.4: 6.4. Path Computation Request (PCReq) Message A Path Computation Request message (also referred to as a PCReq message) is a PCEP message sent by a PCC to a PCE to request a path computation. A PCReq message may carry more than one path computation request. The Message-Type field of the PCEP common header for the PCReq message is set to 3.
There are two mandatory objects that MUST be included within a PCReq message: the RP and the END-POINTS objects (see Section 7). If one or both of these objects is missing, the receiving PCE MUST send an error message to the requesting PCC. Other objects are optional.
The format of a PCReq message is as follows:messageBytes
Constructor and Description |
---|
PCEPRequest()
Construct new PCEP Request from scratch
|
PCEPRequest(byte[] bytes) |
Modifier and Type | Method and Description |
---|---|
void |
addRequest(Request request) |
void |
addSvec(SVECConstruct svec) |
void |
decode()
Decodes a PCEP Request following RFC 5440, RFC 5541, RFC 5886 and RFC 5521
|
void |
encode()
Encodes the PCEP Request message
|
boolean |
equals(Object obj) |
Monitoring |
getMonitoring() |
PccReqId |
getPccReqId() |
Request |
getRequest(int index) |
LinkedList<Request> |
getRequestList() |
LinkedList<SVECConstruct> |
getSvecList() |
int |
hashCode() |
void |
setMonitoring(Monitoring monitoring) |
void |
setPccReqId(PccReqId pccReqId) |
void |
setRequestList(LinkedList<Request> requestList) |
void |
setSvecList(LinkedList<SVECConstruct> svecList) |
String |
toString() |
encodeHeader, getBytes, getLength, getMessageType, getMessageType, getVer, setMessageLength, setMessageType
public PCEPRequest()
public PCEPRequest(byte[] bytes) throws PCEPProtocolViolationException
PCEPProtocolViolationException
public void encode() throws PCEPProtocolViolationException
PCEPProtocolViolationException
public void decode() throws PCEPProtocolViolationException
PCEPProtocolViolationException
public void addRequest(Request request)
public Request getRequest(int index)
public LinkedList<Request> getRequestList()
public void setRequestList(LinkedList<Request> requestList)
public LinkedList<SVECConstruct> getSvecList()
public void setSvecList(LinkedList<SVECConstruct> svecList)
public void addSvec(SVECConstruct svec)
public Monitoring getMonitoring()
public PccReqId getPccReqId()
public void setMonitoring(Monitoring monitoring)
public void setPccReqId(PccReqId pccReqId)
public int hashCode()
hashCode
in class PCEPMessage
public boolean equals(Object obj)
equals
in class PCEPMessage
Copyright © 2016. All rights reserved.