Package de.bwaldvogel.mongo.exception

Examples of de.bwaldvogel.mongo.exception.NoSuchCommandException


        } else if (command.equalsIgnoreCase("getLog")) {
            final Object argument = query.get(command);
            BSONObject response = getLog(argument == null ? null : argument.toString());
            return response;
        } else {
            throw new NoSuchCommandException(command);
        }
    }
View Full Code Here


            MongoCollection collection = resolveOrCreateCollection(collectionName);
            return collection.findAndModify(query);
        } else {
            log.error("unknown query: {}", query);
        }
        throw new NoSuchCommandException(command);
    }
View Full Code Here

    public BSONObject handleCommand(Channel channel, String database, String command, BSONObject query)
            throws MongoServerException {
        if (allowedCommands.contains(command.toLowerCase())) {
            return backend.handleCommand(channel, database, command, query);
        }
        throw new NoSuchCommandException(command);
    }
View Full Code Here

TOP

Related Classes of de.bwaldvogel.mongo.exception.NoSuchCommandException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.