blob: 06d49edf5db4f50e104a1b50bda255555723e531 [file] [log] [blame]
Phaneendra Manda1c0061d2015-08-06 12:29:38 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
Phaneendra Manda1c0061d2015-08-06 12:29:38 +05303 *
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 */
harikrushna-Huaweia2c7c202017-04-10 18:22:00 +053016package org.onosproject.pcep.server;
Phaneendra Manda1c0061d2015-08-06 12:29:38 +053017
Avantika-Huaweid1e36bd2016-05-26 12:47:16 +053018import org.onosproject.incubator.net.tunnel.Tunnel;
Phaneendra Manda1c0061d2015-08-06 12:29:38 +053019import org.onosproject.pcepio.protocol.PcepMessage;
20/**
Phanendra Manda51fb9c22015-09-01 16:17:41 +053021 * Notifies providers about PCEP message events.
Phaneendra Manda1c0061d2015-08-06 12:29:38 +053022 */
23public interface PcepEventListener {
24
25 /**
26 * Handles the message event.
27 *
28 * @param pccId id of the pcc
29 * @param msg the message
30 */
Sho SHIMIZU5fe04e02015-09-04 15:06:33 -070031 void handleMessage(PccId pccId, PcepMessage msg);
Avantika-Huaweid1e36bd2016-05-26 12:47:16 +053032
33 /**
34 * Handles end of LSPDB sync actions.
35 *
36 * @param tunnel the tunnel on which action needs to be taken
37 * @param endOfSyncAction the action that needs to be taken for the tunnel
38 */
39 void handleEndOfSyncAction(Tunnel tunnel, PcepLspSyncAction endOfSyncAction);
Phaneendra Manda1c0061d2015-08-06 12:29:38 +053040}