I'm using mysql with cluster, so I have 1 node active (master) and the other node is slave.
In mysql utilities package, I know how to get status for each node using the command below:
mysqlrpladmin --master=root@localhost:3333 \
-- slaves=root@localhost:3332,root@localhost:3334 health
But I need help getting the status of the node via Java code. I think I need to connect to specific node and "ask" the node about this status.