public class PCEPClose extends PCEPMessage
From RFC 5440 Section 6.8
6.8. Close Message The Close message is a PCEP message that is either sent by a PCC to a PCE or by a PCE to a PCC in order to close an established PCEP session. The Message-Type field of the PCEP common header for the Close message is set to 7. The format of a Close message is as follows:log, messageBytes
Constructor and Description |
---|
PCEPClose()
Construct new PCEP CLOSE Message
|
PCEPClose(byte[] bytes)
Contructs and decodes new PCEP CLOSE Message from a byte array
|
Modifier and Type | Method and Description |
---|---|
void |
encode()
Encode the PCEP Message
|
boolean |
equals(Object obj) |
Close |
getClose() |
int |
getReason()
Get the reason for closing the PCEP session
|
int |
hashCode() |
void |
setClose(Close close) |
void |
setReason(int reason)
Set the reason for closing the PCEP session
|
encodeHeader, getBytes, getLength, getMessageType, getMessageType, getVer, setMessageLength, setMessageType
public PCEPClose()
public PCEPClose(byte[] bytes) throws PCEPProtocolViolationException
bytes
- Bytes of the messagePCEPProtocolViolationException
public void setReason(int reason)
public int getReason()
public void encode() throws PCEPProtocolViolationException
PCEPProtocolViolationException
public Close getClose()
public void setClose(Close close)
public int hashCode()
hashCode
in class PCEPMessage
public boolean equals(Object obj)
equals
in class PCEPMessage
Copyright © 2016. All rights reserved.