Package de.bwaldvogel.mongo.backend
Class ReadOnlyProxy
java.lang.Object
de.bwaldvogel.mongo.backend.ReadOnlyProxy
- All Implemented Interfaces:
AsyncMongoBackend,MongoBackend
public class ReadOnlyProxy extends java.lang.Object implements MongoBackend
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReadOnlyProxy.ReadOnlyException -
Constructor Summary
Constructors Constructor Description ReadOnlyProxy(MongoBackend backend) -
Method Summary
Modifier and Type Method Description voidclose()voiddisableOplog()voiddropDatabase(java.lang.String database)voidenableOplog()java.time.ClockgetClock()java.util.Collection<Document>getCurrentOperations(MongoQuery query)DocumentgetServerStatus()voidhandleClose(io.netty.channel.Channel channel)DocumenthandleCommand(io.netty.channel.Channel channel, java.lang.String database, java.lang.String command, Document query)voidhandleDelete(MongoDelete delete)QueryResulthandleGetMore(long cursorId, int numberToReturn)QueryResulthandleGetMore(MongoGetMore getMore)voidhandleInsert(MongoInsert insert)voidhandleKillCursors(MongoKillCursors mongoKillCursors)DocumenthandleMessage(MongoMessage message)QueryResulthandleQuery(MongoQuery query)voidhandleUpdate(MongoUpdate update)MongoDatabaseresolveDatabase(java.lang.String database)MongoBackendversion(ServerVersion version)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.bwaldvogel.mongo.MongoBackend
closeAsync, dropDatabaseAsync, handleCloseAsync, handleCommandAsync, handleDeleteAsync, handleGetMoreAsync, handleInsertAsync, handleKillCursorsAsync, handleMessageAsync, handleQueryAsync, handleUpdateAsync
-
Constructor Details
-
Method Details
-
handleClose
public void handleClose(io.netty.channel.Channel channel)- Specified by:
handleClosein interfaceMongoBackend
-
handleCommand
public Document handleCommand(io.netty.channel.Channel channel, java.lang.String database, java.lang.String command, Document query)- Specified by:
handleCommandin interfaceMongoBackend
-
handleMessage
- Specified by:
handleMessagein interfaceMongoBackend
-
getCurrentOperations
- Specified by:
getCurrentOperationsin interfaceMongoBackend
-
handleQuery
- Specified by:
handleQueryin interfaceMongoBackend
-
handleGetMore
- Specified by:
handleGetMorein interfaceMongoBackend
-
handleGetMore
- Specified by:
handleGetMorein interfaceMongoBackend
-
handleInsert
- Specified by:
handleInsertin interfaceMongoBackend
-
handleDelete
- Specified by:
handleDeletein interfaceMongoBackend
-
handleUpdate
- Specified by:
handleUpdatein interfaceMongoBackend
-
dropDatabase
public void dropDatabase(java.lang.String database)- Specified by:
dropDatabasein interfaceMongoBackend
-
version
- Specified by:
versionin interfaceMongoBackend
-
resolveDatabase
- Specified by:
resolveDatabasein interfaceMongoBackend
-
getServerStatus
- Specified by:
getServerStatusin interfaceMongoBackend
-
close
public void close()- Specified by:
closein interfaceMongoBackend
-
getClock
public java.time.Clock getClock()- Specified by:
getClockin interfaceMongoBackend
-
enableOplog
public void enableOplog()- Specified by:
enableOplogin interfaceMongoBackend
-
disableOplog
public void disableOplog()- Specified by:
disableOplogin interfaceMongoBackend
-
handleKillCursors
- Specified by:
handleKillCursorsin interfaceMongoBackend
-