Ignore:
Timestamp:
06/11/13 15:05:18 (11 years ago)
Author:
jripsl
Message:

Repository I/O implementation (suite).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Monitoring/libIGCM_mock/libIGCM_mock.sh

    r871 r875  
    4949 
    5050OPTIONS: 
     51   -c              ask for confirmation 
    5152   -h              this help 
    5253   -f              set stack file 
    5354   -l              print scenarios list  
    5455   -m              set MODE 
    55                    MODE may be "scenario", "stackfile" or "purge" 
     56                   MODE may be "scenario", "stackfile" or "cleanup" 
    5657                   default mode is "scenario" 
    5758   -s              set scenario file 
     
    8485} 
    8586 
     87send_cleanup_msg() 
     88{ 
     89        $send_msg_cmd -h localhost -p 5672 -b "$( echo {\"code\":\"8888\"} | base64 -w 0 )" 
     90} 
     91 
    8692# check 
    8793 
     
    130136        # check 
    131137        if [ ! -f "$g__scenariofile" ]; then 
    132                 msg "LIBIGCM-MOCK-ERR003" "scenario file not found" 
     138                msg "LIBIGCM-MOCK-ERR003" "scenario file not found ($g__scenariofile)" 
    133139                exit 1 
    134140        fi 
     
    222228 
    223229                if [ "$g__confirm" = "1" ]; then 
    224                         read -p "Press enter for next message" bla 
     230                        read -p "<<< $l__JSON_msg_buf >>>> sent. Press enter for next message" bla 
    225231                else 
    226232                        sleep $g__delay 
     
    234240        done 3<$g__scenariofile 
    235241 
    236 elif [ "$g__mode" = "purge" ]; then 
    237  
    238         : 
     242elif [ "$g__mode" = "cleanup" ]; then 
     243 
     244        send_cleanup_msg 
    239245 
    240246elif [ "$g__mode" = "stackfile" ]; then 
Note: See TracChangeset for help on using the changeset viewer.