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(List<PcepError> errll)
Constructor to initialize error info.
|
PcepErrorInfoVer1(List<PcepRPObject> llRPObjList,
List<PcepLSObject> llLSObjList,
List<PcepErrorObject> llErrObjList)
Constructor to add PCEP error object to the list.
|
| Modifier and Type | Method and Description |
|---|---|
List<Integer> |
getErrorType()
Returns Error Type in PCEP-ERROR Object.
|
List<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(List<PcepRPObject> llRPObjList, List<PcepLSObject> llLSObjList, List<PcepErrorObject> llErrObjList)
llRPObjList - list of PCEP RP objectllLSObjList - list of PCEP LS objectllErrObjList - list of PCEP error objectpublic 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 List<Integer> getErrorType()
PcepErrorInfogetErrorType in interface PcepErrorInfopublic List<Integer> getErrorValue()
PcepErrorInfogetErrorValue in interface PcepErrorInfo