How to run Mongo database db.currentOp(true) command using API
Try this instead:

db.command("currentOp({$all: true})");


I've tested the JS version of this (don't have Java set up to test atm) and it worked. If you are looking for an example of how to do this, you can see the actual methods (rather than helpers) in Java in this example, compare the default on line 43 with "all" on line 49