public class ReadOnlyProxy extends java.lang.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 |
|---|---|
void |
close() |
void |
dropDatabase(java.lang.String database) |
java.util.Collection<org.bson.BSONObject> |
getCurrentOperations(MongoQuery query) |
int[] |
getVersion() |
void |
handleClose(io.netty.channel.Channel channel) |
org.bson.BSONObject |
handleCommand(io.netty.channel.Channel channel,
java.lang.String database,
java.lang.String command,
org.bson.BSONObject query) |
void |
handleDelete(MongoDelete delete) |
void |
handleInsert(MongoInsert insert) |
java.lang.Iterable<org.bson.BSONObject> |
handleQuery(MongoQuery query) |
void |
handleUpdate(MongoUpdate update) |
public ReadOnlyProxy(MongoBackend backend)
public void handleClose(io.netty.channel.Channel channel)
handleClose in interface MongoBackendpublic org.bson.BSONObject handleCommand(io.netty.channel.Channel channel,
java.lang.String database,
java.lang.String command,
org.bson.BSONObject query)
throws MongoServerException
handleCommand in interface MongoBackendMongoServerExceptionpublic java.util.Collection<org.bson.BSONObject> getCurrentOperations(MongoQuery query)
getCurrentOperations in interface MongoBackendpublic java.lang.Iterable<org.bson.BSONObject> handleQuery(MongoQuery query) throws MongoServerException
handleQuery in interface MongoBackendMongoServerExceptionpublic int[] getVersion()
getVersion in interface MongoBackendpublic 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 MongoBackendMongoServerExceptionpublic void dropDatabase(java.lang.String database)
throws MongoServerException
dropDatabase in interface MongoBackendMongoServerExceptionpublic void close()
close in interface MongoBackend