public class PathKeySubObject extends Object implements PcepValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
LENGTH |
protected static org.slf4j.Logger |
log |
static byte |
TYPE |
| Constructor and Description |
|---|
PathKeySubObject(short pathKey,
int pceID)
Constructor for Path Key sub Object which initializes pathKey and pceId.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
short |
getLength()
Returns the Length of PCEP Message.
|
short |
getPathKey()
Returns Path Key.
|
int |
getPceId()
Returns pceID.
|
short |
getType()
Returns the Type of PCEP Message.
|
PcepVersion |
getVersion()
Returns the Version Of PCEP Message.
|
int |
hashCode() |
static PathKeySubObject |
of(short pathKey,
int pceID)
Creates Path Key sub Object which initializes pathKey and pceId.
|
static PcepValueType |
read(org.jboss.netty.buffer.ChannelBuffer c)
Reads the channel buffer and returns new path key sub objects.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer c)
Writes the byte Stream of PCEP Message to channel buffer.
|
protected static final org.slf4j.Logger log
public static final byte TYPE
public static final byte LENGTH
public PathKeySubObject(short pathKey,
int pceID)
pathKey - path key provided by PCCpceID - ID for the PCEpublic static PathKeySubObject of(short pathKey, int pceID)
pathKey - path key provided by PCCpceID - PCE idpublic short getPathKey()
public int getPceId()
public PcepVersion getVersion()
PcepValueTypegetVersion in interface PcepValueTypepublic short getType()
PcepValueTypegetType in interface PcepValueTypepublic short getLength()
PcepValueTypegetLength in interface PcepValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer c)
PcepValueTypewrite in interface PcepValueTypec - of type channel bufferpublic static PcepValueType read(org.jboss.netty.buffer.ChannelBuffer c)
c - of type channel bufferCopyright © 2015. All rights reserved.