3740df3b339de13386554047a71ae39e4d744093
[onosfw.git] /
1 /*
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
17 package org.onosproject.pcepio.protocol;
18
19 import java.util.LinkedList;
20
21 import org.jboss.netty.buffer.ChannelBuffer;
22 import org.onosproject.pcepio.exceptions.PcepParseException;
23
24 /**
25  * Abstraction of an entity providing PCEP Label Update Message.
26  */
27 public interface PcepLabelUpdateMsg extends PcepObject, PcepMessage {
28
29     @Override
30     PcepVersion getVersion();
31
32     @Override
33     PcepType getType();
34
35     /**
36      * Returns list of PcLabelUpdateList.
37      *
38      * @return list of PcLabelUpdateList.
39      */
40     LinkedList<PcepLabelUpdate> getPcLabelUpdateList();
41
42     /**
43      * Sets list of PcLabelUpdateList.
44      *
45      * @param llPcLabelUpdateList list of PcLabelUpdateList
46      */
47     void setPcLabelUpdateList(LinkedList<PcepLabelUpdate> llPcLabelUpdateList);
48
49     @Override
50     void writeTo(ChannelBuffer channelBuffer) throws PcepParseException;
51
52     /**
53      * Builder interface with get and set functions to build Label Update message.
54      */
55     interface Builder extends PcepMessage.Builder {
56
57         @Override
58         PcepLabelUpdateMsg build();
59
60         @Override
61         PcepVersion getVersion();
62
63         @Override
64         PcepType getType();
65
66         /**
67          * Returns list of PcLabelUpdateList.
68          *
69          * @return list of PcLabelUpdateList.
70          */
71         LinkedList<PcepLabelUpdate> getPcLabelUpdateList();
72
73         /**
74          * Sets list of PcLabelUpdateList.
75          *
76          * @param llPcLabelUpdateList list of PcLabelUpdateList.
77          * @return Builder by setting list of PcLabelUpdateList.
78          */
79         Builder setPcLabelUpdateList(LinkedList<PcepLabelUpdate> llPcLabelUpdateList);
80     }
81 }