public class PcepFecObjectIPv4Ver1 extends Object implements PcepFecObjectIPv4
| Modifier and Type | Class and Description |
|---|---|
static class |
PcepFecObjectIPv4Ver1.Builder
Builder class for PCEP fec pobject IPv4.
|
| Modifier and Type | Field and Description |
|---|---|
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 |
|---|
PcepFecObjectIPv4Ver1(PcepObjectHeader fecObjHeader,
int nodeID)
Constructor to initialize parameters for PCEP fec object.
|
| Modifier and Type | Method and Description |
|---|---|
PcepObjectHeader |
getFecIpv4ObjHeader()
Returns Object Header.
|
int |
getNodeID()
Returns NodeID of FEC Object.
|
int |
getType()
Returns FEC Object type.
|
PcepVersion |
getVersion()
Returns PCEP Version of FEC Object.
|
static PcepFecObjectIPv4 |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from channel buffer and returns object of PcepFecObjectIPv4.
|
void |
setFecIpv4ObjHeader(PcepObjectHeader obj)
Sets the Object Header.
|
void |
setNodeID(int nodeID)
Sets NodeID with specified value.
|
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 PcepFecObjectIPv4Ver1(PcepObjectHeader fecObjHeader, int nodeID)
fecObjHeader - fec object headernodeID - node idpublic void setFecIpv4ObjHeader(PcepObjectHeader obj)
obj - object headerpublic void setNodeID(int nodeID)
PcepFecObjectIPv4setNodeID in interface PcepFecObjectIPv4nodeID - node idpublic PcepObjectHeader getFecIpv4ObjHeader()
public int getNodeID()
PcepFecObjectIPv4getNodeID in interface PcepFecObjectIPv4public static PcepFecObjectIPv4 read(org.jboss.netty.buffer.ChannelBuffer cb) throws PcepParseException
cb - of channel bufferPcepParseException - when fails to read from channel bufferpublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
throws PcepParseException
PcepFecObjectwrite in interface PcepFecObjectwrite in interface PcepFecObjectIPv4cb - channel bufferPcepParseException - while writing FEC Object into Channel Buffer.public PcepVersion getVersion()
PcepFecObjectgetVersion in interface PcepFecObjectpublic int getType()
PcepFecObjectgetType in interface PcepFecObjectCopyright © 2015. All rights reserved.