public class PcepErrorInfoVer1 extends Object implements PcepErrorInfo
| Modifier and Type | Class and Description |
|---|---|
static class |
PcepErrorInfoVer1.Builder
Builder class for PCEP error info.
|
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
PcepErrorInfoVer1(LinkedList<PcepError> errll)
Constructor to initialize error info.
|
PcepErrorInfoVer1(LinkedList<PcepRPObject> llRPObjList,
LinkedList<PcepTEObject> llTEObjList,
LinkedList<PcepErrorObject> llErrObjList)
Constructor to add PCEP error object to the list.
|
| Modifier and Type | Method and Description |
|---|---|
LinkedList<Integer> |
getErrorType()
Returns Error Type in PCEP-ERROR Object.
|
LinkedList<Integer> |
getErrorValue()
Returns Error Value in PCEP-ERROR Object.
|
boolean |
isErrorInfoPresent()
Returns whether error info list is present or not.
|
void |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from channel buffer for TE and RP objects.
|
String |
toString() |
void |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes byte stream of PCEP error info to channel buffer.
|
public PcepErrorInfoVer1(LinkedList<PcepRPObject> llRPObjList, LinkedList<PcepTEObject> llTEObjList, LinkedList<PcepErrorObject> llErrObjList)
llRPObjList - list of PCEP RP objectllTEObjList - list of PCEP TE objectllErrObjList - list of PCEP error objectpublic PcepErrorInfoVer1(LinkedList<PcepError> errll)
errll - linked list or pcep errorpublic boolean isErrorInfoPresent()
PcepErrorInfoisErrorInfoPresent in interface PcepErrorInfopublic void read(org.jboss.netty.buffer.ChannelBuffer cb)
throws PcepParseException
PcepErrorInforead in interface PcepErrorInfocb - of channel bufferPcepParseException - while parsing Error info part.public void write(org.jboss.netty.buffer.ChannelBuffer cb)
throws PcepParseException
PcepErrorInfowrite in interface PcepErrorInfocb - of type channel bufferPcepParseException - while writing Error info part into Channel Buffer.public LinkedList<Integer> getErrorType()
PcepErrorInfogetErrorType in interface PcepErrorInfopublic LinkedList<Integer> getErrorValue()
PcepErrorInfogetErrorValue in interface PcepErrorInfoCopyright © 2015. All rights reserved.