public class PcepLspaObjectVer1 extends Object implements PcepLspaObject
| Modifier and Type | Class and Description |
|---|---|
static class |
PcepLspaObjectVer1.Builder
Builder class for PCEP lspa object.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
BFLAG_SHIFT_VALUE |
static int |
HOLD_PRIORITY_SHIFT_VALUE |
static int |
LFLAG_RESET |
static int |
LFLAG_SET |
protected static org.slf4j.Logger |
log |
static byte |
LSPA_OBJ_CLASS |
static short |
LSPA_OBJ_MINIMUM_LENGTH |
static byte |
LSPA_OBJ_TYPE |
static byte |
LSPA_OBJECT_VERSION |
static int |
OBJECT_HEADER_LENGTH |
static int |
SETUP_PRIORITY_SHIFT_VALUE |
| Constructor and Description |
|---|
PcepLspaObjectVer1(PcepObjectHeader lspaObjHeader,
boolean bLFlag,
int iExcludeAny,
int iIncludeAny,
int iIncludeAll,
byte cSetupPriority,
byte cHoldPriority,
LinkedList<PcepValueType> llOptionalTlv)
Constructor to initialize member variables.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getExcludeAny()
Returns Exclude Any field in LSPA Object.
|
byte |
getHoldPriority()
Returns Hold Priority field in LSPA Object.
|
int |
getIncludeAll()
Returns Include All field in LSPA Object.
|
int |
getIncludeAny()
Returns Include Any field in LSPA Object.
|
boolean |
getLFlag()
Returns L flag in LSPA Object.
|
PcepObjectHeader |
getLspaObjHeader()
Returns lspa Object Header.
|
LinkedList<PcepValueType> |
getOptionalTlv()
Returns list of Optional Tlvs in LSPA Object.
|
byte |
getSetupPriority()
Returns Setup Priority field in LSPA Object.
|
protected boolean |
packOptionalTlv(org.jboss.netty.buffer.ChannelBuffer cb)
Writes optional tlvs to channel buffer.
|
static LinkedList<PcepValueType> |
parseOptionalTlv(org.jboss.netty.buffer.ChannelBuffer cb)
Parse list of optional tlvs.
|
static PcepLspaObject |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads channel buffer and returns object of PcepLspaObject.
|
void |
setExcludeAny(int iExcludeAny)
Sets Exclude Any field in LSPA Object.
|
void |
setHoldPriority(byte cHoldPriority)
Sets Hold Priority field in LSPA Object.
|
void |
setIncludeAll(int value)
Sets Include All field in LSPA Object.
|
void |
setIncludeAny(int iIncludeAny)
Sets Include Any field in LSPA Object.
|
void |
setLFlag(boolean bLFlag)
Sets L flag in LSPA Object.
|
void |
setLspaObjHeader(PcepObjectHeader obj)
Sets Object Header.
|
void |
setOptionalTlv(LinkedList<PcepValueType> llOptionalTlv)
Sets Optional Tlvs in LSPA Object.
|
void |
setSetupPriority(byte cSetupPriority)
Sets Setup Priority field in LSPA Object.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the LSPA Object into channel buffer.
|
protected static final org.slf4j.Logger log
public static final byte LSPA_OBJ_TYPE
public static final byte LSPA_OBJ_CLASS
public static final byte LSPA_OBJECT_VERSION
public static final short LSPA_OBJ_MINIMUM_LENGTH
public static final int OBJECT_HEADER_LENGTH
public static final int SETUP_PRIORITY_SHIFT_VALUE
public static final int HOLD_PRIORITY_SHIFT_VALUE
public static final int BFLAG_SHIFT_VALUE
public static final int LFLAG_SET
public static final int LFLAG_RESET
public PcepLspaObjectVer1(PcepObjectHeader lspaObjHeader, boolean bLFlag, int iExcludeAny, int iIncludeAny, int iIncludeAll, byte cSetupPriority, byte cHoldPriority, LinkedList<PcepValueType> llOptionalTlv)
lspaObjHeader - lspa object headerbLFlag - b l flagiExcludeAny - excludeAny valueiIncludeAny - includeAny valueiIncludeAll - includeAll valuecSetupPriority - setup priority valuecHoldPriority - hold priority valuellOptionalTlv - list of optional tlvpublic void setLspaObjHeader(PcepObjectHeader obj)
obj - lspa object headerpublic void setExcludeAny(int iExcludeAny)
PcepLspaObjectsetExcludeAny in interface PcepLspaObjectiExcludeAny - Exclude Any fieldpublic void setIncludeAny(int iIncludeAny)
PcepLspaObjectsetIncludeAny in interface PcepLspaObjectiIncludeAny - Include Any fieldpublic void setSetupPriority(byte cSetupPriority)
PcepLspaObjectsetSetupPriority in interface PcepLspaObjectcSetupPriority - Setup Priority fieldpublic void setHoldPriority(byte cHoldPriority)
PcepLspaObjectsetHoldPriority in interface PcepLspaObjectcHoldPriority - Hold Priority fieldpublic void setLFlag(boolean bLFlag)
PcepLspaObjectsetLFlag in interface PcepLspaObjectbLFlag - L flagpublic PcepObjectHeader getLspaObjHeader()
public int getExcludeAny()
PcepLspaObjectgetExcludeAny in interface PcepLspaObjectpublic int getIncludeAny()
PcepLspaObjectgetIncludeAny in interface PcepLspaObjectpublic int getIncludeAll()
PcepLspaObjectgetIncludeAll in interface PcepLspaObjectpublic byte getSetupPriority()
PcepLspaObjectgetSetupPriority in interface PcepLspaObjectpublic byte getHoldPriority()
PcepLspaObjectgetHoldPriority in interface PcepLspaObjectpublic boolean getLFlag()
PcepLspaObjectgetLFlag in interface PcepLspaObjectpublic void setIncludeAll(int value)
PcepLspaObjectsetIncludeAll in interface PcepLspaObjectvalue - Include All fieldpublic LinkedList<PcepValueType> getOptionalTlv()
PcepLspaObjectgetOptionalTlv in interface PcepLspaObjectpublic void setOptionalTlv(LinkedList<PcepValueType> llOptionalTlv)
PcepLspaObjectsetOptionalTlv in interface PcepLspaObjectllOptionalTlv - Optional Tlvs in LSPA Objectpublic static PcepLspaObject read(org.jboss.netty.buffer.ChannelBuffer cb) throws PcepParseException
cb - of type channel buffer.PcepParseException - while parsing lspa object from channel bufferpublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
throws PcepParseException
PcepLspaObjectwrite in interface PcepLspaObjectcb - channel bufferPcepParseException - while writing LSPA object into Channel Buffer.public static LinkedList<PcepValueType> parseOptionalTlv(org.jboss.netty.buffer.ChannelBuffer cb) throws PcepParseException
cb - channel bufferPcepParseException - when fails to parse optional tlv list.protected boolean packOptionalTlv(org.jboss.netty.buffer.ChannelBuffer cb)
cb - channel buffer