Based upon @Stennie 's note, here is a way to run the db.printReplicationInfo() command using Java code. The Java code basically runs the command mongo.exe -- ...
確定! 回上一頁