3 # Usage: source ./development.sh and use functions defined here
4 # https://httpie.org/ is required for API calls
6 export MAVEN_OPTS="-T1C"
8 function veshv_full_rebuild() {
9 mvn clean install -Panalysis ${MAVEN_OPTS}
12 function veshv_rebuild() {
13 mvn clean install ${MAVEN_OPTS}
16 function veshv_build() {
17 mvn install ${MAVEN_OPTS}
20 function veshv_fast_build() {
21 mvn install -DskipTests ${MAVEN_OPTS}
24 function veshv_docker_start() {
30 function veshv_docker_clean() {
34 function veshv_build_and_start() {
35 veshv_fast_build && veshv_docker_start
38 function veshv_fresh_restart() {
42 veshv_fast_build && docker-compose up
45 function veshv_simul_dcaeapp_count() {
46 http --json GET http://localhost:8100/messages/count
49 function veshv_simul_dcaeapp_last_key() {
50 http --json GET http://localhost:8100/messages/last/key
53 function veshv_simul_dcaeapp_last_value() {
54 http --json GET http://localhost:8100/messages/last/value
57 function veshv_simul_client() {
58 # feed me with json file using "<"
59 http --json POST http://localhost:8000/simulator/sync
62 function veshv_simul_client_async() {
63 # feed me with json file using "<"
64 http --json POST http://localhost:8000/simulator/async