public abstract class PCEPMessage extends Object implements PCEPElement
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
protected byte[] |
messageBytes |
| Constructor and Description |
|---|
PCEPMessage()
Default constructor
|
PCEPMessage(byte[] bytes)
Creates a PCEP message from a byte array.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
encodeHeader() |
boolean |
equals(Object obj) |
byte[] |
getBytes()
Get the message Bytes
|
int |
getLength() |
int |
getMessageType()
Message-Type (8 bits): The following message types are currently
defined:
Value Meaning
1 Open
2 Keepalive
3 Path Computation Request
4 Path Computation Reply
5 Notification
6 Error
7 Close
8 PCMonReq
9 PCMonRep
TBD PCUpdate
TBD PCReport
|
static int |
getMessageType(byte[] bytes) |
int |
getVer() |
int |
hashCode() |
void |
setMessageLength(int messageLength) |
void |
setMessageType(int messageType) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitencodepublic PCEPMessage()
public PCEPMessage(byte[] bytes)
throws PCEPProtocolViolationException
bytes - PCEPProtocolViolationExceptionpublic void setMessageLength(int messageLength)
public void setMessageType(int messageType)
public byte[] getBytes()
getBytes in interface PCEPElementpublic int getMessageType()
public static int getMessageType(byte[] bytes)
public int getVer()
public int getLength()
getLength in interface PCEPElementprotected void encodeHeader()
Copyright © 2016. All rights reserved.