blob: 3c3d599f5443ac05db3325981145c2806e4c9abd [file] [log] [blame]
Umesh Krishnaswamy345ee992012-12-13 20:29:48 -08001/**
2* Copyright 2011, Big Switch Networks, Inc.
3* Originally created by David Erickson, Stanford University
4*
5* Licensed under the Apache License, Version 2.0 (the "License"); you may
6* not use this file except in compliance with the License. You may obtain
7* a copy of the License at
8*
9* http://www.apache.org/licenses/LICENSE-2.0
10*
11* Unless required by applicable law or agreed to in writing, software
12* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14* License for the specific language governing permissions and limitations
15* under the License.
16**/
17
18package net.floodlightcontroller.devicemanager;
19
20/**
21 * Implementors of this interface can receive updates from DeviceManager about
22 * the state of devices under its control.
23 *
24 * @author David Erickson (daviderickson@cs.stanford.edu)
25 */
26public interface IDeviceListener {
27 /**
28 * Called when a new Device is found
29 * @param device the device that changed
30 */
31 public void deviceAdded(IDevice device);
32
33 /**
34 * Called when a Device is removed, this typically occurs when the port the
35 * Device is attached to goes down, or the switch it is attached to is
36 * removed.
37 * @param device the device that changed
38 */
39 public void deviceRemoved(IDevice device);
40
41 /**
42 * Called when a Device has moved to a new location on the network. Note
43 * that either the switch or the port or both has changed.
44 *
45 * @param device the device that changed
46 */
47 public void deviceMoved(IDevice device);
48
49 /**
50 * Called when a network address has been added or remove from a device
51 *
52 * @param device the device that changed
53 */
54 public void deviceIPV4AddrChanged(IDevice device);
55
56 /**
57 * Called when a VLAN tag for the device has been added or removed
58 * @param device the device that changed
59 */
60 public void deviceVlanChanged(IDevice device);
61}