blob: dc2ac3a85fef1af303a28f0f15d832b61d7afd36 [file] [log] [blame]
Phaneendra Manda1c0061d2015-08-06 12:29:38 +05301/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.pcepio.protocol;
18
19import java.util.LinkedList;
20
21import org.jboss.netty.buffer.ChannelBuffer;
22import org.onosproject.pcepio.exceptions.PcepParseException;
23
24/**
25 * Abstraction of an entity providing PCEP Update Message.
26 */
27public interface PcepUpdateMsg extends PcepObject, PcepMessage {
28
29 @Override
30 PcepVersion getVersion();
31
32 @Override
33 PcepType getType();
34
35 /**
36 * Returns the update request list for PCEP Update Message.
37 *
38 * @return list of Update Requests
39 */
40 LinkedList<PcepUpdateRequest> getUpdateRequestList();
41
42 /**
43 * Sets the update request list for PCEP update message.
44 *
45 * @param llUpdateRequestList is a list of PCEP Update Requests
46 */
47 void setUpdateRequestList(LinkedList<PcepUpdateRequest> llUpdateRequestList);
48
49 @Override
50 void writeTo(ChannelBuffer channelBuffer) throws PcepParseException;
51
52 /**
53 * Builder interface with Get and Set Functions to build the PCEP update Message.
54 */
Sho SHIMIZU260f6ef2015-08-11 13:53:31 -070055 interface Builder extends PcepMessage.Builder {
Phaneendra Manda1c0061d2015-08-06 12:29:38 +053056
57 @Override
58 PcepUpdateMsg build();
59
60 @Override
61 PcepVersion getVersion();
62
63 @Override
64 PcepType getType();
65
66 /**
67 * Returns the update request list for the PCEP update message.
68 *
69 * @return list of Update Requests
70 */
71 LinkedList<PcepUpdateRequest> getUpdateRequestList();
72
73 /**
74 * Sets the update request list for the PCEP update message.
75 *
76 * @param llUpdateRequestList list of Update requests
77 * @return builder by setting list llUpdateRequestList of PcepUpdateRequest.
78 */
79 Builder setUpdateRequestList(LinkedList<PcepUpdateRequest> llUpdateRequestList);
80 }
81}