X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fadsal%2Fhosttracker%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fhosttracker%2FhostAware%2FIHostFinder.java;fp=opendaylight%2Fadsal%2Fhosttracker%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fhosttracker%2FhostAware%2FIHostFinder.java;h=abe75180cf676bdeab08d7fe0f5166d6bfa57c97;hb=42c32160bfd41de57189bb246fec5ffb48ed8e9e;hp=0000000000000000000000000000000000000000;hpb=edf5bfcee83c750853253ccfd991ba7000f5f65b;p=controller.git diff --git a/opendaylight/adsal/hosttracker/api/src/main/java/org/opendaylight/controller/hosttracker/hostAware/IHostFinder.java b/opendaylight/adsal/hosttracker/api/src/main/java/org/opendaylight/controller/hosttracker/hostAware/IHostFinder.java new file mode 100644 index 0000000000..abe75180cf --- /dev/null +++ b/opendaylight/adsal/hosttracker/api/src/main/java/org/opendaylight/controller/hosttracker/hostAware/IHostFinder.java @@ -0,0 +1,40 @@ +/* + * 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.hostAware; + +import java.net.InetAddress; + +/** + * This Interface defines the methods to trigger the discovery of a Host and to + * probe if a learned Host is still in the network. + * + * + * + */ +public interface IHostFinder { + /** + * This method initiates the discovery of a host based on its IP address. + * This is triggered by query of an application to the HostTracker. The + * requested IP address doesn't exist in the local database at this point. + * + * @param networkAddress + * IP Address encapsulated in InetAddress class + * + */ + public void find(InetAddress networkAddress); + + /** + * This method is called by HostTracker to see if a learned Host is still in + * the network. Used mostly for ARP Aging. + * + * @param host + * The Host that needs to be probed + */ + public void probe(HostNodeConnector host); +}