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