From dab10f39a480501bce93ba0010855170e8d19e9a Mon Sep 17 00:00:00 2001 From: "Smokowski, Kevin (ks6305)" Date: Thu, 1 Mar 2018 19:38:45 +0000 Subject: 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) --- .../installer/src/main/scripts/install.sh | 31 +++++----------------- 1 file changed, 7 insertions(+), 24 deletions(-) (limited to 'platform-logic/installer') 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" -- cgit 1.2.3-korg