OPNFLWPLUG-1032: Neon-MRI: Bump odlparent, yangtools, mdsal
[openflowplugin.git] / applications / device-ownership-service / src / main / java / org / opendaylight / openflowplugin / applications / deviceownershipservice / DeviceOwnershipService.java
1 /*
2  * Copyright (c) 2018 Ericsson India Global Services Pvt Ltd. 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.openflowplugin.applications.deviceownershipservice;
10
11 public interface DeviceOwnershipService {
12     /**
13      * Method is used to check if the node is the entity owner of the switch.
14      * @return true if the node is the owner of the switch ,
15      *         false if either the switch is owned by some other node or if the cluster is in Jeopardy
16      */
17     boolean isEntityOwned(String nodeId);
18 }