enable fast load 65/33665/2
authorSmokowski, Kevin (ks6305) <ks6305@att.com>
Thu, 1 Mar 2018 19:38:45 +0000 (19:38 +0000)
committerKevin Smokowski <ks6305@att.com>
Thu, 1 Mar 2018 19:43:40 +0000 (19:43 +0000)
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>
platform-logic/installer/src/main/scripts/install.sh

index 2c32e93..36bf070 100644 (file)
 
 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"
 
 
 

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use