X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fhosttracker%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fhosttracker%2FIfNewHostNotify.java;fp=opendaylight%2Fhosttracker%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fhosttracker%2FIfNewHostNotify.java;h=88db0811d7c56e40fe565ec407e1772907434028;hb=9e43cfabdc83df4c5db51ce6e22e0cecca12aa9a;hp=0000000000000000000000000000000000000000;hpb=1bad1b7ca9a87f9e1d32cfcf5a181354fc378ad4;p=controller.git diff --git a/opendaylight/hosttracker/api/src/main/java/org/opendaylight/controller/hosttracker/IfNewHostNotify.java b/opendaylight/hosttracker/api/src/main/java/org/opendaylight/controller/hosttracker/IfNewHostNotify.java new file mode 100644 index 0000000000..88db0811d7 --- /dev/null +++ b/opendaylight/hosttracker/api/src/main/java/org/opendaylight/controller/hosttracker/IfNewHostNotify.java @@ -0,0 +1,36 @@ + +/* + * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ + +package org.opendaylight.controller.hosttracker; + +import org.opendaylight.controller.hosttracker.hostAware.HostNodeConnector; + +/** + * This Interface defines the methods for client applications of + * Host Tracker to get notifications when a new host is learned or + * existing host is removed from the network. + * + */ +public interface IfNewHostNotify { + /** + * Notifies the HostTracker Clients that a new Host has been learned + * + * @param host Host Info encapsulated in HostNodeConnector class + */ + public void notifyHTClient(HostNodeConnector host); + + /** + * Notifies the HostTracker Clients that a Host which was learned in + * the past has been removed either due to switch/port down event or + * due to ARP Aging + * + * @param host Host Info encapsulated in HostNodeConnector class + */ + public void notifyHTClientHostRemoved(HostNodeConnector host); +}