blob: d6e147b2419158036ce4bb2af368ac7ad1d0eed9 [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 Label Update Message.
26 */
27public 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 public 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}