public class PcepEroObjectVer1 extends Object implements PcepEroObject
| Modifier and Type | Class and Description |
|---|---|
static class |
PcepEroObjectVer1.Builder
Builder class for PCEP ERO object.
|
| Modifier and Type | Field and Description |
|---|---|
static byte |
ERO_OBJ_CLASS |
static short |
ERO_OBJ_MINIMUM_LENGTH |
static byte |
ERO_OBJ_TYPE |
static byte |
ERO_OBJECT_VERSION |
static byte |
IPV4_TYPE |
static int |
LABEL_SUB_OBJ_TYPE |
protected static org.slf4j.Logger |
log |
static int |
OBJECT_HEADER_LENGTH |
static byte |
PATH_KEY_32_BIT_SUB_OBJ_TYPE |
static int |
SR_ERO_SUB_OBJ_TYPE |
static int |
YTYPE_SHIFT_VALUE |
| Constructor and Description |
|---|
PcepEroObjectVer1()
reset variables.
|
PcepEroObjectVer1(PcepObjectHeader eroObjHeader,
LinkedList<PcepValueType> llSubObjects)
Constructor to initialize parameters of ERO object.
|
| Modifier and Type | Method and Description |
|---|---|
PcepObjectHeader |
getEroObjHeader()
Returns ERO object header.
|
LinkedList<PcepValueType> |
getSubObjects()
Return LinkedList of SubObjects of ERO Object.
|
protected static LinkedList<PcepValueType> |
parseSubObjects(org.jboss.netty.buffer.ChannelBuffer cb)
Parse list of Sub Objects.
|
static PcepEroObject |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from channel buffer and returns object of PcepEroObject.
|
void |
setEroObjHeader(PcepObjectHeader obj)
Sets Object Header.
|
void |
setSubObjects(LinkedList<PcepValueType> llSubObjects)
Sets LinkedList of SubObjects in ERO Object.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the ERO Object into channel buffer.
|
protected static final org.slf4j.Logger log
public static final byte ERO_OBJ_TYPE
public static final byte ERO_OBJ_CLASS
public static final byte ERO_OBJECT_VERSION
public static final short ERO_OBJ_MINIMUM_LENGTH
public static final byte IPV4_TYPE
public static final byte PATH_KEY_32_BIT_SUB_OBJ_TYPE
public static final int LABEL_SUB_OBJ_TYPE
public static final int SR_ERO_SUB_OBJ_TYPE
public static final int OBJECT_HEADER_LENGTH
public static final int YTYPE_SHIFT_VALUE
public PcepEroObjectVer1()
public PcepEroObjectVer1(PcepObjectHeader eroObjHeader, LinkedList<PcepValueType> llSubObjects)
eroObjHeader - ERO object headerllSubObjects - list of sub objects.public PcepObjectHeader getEroObjHeader()
public void setEroObjHeader(PcepObjectHeader obj)
obj - ERO object headerpublic LinkedList<PcepValueType> getSubObjects()
PcepEroObjectgetSubObjects in interface PcepEroObjectpublic void setSubObjects(LinkedList<PcepValueType> llSubObjects)
PcepEroObjectsetSubObjects in interface PcepEroObjectllSubObjects - list of subobjectspublic static PcepEroObject read(org.jboss.netty.buffer.ChannelBuffer cb) throws PcepParseException
cb - channel buffer.PcepParseException - when ERO object is not present in channel bufferprotected static LinkedList<PcepValueType> parseSubObjects(org.jboss.netty.buffer.ChannelBuffer cb) throws PcepParseException
cb - channel bufferPcepParseException - when fails to parse sub object listpublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
throws PcepParseException
PcepEroObjectwrite in interface PcepEroObjectcb - channel bufferPcepParseException - while writing ERO Object into ChannelBufferCopyright © 2015. All rights reserved.