summaryrefslogtreecommitdiffstats
path: root/dgbuilder/svclogic
diff options
context:
space:
mode:
Diffstat (limited to 'dgbuilder/svclogic')
-rwxr-xr-xdgbuilder/svclogic/copy_xml.sh4
-rw-r--r--dgbuilder/svclogic/dg.xml2
-rw-r--r--dgbuilder/svclogic/lib/.gitignore0
-rwxr-xr-xdgbuilder/svclogic/load_dg1
-rw-r--r--dgbuilder/svclogic/svclogic.properties5
-rwxr-xr-xdgbuilder/svclogic/svclogic.sh14
6 files changed, 26 insertions, 0 deletions
diff --git a/dgbuilder/svclogic/copy_xml.sh b/dgbuilder/svclogic/copy_xml.sh
new file mode 100755
index 00000000..8b2cc4ee
--- /dev/null
+++ b/dgbuilder/svclogic/copy_xml.sh
@@ -0,0 +1,4 @@
+dt=$(date +'%m%d%Y_%H%M%S')
+mv ~/dg_xml/dg.xml ~/dg_xml/dg_${dt}.xml
+cp $(ls -ltr /home/users/schinthakayala/nodered/production/flowDesigner/users/sheshi/xml/*.xml|tail -1|awk '{print $NF}') ~/dg_xml/dg.xml
+echo "copied the latest DG"
diff --git a/dgbuilder/svclogic/dg.xml b/dgbuilder/svclogic/dg.xml
new file mode 100644
index 00000000..069a0269
--- /dev/null
+++ b/dgbuilder/svclogic/dg.xml
@@ -0,0 +1,2 @@
+<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='ModuleName' version='1.0.0'><method rpc='rpcName' mode='sync'>
+</method></service-logic>
diff --git a/dgbuilder/svclogic/lib/.gitignore b/dgbuilder/svclogic/lib/.gitignore
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/dgbuilder/svclogic/lib/.gitignore
diff --git a/dgbuilder/svclogic/load_dg b/dgbuilder/svclogic/load_dg
new file mode 100755
index 00000000..e13745b2
--- /dev/null
+++ b/dgbuilder/svclogic/load_dg
@@ -0,0 +1 @@
+/home/users/schinthakayala/dg_xml/svclogic.sh load /home/users/schinthakayala/dg_xml/dg.xml /home/users/schinthakayala/dg_xml/svclogic.properties
diff --git a/dgbuilder/svclogic/svclogic.properties b/dgbuilder/svclogic/svclogic.properties
new file mode 100644
index 00000000..b34ee25e
--- /dev/null
+++ b/dgbuilder/svclogic/svclogic.properties
@@ -0,0 +1,5 @@
+org.onap.ccsdk.sli.dbtype = jdbc
+org.onap.ccsdk.sli.jdbc.url = jdbc:mysql://dbhost:3306/sdnctl
+org.onap.ccsdk.sli.jdbc.database = sdnctl
+org.onap.ccsdk.sli.jdbc.user = sdnctl
+org.onap.ccsdk.sli.jdbc.password = gamma
diff --git a/dgbuilder/svclogic/svclogic.sh b/dgbuilder/svclogic/svclogic.sh
new file mode 100755
index 00000000..4c0d2da2
--- /dev/null
+++ b/dgbuilder/svclogic/svclogic.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+#echo "PROJECT_HOME:$PROJECT_HOME"
+
+MYSQL_JDBC_DRIVER=${MYSQL_JDBC_DRIVER:-$PROJECT_HOME/svclogic/lib/mysql-connector-java-5.1.31.jar}
+JARDIR="$PROJECT_HOME/svclogic/lib"
+#JARDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+CLASSPATH=$CLASSPATH:$MYSQL_JDBC_DRIVER
+for jar in $JARDIR/*.jar
+do
+ CLASSPATH=$CLASSPATH:${jar}
+done
+#echo "CLASSPATH is ${CLASSPATH}"
+java -cp ${CLASSPATH}:${MYSQL_JDBC_DRIVER}:${SLI_COMMON_JAR} org.onap.ccsdk.sli.core.sli.SvcLogicParser $*