driver-legacy/src/main/com/mongodb/DB.java
public CommandResult command(final DBObject command, final ReadPreference readPreference) {
        return command(command, readPreference, null);
    }
public CommandResult command(final DBObject command, final ReadPreference readPreference) {
        return command(command, readPreference, null);
    }
public CommandResult command ( final DBObject command , final ReadPreference readPreference ) { return command ( command , readPreference , null ) ; }
Executes the command against the database with the given read preference.

@param command        The {@code DBObject} representation the command to be executed
@param readPreference Where to execute the command - this will only be applied for a subset of commands
@return The result of executing the command, success or failure
@mongodb.driver.manual tutorial/use-database-commands Commands
@since 2.12
Executes the command against the database with the given read preference .