public class PcepFecObjectIPv4AdjacencyVer1 extends Object implements PcepFecObjectIPv4Adjacency
| Modifier and Type | Class and Description |
|---|---|
static class |
PcepFecObjectIPv4AdjacencyVer1.Builder
Builder class for PCEP fec object IPv4 Adjacency.
|
| Modifier and Type | Field and Description |
|---|---|
static PcepObjectHeader |
DEFAULT_FEC_OBJECT_HEADER |
static byte |
FEC_OBJ_CLASS |
static short |
FEC_OBJ_MINIMUM_LENGTH |
static byte |
FEC_OBJ_TYPE |
static byte |
FEC_OBJECT_VERSION |
protected static org.slf4j.Logger |
log |
static int |
MINIMUM_COMMON_HEADER_LENGTH |
| Constructor and Description |
|---|
PcepFecObjectIPv4AdjacencyVer1(PcepObjectHeader fecObjHeader,
int localIPv4Address,
int remoteIPv4Address)
Constructor to initialize parameters for PCEP fec object .
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLocalIPv4Address()
Returns Local IPv4Address of FEC Object.
|
int |
getRemoteIPv4Address()
Returns Remote IPv4Address of FEC Object.
|
int |
getType()
Returns FEC Object type.
|
PcepVersion |
getVersion()
Returns PCEP Version of FEC Object.
|
static PcepFecObjectIPv4Adjacency |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from channel buffer and Returns object of PcepFecObjectIPv4Adjacency.
|
void |
seLocalIPv4Address(int value)
Sets Local IPv4Address with specified value.
|
void |
seRemoteIPv4Address(int value)
Sets Remote IPv4Address with specified value.
|
void |
setFecIpv4ObjHeader(PcepObjectHeader obj)
Sets Object header.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the FEC into channel buffer.
|
protected static final org.slf4j.Logger log
public static final byte FEC_OBJ_TYPE
public static final byte FEC_OBJ_CLASS
public static final byte FEC_OBJECT_VERSION
public static final short FEC_OBJ_MINIMUM_LENGTH
public static final int MINIMUM_COMMON_HEADER_LENGTH
public static final PcepObjectHeader DEFAULT_FEC_OBJECT_HEADER
public PcepFecObjectIPv4AdjacencyVer1(PcepObjectHeader fecObjHeader, int localIPv4Address, int remoteIPv4Address)
fecObjHeader - FEC Object headerlocalIPv4Address - Local IPv4 AddressremoteIPv4Address - Remote IPv4 Addresspublic void setFecIpv4ObjHeader(PcepObjectHeader obj)
obj - Pcep fec Object Headerpublic int getLocalIPv4Address()
PcepFecObjectIPv4AdjacencygetLocalIPv4Address in interface PcepFecObjectIPv4Adjacencypublic void seLocalIPv4Address(int value)
PcepFecObjectIPv4AdjacencyseLocalIPv4Address in interface PcepFecObjectIPv4Adjacencyvalue - Local IPv4Addresspublic int getRemoteIPv4Address()
PcepFecObjectIPv4AdjacencygetRemoteIPv4Address in interface PcepFecObjectIPv4Adjacencypublic void seRemoteIPv4Address(int value)
PcepFecObjectIPv4AdjacencyseRemoteIPv4Address in interface PcepFecObjectIPv4Adjacencyvalue - Remote IPv4Addresspublic static PcepFecObjectIPv4Adjacency read(org.jboss.netty.buffer.ChannelBuffer cb) throws PcepParseException
cb - of channel buffer.PcepParseException - when fails to read from channel bufferpublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
throws PcepParseException
PcepFecObjectwrite in interface PcepFecObjectwrite in interface PcepFecObjectIPv4Adjacencycb - channel bufferPcepParseException - while writing FEC Object into Channel Buffer.public PcepVersion getVersion()
PcepFecObjectgetVersion in interface PcepFecObjectpublic int getType()
PcepFecObjectgetType in interface PcepFecObject