How to find number of shards in sharded MongoDB cluster programatically

87 Views Asked by At

I know sh.status() command can give me shards information. However I cannot figure out, how to run this programatically using mongo java driver.

0

There are 0 best solutions below