X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fadsal%2Fconnectionmanager%2Fimplementation%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconnectionmanager%2Fscheme%2FControllerConfig.java;fp=opendaylight%2Fadsal%2Fconnectionmanager%2Fimplementation%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconnectionmanager%2Fscheme%2FControllerConfig.java;h=0000000000000000000000000000000000000000;hp=e186d2b9a12793c031f5bbb0333e0a96072f0093;hb=50f88249a65c52ba56a48852b71ce432fed2bbeb;hpb=abfa9a03550cbe9fccc4420684dced175dd6d119 diff --git a/opendaylight/adsal/connectionmanager/implementation/src/main/java/org/opendaylight/controller/connectionmanager/scheme/ControllerConfig.java b/opendaylight/adsal/connectionmanager/implementation/src/main/java/org/opendaylight/controller/connectionmanager/scheme/ControllerConfig.java deleted file mode 100644 index e186d2b9a1..0000000000 --- a/opendaylight/adsal/connectionmanager/implementation/src/main/java/org/opendaylight/controller/connectionmanager/scheme/ControllerConfig.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ -package org.opendaylight.controller.connectionmanager.scheme; - -import java.net.InetAddress; - -/** - * Configuration object that can be used to prioritize or add weight to a given controller. - * This can be potentially used by the Connection management scheme algorithms. - * - * This is currently not used. - * - */ -public class ControllerConfig { - private InetAddress controllerId; - private int priority; - private int weight; - - public ControllerConfig(InetAddress controllerId, int priority, int weight) { - this.controllerId = controllerId; - this.priority = priority; - this.weight = weight; - } - - public InetAddress getControllerId() { - return controllerId; - } - public int getPriority() { - return priority; - } - public int getWeight() { - return weight; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result - + ((controllerId == null) ? 0 : controllerId.hashCode()); - return result; - } - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - ControllerConfig other = (ControllerConfig) obj; - if (controllerId == null) { - if (other.controllerId != null) - return false; - } else if (!controllerId.equals(other.controllerId)) - return false; - return true; - } - @Override - public String toString() { - return "ControllerConfig [controllerId=" + controllerId + ", priority=" - + priority + ", weight=" + weight + "]"; - } -}