RemoteDeviceDataBroker proxy
[netconf.git] / opendaylight / netconf / abstract-topology / src / main / java / org / opendaylight / netconf / topology / util / NoopRoleChangeStrategy.java
1 /*
2  * Copyright (c) 2015 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.netconf.topology.util;
10
11 import org.opendaylight.netconf.topology.NodeListener;
12 import org.opendaylight.netconf.topology.RoleChangeStrategy;
13
14 /**
15  * Use this strategy to override the default roleChange registration's in BaseTopologyManager|BaseNodeManager
16  * If you use this, you will need to execute your own election in your implemented callbacks.
17  */
18 public class NoopRoleChangeStrategy implements RoleChangeStrategy {
19
20     @Override
21     public void registerRoleCandidate(NodeListener electionCandidate) {
22
23     }
24
25     @Override
26     public void unregisterRoleCandidate() {
27
28     }
29
30     @Override
31     public boolean isCandidateRegistered() {
32         return false;
33     }
34
35     @Override
36     public void onRoleChanged(RoleChangeDTO roleChangeDTO) {
37
38     }
39 }