Revert "Checkstyle enforcer"
[controller.git] / opendaylight / hosttracker / api / src / main / java / org / opendaylight / controller / hosttracker / IfHostListener.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  * and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 package org.opendaylight.controller.hosttracker;
11
12 import org.opendaylight.controller.hosttracker.hostAware.HostNodeConnector;
13
14 /**
15  * This interface defines the method to notify detected Host on the
16  * network. The information includes Host's IP address, MAC address,
17  * switch ID, port, and VLAN.
18  *
19  */
20
21 public interface IfHostListener {
22     /**
23      * Learns  new Hosts. Called by ArpHandler and implemented in
24      * HostTracker.java. If a Host is learned for the first time then
25      * adds it to the local database and informs other applications
26      * of coming up a new Host. For the hosts which it has already
27      * learned, it refreshes them.
28      *
29      * @param host              Host info encapsulated in HostNodeConnector class
30      */
31     public void hostListener(HostNodeConnector host);
32 }