2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.openflowplugin.api.openflow.role;
10 import org.opendaylight.controller.md.sal.common.api.clustering.Entity;
11 import org.opendaylight.openflowplugin.api.openflow.device.DeviceState;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.role.service.rev150727.OfpRole;
15 * Created by kramesha on 9/19/15.
17 public interface RoleChangeListener extends AutoCloseable {
19 * Gets called by the EntityOwnershipCandidate after role change received from EntityOwnershipService
23 void onRoleChanged(OfpRole oldRole, OfpRole newRole);
27 DeviceState getDeviceState();