Porting Tristate logic to SAL Connection Service and make use of it in Inventory...
[controller.git] / opendaylight / sal / connection / api / src / main / java / org / opendaylight / controller / sal / connection / IPluginOutConnectionService.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.sal.connection;
10
11 import org.opendaylight.controller.sal.core.Node;
12
13 /**
14  * The interface describes methods to be implemented by SAL connection service
15  */
16 public interface IPluginOutConnectionService {
17     /**
18      * Method to test if a node is local to a controller.
19      *
20      * @param node
21      *            the given node {@link org.opendaylight.controller.sal.core.Node}
22      * @return true if node is local to this controller. false otherwise.
23      */
24     public boolean isLocal(Node node);
25
26     public ConnectionLocality getLocalityStatus(Node node);
27 }