From a13e3cdb3ec85755cdc327c5a512847a77fcfef0 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Wed, 4 Jun 2014 23:08:41 +0200 Subject: [PATCH] BUG-1089: migrate ConfigurableSwitchManager Migrates defunct ConfigurableSwitchManager from xtend to java. Change-Id: I07c80e2f7e84c797a4d154dc908d08f1bcc59c0e Signed-off-by: Robert Varga --- .../ConfigurableSwitchManager.java | 86 +++++++++++++++++++ .../ConfigurableSwitchManager.xtend | 78 ----------------- 2 files changed, 86 insertions(+), 78 deletions(-) create mode 100644 opendaylight/md-sal/compatibility/inventory-topology-compatibility/src/main/java/org/opendaylight/controller/md/compatibility/switchmanager/ConfigurableSwitchManager.java delete mode 100644 opendaylight/md-sal/compatibility/inventory-topology-compatibility/src/main/java/org/opendaylight/controller/md/compatibility/switchmanager/ConfigurableSwitchManager.xtend diff --git a/opendaylight/md-sal/compatibility/inventory-topology-compatibility/src/main/java/org/opendaylight/controller/md/compatibility/switchmanager/ConfigurableSwitchManager.java b/opendaylight/md-sal/compatibility/inventory-topology-compatibility/src/main/java/org/opendaylight/controller/md/compatibility/switchmanager/ConfigurableSwitchManager.java new file mode 100644 index 0000000000..63f682a361 --- /dev/null +++ b/opendaylight/md-sal/compatibility/inventory-topology-compatibility/src/main/java/org/opendaylight/controller/md/compatibility/switchmanager/ConfigurableSwitchManager.java @@ -0,0 +1,86 @@ +/** + * 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.md.compatibility.switchmanager; + +import java.util.List; + +import org.opendaylight.controller.sal.utils.Status; +import org.opendaylight.controller.switchmanager.ISwitchManager; +import org.opendaylight.controller.switchmanager.SpanConfig; +import org.opendaylight.controller.switchmanager.SubnetConfig; +import org.opendaylight.controller.switchmanager.SwitchConfig; + +/** + * These methods should be backed by config subsystem. + */ +public abstract class ConfigurableSwitchManager implements ISwitchManager { + @Override + public Status saveSwitchConfig() { + throw new UnsupportedOperationException("TODO: auto-generated method stub"); + } + + @Override + public Status removeSpanConfig(final SpanConfig cfgObject) { + throw new UnsupportedOperationException("TODO: auto-generated method stub"); + } + + @Override + public Status addSubnet(final SubnetConfig configObject) { + throw new UnsupportedOperationException("TODO: auto-generated method stub"); + } + + @Override + public final Status addSpanConfig(final SpanConfig configObject) { + throw new UnsupportedOperationException("TODO: auto-generated method stub"); + } + + @Override + public final List getSpanConfigList() { + throw new UnsupportedOperationException("TODO: auto-generated method stub"); + } + + @Override + public final void updateSwitchConfig(final SwitchConfig cfgObject) { + throw new UnsupportedOperationException("TODO: auto-generated method stub"); + } + + @Override + public final Status updateNodeConfig(final SwitchConfig switchConfig) { + throw new UnsupportedOperationException("TODO: auto-generated method stub"); + } + + @Override + public final SubnetConfig getSubnetConfig(final String subnet) { + throw new UnsupportedOperationException("TODO: auto-generated method stub"); + } + + @Override + public final Status removeNodeConfig(final String nodeId) { + throw new UnsupportedOperationException("TODO: auto-generated method stub"); + } + + @Override + public final Status removeSubnet(final SubnetConfig configObject) { + throw new UnsupportedOperationException("TODO: auto-generated method stub"); + } + + @Override + public final List getSubnetsConfigList() { + throw new UnsupportedOperationException("TODO: auto-generated method stub"); + } + + @Override + public final SwitchConfig getSwitchConfig(final String nodeId) { + throw new UnsupportedOperationException("TODO: auto-generated method stub"); + } + + @Override + public Status modifySubnet(final SubnetConfig configObject) { + throw new UnsupportedOperationException("TODO: auto-generated method stub"); + } +} diff --git a/opendaylight/md-sal/compatibility/inventory-topology-compatibility/src/main/java/org/opendaylight/controller/md/compatibility/switchmanager/ConfigurableSwitchManager.xtend b/opendaylight/md-sal/compatibility/inventory-topology-compatibility/src/main/java/org/opendaylight/controller/md/compatibility/switchmanager/ConfigurableSwitchManager.xtend deleted file mode 100644 index faa4b8d5cd..0000000000 --- a/opendaylight/md-sal/compatibility/inventory-topology-compatibility/src/main/java/org/opendaylight/controller/md/compatibility/switchmanager/ConfigurableSwitchManager.xtend +++ /dev/null @@ -1,78 +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.md.compatibility.switchmanager - -import org.opendaylight.controller.switchmanager.ISwitchManager -import org.opendaylight.controller.switchmanager.SpanConfig -import org.opendaylight.controller.switchmanager.SwitchConfig -import org.opendaylight.controller.switchmanager.SubnetConfig - -/** - * - * THis methods should be backed by config subsystem. - * - */ -abstract class ConfigurableSwitchManager implements ISwitchManager { - - override saveSwitchConfig() { - throw new UnsupportedOperationException("TODO: auto-generated method stub") - } - - override removeSpanConfig(SpanConfig cfgObject) { - throw new UnsupportedOperationException("TODO: auto-generated method stub") - } - - override addSubnet(SubnetConfig configObject) { - throw new UnsupportedOperationException("TODO: auto-generated method stub") - - } - - final override addSpanConfig(SpanConfig configObject) { - throw new UnsupportedOperationException("TODO: auto-generated method stub") - - } - - final override getSpanConfigList() { - throw new UnsupportedOperationException("TODO: auto-generated method stub") - - } - - final override updateSwitchConfig(SwitchConfig cfgObject) { - throw new UnsupportedOperationException("TODO: auto-generated method stub") - - } - - final override updateNodeConfig(SwitchConfig switchConfig) { - throw new UnsupportedOperationException("TODO: auto-generated method stub") - - } - - final override getSubnetConfig(String subnet) { - throw new UnsupportedOperationException("TODO: auto-generated method stub") - } - - final override removeNodeConfig(String nodeId) { - throw new UnsupportedOperationException("TODO: auto-generated method stub") - } - - final override removeSubnet(SubnetConfig configObject) { - throw new UnsupportedOperationException("TODO: auto-generated method stub") - } - - final override getSubnetsConfigList() { - throw new UnsupportedOperationException("TODO: auto-generated method stub") - } - - final override getSwitchConfig(String nodeId) { - throw new UnsupportedOperationException("TODO: auto-generated method stub") - } - - override modifySubnet(SubnetConfig configObject) { - throw new UnsupportedOperationException("TODO: auto-generated method stub") - } -} -- 2.36.6