BUG-1089: migrate ConfigurableSwitchManager 17/7717/4
authorRobert Varga <rovarga@cisco.com>
Wed, 4 Jun 2014 21:08:41 +0000 (23:08 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Fri, 6 Jun 2014 09:51:07 +0000 (09:51 +0000)
Migrates defunct ConfigurableSwitchManager from xtend to java.

Change-Id: I07c80e2f7e84c797a4d154dc908d08f1bcc59c0e
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/compatibility/inventory-topology-compatibility/src/main/java/org/opendaylight/controller/md/compatibility/switchmanager/ConfigurableSwitchManager.java [new file with mode: 0644]
opendaylight/md-sal/compatibility/inventory-topology-compatibility/src/main/java/org/opendaylight/controller/md/compatibility/switchmanager/ConfigurableSwitchManager.xtend [deleted file]

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 (file)
index 0000000..63f682a
--- /dev/null
@@ -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<SpanConfig> 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<SubnetConfig> 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 (file)
index faa4b8d..0000000
+++ /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")
-    }
-}