summaryrefslogtreecommitdiffstats
path: root/platform-logic/installer/src/main
diff options
context:
space:
mode:
authorSmokowski, Kevin (ks6305) <ks6305@att.com>2018-03-01 19:38:45 +0000
committerKevin Smokowski <ks6305@att.com>2018-03-01 19:43:40 +0000
commitdab10f39a480501bce93ba0010855170e8d19e9a (patch)
tree601f5d57efcba81c7d46ead47e8919c1b8832174 /platform-logic/installer/src/main
parent912f98b9cdfe0f636239b8f94fccf7858bffac26 (diff)
enable fast load
enabled fast loading of graphs by using the install method Change-Id: I0149136e3b6dd965a2253821ca32e341cc59c95e Issue-ID: CCSDK-191 Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
Diffstat (limited to 'platform-logic/installer/src/main')
-rw-r--r--platform-logic/installer/src/main/scripts/install.sh31
1 files changed, 7 insertions, 24 deletions
diff --git a/platform-logic/installer/src/main/scripts/install.sh b/platform-logic/installer/src/main/scripts/install.sh
index 2c32e93a..36bf0702 100644
--- a/platform-logic/installer/src/main/scripts/install.sh
+++ b/platform-logic/installer/src/main/scripts/install.sh
@@ -23,32 +23,15 @@
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
+echo "Load and activate started at $(date)"
+start=$(date +%s.%N)
-# Load directed graphs
-
-
-for graphlist in $(find $BASEDIR/graphs -name graph.versions -print)
-do
- curdir=$(dirname $graphlist)
-
- # Load files from directory containing graph.versions file
- echo "Loading graphs from $curdir"
- for file in $(ls $curdir/*.xml)
- do
- echo "Loading $file ..."
- $BASEDIR/bin/svclogic.sh load $file $BASEDIR/config/svclogic.properties
- done
-
- # Activate directed graphs
- while read module rpc version mode
- do
- echo "Activating $module $rpc $version $mode"
- $BASEDIR/bin/svclogic.sh activate $module $rpc $version $mode $BASEDIR/config/svclogic.properties
- done < $graphlist
-done
-
-
+$BASEDIR/bin/svclogic.sh install $BASEDIR $BASEDIR/config/svclogic.properties
+end=$(date +%s.%N)
+echo "Load and activate from $curdir finished at $(date)"
+runtime=$(python -c "print(${end} - ${start})")
+echo "Load and activate took $runtime seconds"