Initiate the OpenDaylight env
[transportpce.git] / cli / src / main / java / org / opendaylight / transportpce / cli / impl / TransportpceCliCommandsImpl.java
diff --git a/cli/src/main/java/org/opendaylight/transportpce/cli/impl/TransportpceCliCommandsImpl.java b/cli/src/main/java/org/opendaylight/transportpce/cli/impl/TransportpceCliCommandsImpl.java
new file mode 100644 (file)
index 0000000..af15d68
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Copyright © 2016 Orange 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.transportpce.cli.impl;
+
+import org.opendaylight.controller.md.sal.binding.api.DataBroker;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.opendaylight.transportpce.cli.api.TransportpceCliCommands;
+
+public class TransportpceCliCommandsImpl implements TransportpceCliCommands {
+
+    private static final Logger LOG = LoggerFactory.getLogger(TransportpceCliCommandsImpl.class);
+    private final DataBroker dataBroker;
+
+    public TransportpceCliCommandsImpl(final DataBroker db) {
+        this.dataBroker = db;
+        LOG.info("TransportpceCliCommandImpl initialized");
+    }
+
+    @Override
+    public Object testCommand(Object testArgument) {
+        return "This is a test implementation of test-command";
+    }
+}
\ No newline at end of file