2 * Copyright 2015 Open Networking Laboratory
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.onosproject.pcepio.protocol;
19 import java.util.LinkedList;
21 import org.jboss.netty.buffer.ChannelBuffer;
22 import org.onosproject.pcepio.exceptions.PcepParseException;
25 * Abstraction of an entity providing PCEP Label Update Message.
27 public interface PcepLabelUpdateMsg extends PcepObject, PcepMessage {
30 PcepVersion getVersion();
36 * Returns list of PcLabelUpdateList.
38 * @return list of PcLabelUpdateList.
40 LinkedList<PcepLabelUpdate> getPcLabelUpdateList();
43 * Sets list of PcLabelUpdateList.
45 * @param llPcLabelUpdateList list of PcLabelUpdateList
47 void setPcLabelUpdateList(LinkedList<PcepLabelUpdate> llPcLabelUpdateList);
50 void writeTo(ChannelBuffer channelBuffer) throws PcepParseException;
53 * Builder interface with get and set functions to build Label Update message.
55 interface Builder extends PcepMessage.Builder {
58 PcepLabelUpdateMsg build();
61 PcepVersion getVersion();
67 * Returns list of PcLabelUpdateList.
69 * @return list of PcLabelUpdateList.
71 LinkedList<PcepLabelUpdate> getPcLabelUpdateList();
74 * Sets list of PcLabelUpdateList.
76 * @param llPcLabelUpdateList list of PcLabelUpdateList.
77 * @return Builder by setting list of PcLabelUpdateList.
79 Builder setPcLabelUpdateList(LinkedList<PcepLabelUpdate> llPcLabelUpdateList);