public class PcepFecObjectIPv6Ver1 extends Object implements PcepFecObjectIPv6
| Modifier and Type | Class and Description |
|---|---|
static class |
PcepFecObjectIPv6Ver1.Builder
Builder class for PCEP fec object IPv6.
|
| 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 |
static int |
IPV6_ADDRESS_LENGTH |
protected static org.slf4j.Logger |
log |
static int |
MINIMUM_COMMON_HEADER_LENGTH |
| Constructor and Description |
|---|
PcepFecObjectIPv6Ver1(PcepObjectHeader fecObjHeader,
byte[] nodeID)
Constructor to initialize parameters for PCEP fec object.
|
| Modifier and Type | Method and Description |
|---|---|
PcepObjectHeader |
getFecIpv6ObjHeader()
Returns object header.
|
byte[] |
getNodeID()
Returns NodeID of FEC Object.
|
int |
getType()
Returns FEC Object type.
|
PcepVersion |
getVersion()
Returns PCEP Version of FEC Object.
|
static PcepFecObjectIPv6 |
read(org.jboss.netty.buffer.ChannelBuffer cb)
reads the channel buffer and returns object of PcepFecObjectIPv6.
|
void |
setFecIpv6ObjHeader(PcepObjectHeader obj)
Sets the Object header.
|
void |
setNodeID(byte[] 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 static final int IPV6_ADDRESS_LENGTH
public PcepFecObjectIPv6Ver1(PcepObjectHeader fecObjHeader, byte[] nodeID)
fecObjHeader - Fec object headernodeID - node IDpublic void setFecIpv6ObjHeader(PcepObjectHeader obj)
obj - object headerpublic void setNodeID(byte[] nodeID)
PcepFecObjectIPv6setNodeID in interface PcepFecObjectIPv6nodeID - node idpublic PcepObjectHeader getFecIpv6ObjHeader()
public byte[] getNodeID()
PcepFecObjectIPv6getNodeID in interface PcepFecObjectIPv6public static PcepFecObjectIPv6 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 PcepFecObjectIPv6cb - channel bufferPcepParseException - while writing FEC Object into Channel Buffer.public PcepVersion getVersion()
PcepFecObjectgetVersion in interface PcepFecObjectpublic int getType()
PcepFecObjectgetType in interface PcepFecObject