public class NexthopIPv4addressTlv extends Object implements PcepValueType
| Modifier and Type | Field and Description |
|---|---|
static short |
LENGTH |
protected static org.slf4j.Logger |
log |
static short |
TYPE |
static short |
VALUE_LENGTH |
| Constructor and Description |
|---|
NexthopIPv4addressTlv(int rawValue)
Constructor to initialize next hop IPv4 address.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getInt()
Returns next hop IPv4 address.
|
short |
getLength()
Returns the Length of PCEP Message.
|
short |
getType()
Returns the Type of PCEP Message.
|
PcepVersion |
getVersion()
Returns the Version Of PCEP Message.
|
int |
hashCode() |
static NexthopIPv4addressTlv |
of(int raw)
Return next hop IPv4 address tlv.
|
static NexthopIPv4addressTlv |
read(org.jboss.netty.buffer.ChannelBuffer c)
Reads the channel buffer and returns object of NexthopIPv4addressTlv.
|
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 short TYPE
public static final short LENGTH
public static final short VALUE_LENGTH
public NexthopIPv4addressTlv(int rawValue)
rawValue - next hop IPv4 addresspublic static NexthopIPv4addressTlv of(int raw)
raw - of next hop IPv4 addresspublic int getInt()
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 NexthopIPv4addressTlv read(org.jboss.netty.buffer.ChannelBuffer c)
c - type of channel bufferCopyright © 2015. All rights reserved.