Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix stop-all.sh and apply java google style (#31)
* Apply java google style * bump version * update * update * fix stop-all.sh * update stop-all.sh * apply mvn license:format * apply 120 wide column
- Loading branch information
Showing
58 changed files
with
333 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
#!/bin/bash -e | ||
|
||
echo "EXECUTING: stop controller" | ||
PID=`pgrep -f "Dapp_name=uReplicator-Controller"` | ||
kill -9 $PID | ||
PID1=`pgrep -f "Dapp_name=uReplicator-Controller"` || true | ||
if [ -n "$PID1" ]; then | ||
kill -9 ${PID1} | ||
fi | ||
|
||
echo "EXECUTING: stop worker" | ||
PID=`pgrep -f "Dapp_name=uReplicator-Worker"` | ||
kill -9 $PID | ||
PID2=`pgrep -f "Dapp_name=uReplicator-Worker"` || true | ||
if [ -n "$PID2" ]; then | ||
kill -9 ${PID2} | ||
fi | ||
|
||
echo "EXECUTING: stop producing" | ||
PID=`pgrep -f "./bin/produce-data-to-kafka-topic-dummyTopic.sh"` | ||
kill -9 $PID | ||
PID3=`pgrep -f "./bin/produce-data-to-kafka-topic-dummyTopic.sh"` || true | ||
if [ -n "$PID3" ]; then | ||
kill -9 ${PID3} | ||
fi | ||
|
||
echo "EXECUTING: stop consuming" | ||
PID=`pgrep -f "kafka.tools.ConsoleConsumer"` | ||
for i in "${PID[@]}" | ||
do | ||
kill -9 $i | ||
done | ||
PID4=$(ps ax | grep -i 'kafka.tools.ConsoleConsumer' | grep java | grep -v grep | awk '{print $1}') | ||
if [ -n "$PID4" ]; then | ||
kill -9 ${PID4} | ||
fi | ||
|
||
bin/grid stop all | ||
bin/grid stop all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.