public class IPv4SubObject extends Object implements PcepValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
LBIT |
static byte |
LENGTH |
protected static org.slf4j.Logger |
log |
static byte |
OBJ_LENGTH |
static int |
SHIFT_LBIT_POSITION |
static byte |
TYPE |
static byte |
VALUE_LENGTH |
| Constructor and Description |
|---|
IPv4SubObject(int ipAddr)
Constructor to initialize ipv4 address.
|
IPv4SubObject(int ipAddress,
byte prefixLen,
byte resvd)
constructor to initialize ipAddress, prefixLen and resvd.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getIpAddress()
Returns value of IPv4 IP address.
|
short |
getLength()
Returns the Length of PCEP Message.
|
byte |
getPrefixLen()
Returns prefixLen of IPv4 IP address.
|
short |
getType()
Returns the Type of PCEP Message.
|
PcepVersion |
getVersion()
Returns the Version Of PCEP Message.
|
int |
hashCode() |
static IPv4SubObject |
of(int ipAddress,
byte prefixLen,
byte resvd)
Returns a new instance of IPv4SubObject.
|
static PcepValueType |
read(org.jboss.netty.buffer.ChannelBuffer c)
Reads the channel buffer and returns object of IPv4SubObject.
|
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 static final byte VALUE_LENGTH
public static final byte OBJ_LENGTH
public static final byte LBIT
public static final int SHIFT_LBIT_POSITION
public IPv4SubObject(int ipAddr)
ipAddr - ipv4 addresspublic IPv4SubObject(int ipAddress,
byte prefixLen,
byte resvd)
ipAddress - ipv4 addressprefixLen - prefix lengthresvd - reserved flags valuepublic static IPv4SubObject of(int ipAddress, byte prefixLen, byte resvd)
ipAddress - ipv4 addressprefixLen - prefix lengthresvd - reserved flags valuepublic byte getPrefixLen()
public int getIpAddress()
public PcepVersion getVersion()
PcepValueTypegetVersion in interface PcepValueTypepublic short getType()
PcepValueTypegetType in interface PcepValueTypepublic short getLength()
PcepValueTypegetLength in interface PcepValueTypepublic static PcepValueType read(org.jboss.netty.buffer.ChannelBuffer c)
c - type of channel bufferpublic int write(org.jboss.netty.buffer.ChannelBuffer c)
PcepValueTypewrite in interface PcepValueTypec - of type channel bufferCopyright © 2015. All rights reserved.