public class PcepIroObjectVer1 extends Object implements PcepIroObject
| Modifier and Type | Class and Description |
|---|---|
static class |
PcepIroObjectVer1.Builder
Builder class for PCEP iro object.
|
| Modifier and Type | Field and Description |
|---|---|
static PcepObjectHeader |
DEFAULT_IRO_OBJECT_HEADER |
static byte |
IRO_OBJ_CLASS |
static short |
IRO_OBJ_MINIMUM_LENGTH |
static byte |
IRO_OBJ_TYPE |
static byte |
IRO_OBJECT_VERSION |
protected static org.slf4j.Logger |
log |
static int |
OBJECT_HEADER_LENGTH |
static int |
YTYPE_SHIFT_VALUE |
| Constructor and Description |
|---|
PcepIroObjectVer1()
Default constructor.
|
PcepIroObjectVer1(PcepObjectHeader iroObjHeader,
LinkedList<PcepValueType> llSubObjects)
Constructor to initialize member variables.
|
| Modifier and Type | Method and Description |
|---|---|
PcepObjectHeader |
getIroObjHeader()
Returns object header.
|
LinkedList<PcepValueType> |
getSubObjects()
Returns list of SubObjects.
|
protected static LinkedList<PcepValueType> |
parseSubObjects(org.jboss.netty.buffer.ChannelBuffer cb)
Returns linked list of sub objects.
|
static PcepIroObject |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from channel buffer and return object of PcepIroObject.
|
void |
setIroObjHeader(PcepObjectHeader obj)
Sets IRO Object Header.
|
void |
setSubObjects(LinkedList<PcepValueType> llSubObjects)
Sets list of SubObjects.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the IRO into channel buffer.
|
protected static final org.slf4j.Logger log
public static final byte IRO_OBJ_TYPE
public static final byte IRO_OBJ_CLASS
public static final byte IRO_OBJECT_VERSION
public static final short IRO_OBJ_MINIMUM_LENGTH
public static final int OBJECT_HEADER_LENGTH
public static final int YTYPE_SHIFT_VALUE
public static final PcepObjectHeader DEFAULT_IRO_OBJECT_HEADER
public PcepIroObjectVer1()
public PcepIroObjectVer1(PcepObjectHeader iroObjHeader, LinkedList<PcepValueType> llSubObjects)
iroObjHeader - IRO object headerllSubObjects - list of sub-objectspublic PcepObjectHeader getIroObjHeader()
public void setIroObjHeader(PcepObjectHeader obj)
obj - IRO object headerpublic LinkedList<PcepValueType> getSubObjects()
PcepIroObjectgetSubObjects in interface PcepIroObjectpublic void setSubObjects(LinkedList<PcepValueType> llSubObjects)
PcepIroObjectsetSubObjects in interface PcepIroObjectllSubObjects - list of SubObjectspublic static PcepIroObject read(org.jboss.netty.buffer.ChannelBuffer cb) throws PcepParseException
cb - of type channel bufferPcepParseException - while parsing from channel bufferprotected static LinkedList<PcepValueType> parseSubObjects(org.jboss.netty.buffer.ChannelBuffer cb) throws PcepParseException
cb - of type channel bufferPcepParseException - while parsing subobjects from channel bufferpublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
throws PcepParseException
PcepIroObjectwrite in interface PcepIroObjectcb - channel bufferPcepParseException - while writing IRO object.