public class PCEPMonReq extends PCEPMessage
The Message-Type field of the PCEP common header for the PCMonReq message is set to 8.
There is one mandatory object that MUST be included within a PCMonReq message: the MONITORING object. If the MONITORING object is missing, the receiving PCE MUST send a PCErr message with Error-type=6 (Mandatory Object missing) and Error-value=4 (MONITORING object missing). Other objects are optional.
Format of a PCMonReq message (out-of-band request):
log, messageBytes
Constructor and Description |
---|
PCEPMonReq()
Construct new PCEP PCMonReq
|
Modifier and Type | Method and Description |
---|---|
void |
addPceId(PceId pce) |
void |
addRequest(Request request) |
void |
addSvec(SVECConstruct svec) |
void |
decode(byte[] bytes)
Decodes a PCEP Mon Request following RFC 5440, RFC 5541, RFC 5886 and RFC 5521
|
void |
encode() |
boolean |
equals(Object obj) |
LinkedList<Metric> |
getMetricList() |
Monitoring |
getMonitoring() |
PccReqId |
getPccReqId() |
LinkedList<PceId> |
getPceList() |
Request |
getRequest(int index) |
LinkedList<Request> |
getRequestList() |
LinkedList<SVECConstruct> |
getSvecList() |
int |
hashCode() |
void |
setMetricList(LinkedList<Metric> metricList) |
void |
setMonitoring(Monitoring monitoring) |
void |
setPccReqId(PccReqId pccReqId) |
void |
setPceList(LinkedList<PceId> pceList) |
void |
setRequestList(LinkedList<Request> requestList) |
void |
setSvecList(LinkedList<SVECConstruct> svecList) |
encodeHeader, getBytes, getLength, getMessageType, getMessageType, getVer, setMessageLength, setMessageType
public void encode() throws PCEPProtocolViolationException
PCEPProtocolViolationException
public void decode(byte[] bytes) throws PCEPProtocolViolationException
PCEPProtocolViolationException
public void setMonitoring(Monitoring monitoring)
public void setPccReqId(PccReqId pccReqId)
public void addRequest(Request request)
public void addSvec(SVECConstruct svec)
public void addPceId(PceId pce)
public Request getRequest(int index)
public Monitoring getMonitoring()
public PccReqId getPccReqId()
public LinkedList<PceId> getPceList()
public void setPceList(LinkedList<PceId> pceList)
public LinkedList<SVECConstruct> getSvecList()
public void setSvecList(LinkedList<SVECConstruct> svecList)
public LinkedList<Request> getRequestList()
public void setRequestList(LinkedList<Request> requestList)
public LinkedList<Metric> getMetricList()
public void setMetricList(LinkedList<Metric> metricList)
public int hashCode()
hashCode
in class PCEPMessage
public boolean equals(Object obj)
equals
in class PCEPMessage
Copyright © 2016. All rights reserved.