Merge "Bug 1029: Remove dead code: samples/clustersession"
[controller.git] / opendaylight / adsal / connectionmanager / implementation / src / main / java / org / opendaylight / controller / connectionmanager / scheme / LoadBalancedScheme.java
1 /*
2  * Copyright (c) 2014 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 package org.opendaylight.controller.connectionmanager.scheme;
9
10
11 import org.opendaylight.controller.clustering.services.IClusterGlobalServices;
12 import org.opendaylight.controller.connectionmanager.ConnectionMgmtScheme;
13 import org.opendaylight.controller.sal.core.Node;
14
15 /**
16  * Load Balancing scheme will let the nodes connect with controller based
17  * on the resource usage in each of the controllers in a cluster.
18  *
19  * Incomplete and Currently not used.
20  */
21
22 class LoadBalancedScheme extends AbstractScheme {
23
24     protected LoadBalancedScheme(IClusterGlobalServices clusterServices) {
25         super(clusterServices, ConnectionMgmtScheme.LOAD_BALANCED);
26     }
27
28     public static AbstractScheme getScheme(IClusterGlobalServices clusterServices) {
29         return null;
30     }
31
32     @Override
33     public boolean isConnectionAllowedInternal(Node node) {
34         return false;
35     }
36
37 }