Use ByteBuf.readRetainedSlice()
[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 package org.opendaylight.openflowplugin.applications.deviceownershipservice;
9
10 public interface DeviceOwnershipService {
11     /**
12      * Method is used to check if the node is the entity owner of the switch.
13      * @return true if the node is the owner of the switch ,
14      *         false if either the switch is owned by some other node or if the cluster is in Jeopardy
15      */
16     boolean isEntityOwned(String nodeId);
17 }