3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
10 package org.opendaylight.controller.hosttracker;
12 import org.opendaylight.controller.hosttracker.hostAware.HostNodeConnector;
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.
21 public interface IfHostListener {
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.
29 * @param host Host info encapsulated in HostNodeConnector class
31 public void hostListener(HostNodeConnector host);