public class ReadOnlyProxy extends Object implements MongoBackend
| Modifier and Type | Class and Description |
|---|---|
static class |
ReadOnlyProxy.ReadOnlyException |
| Constructor and Description |
|---|
ReadOnlyProxy(MongoBackend backend) |
| Modifier and Type | Method and Description |
|---|---|
Collection<org.bson.BSONObject> |
getCurrentOperations(MongoQuery query) |
void |
handleClose(org.jboss.netty.channel.Channel channel) |
org.bson.BSONObject |
handleCommand(org.jboss.netty.channel.Channel channel,
String database,
String command,
org.bson.BSONObject query) |
void |
handleDelete(MongoDelete delete) |
void |
handleInsert(MongoInsert insert) |
Iterable<org.bson.BSONObject> |
handleQuery(MongoQuery query) |
void |
handleUpdate(MongoUpdate update) |
public ReadOnlyProxy(MongoBackend backend)
public void handleClose(org.jboss.netty.channel.Channel channel)
handleClose in interface MongoBackendpublic org.bson.BSONObject handleCommand(org.jboss.netty.channel.Channel channel,
String database,
String command,
org.bson.BSONObject query)
throws MongoServerException
handleCommand in interface MongoBackendMongoServerExceptionpublic Collection<org.bson.BSONObject> getCurrentOperations(MongoQuery query)
getCurrentOperations in interface MongoBackendpublic Iterable<org.bson.BSONObject> handleQuery(MongoQuery query) throws MongoServerException
handleQuery in interface MongoBackendMongoServerExceptionpublic void handleInsert(MongoInsert insert) throws MongoServerException
handleInsert in interface MongoBackendMongoServerExceptionpublic void handleDelete(MongoDelete delete) throws MongoServerException
handleDelete in interface MongoBackendMongoServerExceptionpublic void handleUpdate(MongoUpdate update) throws MongoServerException
handleUpdate in interface MongoBackendMongoServerExceptionCopyright © 2013. All Rights Reserved.