blob: c785c2ca276b70914b10b6e81962290e7b642888 [file] [log] [blame]
Sho SHIMIZU74361c12015-08-11 12:31:48 -07001package org.onosproject.pcepio.protocol;
2
3import org.jboss.netty.buffer.ChannelBuffer;
4import org.onosproject.pcepio.types.ErrorObjListWithOpen;
5
6/**
7 * Abstraction of an entity providing PCEP Error Message.
8 */
9public interface PcepErrorMsg extends PcepMessage {
10
11 @Override
12 PcepVersion getVersion();
13
14 @Override
15 PcepType getType();
16
17 /**
18 * Returns Object of ErrorObjListWithOpen.
19 *
20 * @return Object of ErrorObjListWithOpen
21 */
Sho SHIMIZU260f6ef2015-08-11 13:53:31 -070022 ErrorObjListWithOpen getErrorObjListWithOpen();
Sho SHIMIZU74361c12015-08-11 12:31:48 -070023
24 /**
25 * Sets errObjListWithOpen object.
26 *
27 * @param errObjListWithOpen error object List with open object
28 */
Sho SHIMIZU260f6ef2015-08-11 13:53:31 -070029 void setErrorObjListWithOpen(ErrorObjListWithOpen errObjListWithOpen);
Sho SHIMIZU74361c12015-08-11 12:31:48 -070030
31 /**
32 * Returns Object of PcepErrorInfo.
33 *
34 * @return Object of PcepErrorInfo
35 */
Sho SHIMIZU260f6ef2015-08-11 13:53:31 -070036 PcepErrorInfo getPcepErrorInfo();
Sho SHIMIZU74361c12015-08-11 12:31:48 -070037
38 /**
39 * Sets errInfo Object.
40 *
41 * @param errInfo error information
42 */
Sho SHIMIZU260f6ef2015-08-11 13:53:31 -070043 void setPcepErrorInfo(PcepErrorInfo errInfo);
Sho SHIMIZU74361c12015-08-11 12:31:48 -070044
45 @Override
46 void writeTo(ChannelBuffer channelBuffer);
47
48 /**
49 * Builder interface with get and set functions to build PCEP Error message.
50 */
Sho SHIMIZU260f6ef2015-08-11 13:53:31 -070051 interface Builder extends PcepMessage.Builder {
Sho SHIMIZU74361c12015-08-11 12:31:48 -070052
53 @Override
54 PcepErrorMsg build();
55
56 @Override
57 PcepVersion getVersion();
58
59 @Override
60 PcepType getType();
61
62 /**
63 * Returns Object of ErrorObjListWithOpen.
64 *
65 * @return Object of ErrorObjListWithOpen
66 */
Sho SHIMIZU260f6ef2015-08-11 13:53:31 -070067 ErrorObjListWithOpen getErrorObjListWithOpen();
Sho SHIMIZU74361c12015-08-11 12:31:48 -070068
69 /**
70 * Sets errObjListWithOpen object.
71 *
72 * @param errObjListWithOpen error object with open object
73 * @return builder by setting Object of ErrorObjListWithOpen
74 */
Sho SHIMIZU260f6ef2015-08-11 13:53:31 -070075 Builder setErrorObjListWithOpen(ErrorObjListWithOpen errObjListWithOpen);
Sho SHIMIZU74361c12015-08-11 12:31:48 -070076
77 /**
78 * Returns Object of PcepErrorInfo.
79 *
80 * @return Object of PcepErrorInfo
81 */
Sho SHIMIZU260f6ef2015-08-11 13:53:31 -070082 PcepErrorInfo getPcepErrorInfo();
Sho SHIMIZU74361c12015-08-11 12:31:48 -070083
84 /**
85 * Sets errInfo Object.
86 *
87 * @param errInfo error information
88 * @return builder by getting Object of PcepErrorInfo
89 */
Sho SHIMIZU260f6ef2015-08-11 13:53:31 -070090 Builder setPcepErrorInfo(PcepErrorInfo errInfo);
Sho SHIMIZU74361c12015-08-11 12:31:48 -070091 }
92}