Rename akka refs in pekko-cluster script (#127)

This commit is contained in:
Denny Yung-Yu Chen 2023-01-27 20:15:54 +01:00 committed by GitHub
parent 45e3da0160
commit 767209a894
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
# ============== Akka Cluster Administration Tool ============== # ============== Apache Pekko Cluster Administration Tool ==============
# #
# This script is meant to be used from within the Akka distribution. # This script is meant to be used from within the Pekko distribution.
# #
# Add these options to the sbt or startup script: # Add these options to the sbt or startup script:
# java \ # java \
@ -28,9 +28,9 @@ JMX_CLIENT="java -jar $JMXSHJAR -h $HOST -p $PORT /dev/fd/0"
function mbeanObjectName() { function mbeanObjectName() {
if [[ -z "$CLUSTER_PORT" ]]; then if [[ -z "$CLUSTER_PORT" ]]; then
echo "akka:type=Cluster" echo "pekko:type=Cluster"
else else
echo "akka:type=Cluster,port=$CLUSTER_PORT" echo "pekko:type=Cluster,port=$CLUSTER_PORT"
fi fi
} }
@ -46,15 +46,15 @@ function ensureNodeIsRunningAndAvailable {
REPLY=$(get Available 2>&1) # redirects STDERR to STDOUT before capturing it REPLY=$(get Available 2>&1) # redirects STDERR to STDOUT before capturing it
if [[ "$REPLY" != *true ]]; then if [[ "$REPLY" != *true ]]; then
if [[ "$REPLY" == *"Cannot convert result to a string." ]]; then if [[ "$REPLY" == *"Cannot convert result to a string." ]]; then
echo "Akka cluster MBean is not available on $HOST:$PORT with MBean name '$(mbeanObjectName)'" echo "Pekko cluster MBean is not available on $HOST:$PORT with MBean name '$(mbeanObjectName)'"
else else
echo "Akka cluster node is not available on $HOST:$PORT with MBean name '$(mbeanObjectName)', due to $REPLY" echo "Pekko cluster node is not available on $HOST:$PORT with MBean name '$(mbeanObjectName)', due to $REPLY"
fi fi
exit 1 exit 1
fi fi
} }
echo "This jmx-client/akka-cluster tool is deprecated use curl and https://github.com/akka/akka-cluster-management instead, since 2.5.0." >&2 echo "This jmx-client/pekko-cluster tool is deprecated use curl and https://github.com/apache/incubator-pekko-management instead." >&2
# switch on command # switch on command
while [ $# -gt 0 ]; while [ $# -gt 0 ];