3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
10 package org.opendaylight.controller.switchmanager;
12 import java.io.Serializable;
14 import org.apache.commons.lang3.builder.EqualsBuilder;
15 import org.apache.commons.lang3.builder.HashCodeBuilder;
18 * The class describes a switch configuration including node identifier, node
19 * name, tier number and proactive/reactive mode.
21 public class SwitchConfig implements Serializable {
22 private static final long serialVersionUID = 1L;
28 public SwitchConfig(String nodeId, String nodeName, String tier, String mode) {
31 this.nodeName = nodeName;
36 public String getNodeId() {
40 public String getNodeName() {
44 public String getTier() {
48 public String getMode() {
52 public static long getSerialversionuid() {
53 return serialVersionUID;
57 public int hashCode() {
58 return HashCodeBuilder.reflectionHashCode(this);
62 public boolean equals(Object obj) {
63 return EqualsBuilder.reflectionEquals(this, obj);