public class PcepRroObjectVer1 extends Object implements PcepRroObject
| Modifier and Type | Class and Description |
|---|---|
static class |
PcepRroObjectVer1.Builder
Builder class for PCEP RRO object.
|
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
static int |
OBJECT_HEADER_LENGTH |
static byte |
RRO_OBJ_CLASS |
static short |
RRO_OBJ_MINIMUM_LENGTH |
static byte |
RRO_OBJ_TYPE |
static byte |
RRO_OBJECT_VERSION |
static int |
YTYPE_SHIFT_VALUE |
| Constructor and Description |
|---|
PcepRroObjectVer1()
Reset variables.
|
PcepRroObjectVer1(PcepObjectHeader rroObjHeader,
LinkedList<PcepValueType> llSubObjects)
constructor to initialize parameters for RRO object.
|
| Modifier and Type | Method and Description |
|---|---|
PcepObjectHeader |
getRroObjHeader()
Returns PCEP RRO Object Header.
|
LinkedList<PcepValueType> |
getSubObjects()
Returns list of SubObjects.
|
protected static LinkedList<PcepValueType> |
parseSubObjects(org.jboss.netty.buffer.ChannelBuffer cb)
Returns list of sub objects.
|
static PcepRroObject |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the channel buffer and returns object of PcepRroObject.
|
void |
setRroObjHeader(PcepObjectHeader obj)
Sets PCEP RRO Object Header.
|
void |
setSubObjects(LinkedList<PcepValueType> llSubObjects)
Sets list of SubObjects and return its builder.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the RRO Object into channel buffer.
|
protected static final org.slf4j.Logger log
public static final byte RRO_OBJ_TYPE
public static final byte RRO_OBJ_CLASS
public static final byte RRO_OBJECT_VERSION
public static final short RRO_OBJ_MINIMUM_LENGTH
public static final int OBJECT_HEADER_LENGTH
public static final int YTYPE_SHIFT_VALUE
public PcepRroObjectVer1()
public PcepRroObjectVer1(PcepObjectHeader rroObjHeader, LinkedList<PcepValueType> llSubObjects)
rroObjHeader - RRO object headerllSubObjects - list of sub objectspublic PcepObjectHeader getRroObjHeader()
public void setRroObjHeader(PcepObjectHeader obj)
obj - Object headerpublic LinkedList<PcepValueType> getSubObjects()
PcepRroObjectgetSubObjects in interface PcepRroObjectpublic void setSubObjects(LinkedList<PcepValueType> llSubObjects)
PcepRroObjectsetSubObjects in interface PcepRroObjectllSubObjects - list of SubObjectspublic static PcepRroObject read(org.jboss.netty.buffer.ChannelBuffer cb) throws PcepParseException
cb - of type channel bufferPcepParseException - when fails to read from channel bufferprotected static LinkedList<PcepValueType> parseSubObjects(org.jboss.netty.buffer.ChannelBuffer cb) throws PcepParseException
cb - of type channel bufferPcepParseException - when fails to parse list of sub objectspublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
throws PcepParseException
PcepRroObjectwrite in interface PcepRroObjectcb - channel bufferPcepParseException - when object header failed to write in channel bufferCopyright © 2015. All rights reserved.