public class PcepErrorObjectVer1 extends Object implements PcepErrorObject
| Modifier and Type | Class and Description |
|---|---|
static class |
PcepErrorObjectVer1.Builder
Builder class for PCEP error object.
|
| Modifier and Type | Field and Description |
|---|---|
static PcepObjectHeader |
DEFAULT_ERROR_OBJECT_HEADER |
static byte |
ERROR_OBJ_CLASS |
static short |
ERROR_OBJ_MINIMUM_LENGTH |
static byte |
ERROR_OBJ_TYPE |
static byte |
ERROR_OBJECT_VERSION |
protected static org.slf4j.Logger |
log |
static int |
OBJECT_HEADER_LENGTH |
| Constructor and Description |
|---|
PcepErrorObjectVer1(PcepObjectHeader errorObjHeader,
byte yErrorType,
byte yErrorValue,
LinkedList<PcepValueType> llOptionalTlv)
Constructor to initialize variables.
|
| Modifier and Type | Method and Description |
|---|---|
PcepObjectHeader |
getErrorObjHeader()
returns object header.
|
int |
getErrorType()
Returns Error Type in Error Object.
|
byte |
getErrorValue()
Returns Error Value in Error Object.
|
LinkedList<PcepValueType> |
getOptionalTlv()
Returns Optional Tlvs in Error Object.
|
protected int |
packOptionalTlv(org.jboss.netty.buffer.ChannelBuffer cb)
Pack the Optional tlvs.
|
protected static LinkedList<PcepValueType> |
parseOptionalTlv(org.jboss.netty.buffer.ChannelBuffer cb)
returns Linked list of optional tlvs.
|
static PcepErrorObject |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from channel buffer and returns object of PcepErrorObject.
|
void |
setErrorType(byte yErrorType)
Sets Error Type in Error Object.
|
void |
setErrorValue(byte yErrorValue)
Sets Error Value in Error Object.
|
void |
setLspObjHeader(PcepObjectHeader obj)
sets Object Header.
|
void |
setOptionalTlv(LinkedList<PcepValueType> llOptionalTlv)
Sets Optional Tlvs in Error Object.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the Error Object into channel buffer.
|
protected static final org.slf4j.Logger log
public static final byte ERROR_OBJ_TYPE
public static final byte ERROR_OBJ_CLASS
public static final byte ERROR_OBJECT_VERSION
public static final short ERROR_OBJ_MINIMUM_LENGTH
public static final int OBJECT_HEADER_LENGTH
public static final PcepObjectHeader DEFAULT_ERROR_OBJECT_HEADER
public PcepErrorObjectVer1(PcepObjectHeader errorObjHeader, byte yErrorType, byte yErrorValue, LinkedList<PcepValueType> llOptionalTlv)
errorObjHeader - ERROR Object headeryErrorType - Error TypeyErrorValue - Error ValuellOptionalTlv - list of optional TLVpublic void setLspObjHeader(PcepObjectHeader obj)
obj - Error-Object headerpublic void setErrorType(byte yErrorType)
PcepErrorObjectsetErrorType in interface PcepErrorObjectyErrorType - Error Typepublic void setErrorValue(byte yErrorValue)
PcepErrorObjectsetErrorValue in interface PcepErrorObjectyErrorValue - Error Valuepublic PcepObjectHeader getErrorObjHeader()
public int getErrorType()
PcepErrorObjectgetErrorType in interface PcepErrorObjectpublic byte getErrorValue()
PcepErrorObjectgetErrorValue in interface PcepErrorObjectpublic LinkedList<PcepValueType> getOptionalTlv()
PcepErrorObjectgetOptionalTlv in interface PcepErrorObjectpublic void setOptionalTlv(LinkedList<PcepValueType> llOptionalTlv)
PcepErrorObjectsetOptionalTlv in interface PcepErrorObjectllOptionalTlv - list of Optional Tlvspublic static PcepErrorObject read(org.jboss.netty.buffer.ChannelBuffer cb)
cb - of channel buffer.protected static LinkedList<PcepValueType> parseOptionalTlv(org.jboss.netty.buffer.ChannelBuffer cb)
cb - channel buffer.public int write(org.jboss.netty.buffer.ChannelBuffer cb)
throws PcepParseException
PcepErrorObjectwrite in interface PcepErrorObjectcb - channel bufferPcepParseException - while writing Error Object into ChannelBufferprotected int packOptionalTlv(org.jboss.netty.buffer.ChannelBuffer cb)
cb - channel buffer.Copyright © 2015. All rights reserved.