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.yang.gen.v1.urn.opendaylight.role.service.rev150727.OfpRole;
14 * Created by kramesha on 9/19/15.
16 public interface RoleChangeListener extends AutoCloseable {
18 * Gets called by the EntityOwnershipCandidate after role change received from EntityOwnershipService
22 void onRoleChanged(OfpRole oldRole, OfpRole newRole);
26 void onDeviceDisconnectedFromCluster();