Looks like i found what im looking for.
- Info class api http://www.aerospike.com/apidocs/java/com/aerospike/client/Info.html
- json endpoints amc uses internally. Example : http://[AMC]:[PORT]/aerospike/service/clusters/[CLUSTER_ID]/namespaces/[NAMESPACE]/sets
For me the second option seems very convenient (inspite of being a little hacky) . Any suggestions on whats better?
[update] : just realized the cluster_id does not remain the same. It keeps changing. Is there any way to generate the cluster id?
[update2] : I used the Info java class made my tool based on that. It perfectly suits my needs.