blob: 2017e73915ba9f55a4ed1f6bf96b4da05abd8a1a [file] [log] [blame]
cheng fan48e832c2015-05-29 01:54:47 +08001/*
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 */
16package org.onosproject.pcep.api;
17
18/**
19 * Notifies providers about switch in events.
20 */
21public interface PcepSwitchListener {
22
23 /**
24 * Notify that the switch was added.
25 *
26 * @param dpid the switch where the event occurred
27 */
chengfan373aac52015-08-17 15:36:44 -050028 void switchAdded(PcepDpid dpid);
cheng fan48e832c2015-05-29 01:54:47 +080029
30 /**
31 * Notify that the switch was removed.
32 *
33 * @param dpid the switch where the event occurred.
34 */
chengfan373aac52015-08-17 15:36:44 -050035 void switchRemoved(PcepDpid dpid);
cheng fan48e832c2015-05-29 01:54:47 +080036
37 /**
38 * Notify that the switch has changed in some way.
39 *
40 * @param dpid the switch that changed
41 */
chengfan373aac52015-08-17 15:36:44 -050042 void switchChanged(PcepDpid dpid);
cheng fan48e832c2015-05-29 01:54:47 +080043
44}