Packaged with the Java Client is the Info class. Using the request() method you can send an “asinfo” message to a node in the cluster.
For example, if you want to see the sets, you can use this:
String answer = Info.request(infoPolicy, client.getNodes(), "sets");
Where “client.getNodes()” is the first node in the cluster list stored in the client.
Show namespaces would be:
String answer = Info.request(infoPolicy, client.getNodes(), "namespaces");
Using Info.request(…) you can get the same information as asinfo.
I hope this helps