Package de.bwaldvogel.mongo.backend
Class AbstractMongoBackend
java.lang.Object
de.bwaldvogel.mongo.backend.AbstractMongoBackend
- All Implemented Interfaces:
AsyncMongoBackend,MongoBackend
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcloseCursors(List<Long> cursorIds) protected Oplogprotected static ClockvoidvoiddropDatabase(String databaseName) voidgetClock()getCurrentOperations(MongoQuery query) protected CursorRegistryvoidhandleClose(io.netty.channel.Channel channel) handleCommand(io.netty.channel.Channel channel, String databaseName, String command, Document query) handleCommandAsync(io.netty.channel.Channel channel, String database, String command, Document query) protected DocumenthandleDropDatabase(String databaseName) protected DocumenthandleGetMore(String databaseName, String command, Document query) protected DocumenthandleKillCursors(Document query) handleMessage(MongoMessage message) handleQuery(MongoQuery query) handleQueryAsync(MongoQuery query) protected abstract MongoDatabaseopenOrCreateDatabase(String databaseName) resolveDatabase(String databaseName) version(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
dropDatabaseAsync, handleCloseAsync, handleMessageAsync
-
Field Details
-
OPLOG_COLLECTION_NAME
- See Also:
-
oplog
-
-
Constructor Details
-
AbstractMongoBackend
protected AbstractMongoBackend() -
AbstractMongoBackend
-
-
Method Details
-
defaultClock
-
resolveDatabase
- Specified by:
resolveDatabasein interfaceMongoBackend
-
getServerStatus
- Specified by:
getServerStatusin interfaceMongoBackend
-
listDatabaseNames
-
openOrCreateDatabase
-
handleCommand
public Document handleCommand(io.netty.channel.Channel channel, String databaseName, String command, Document query) - Specified by:
handleCommandin interfaceMongoBackend
-
handleCommandAsync
public CompletionStage<Document> handleCommandAsync(io.netty.channel.Channel channel, String database, String command, Document query) - Specified by:
handleCommandAsyncin interfaceAsyncMongoBackend- Specified by:
handleCommandAsyncin interfaceMongoBackend
-
getCurrentOperations
- Specified by:
getCurrentOperationsin interfaceMongoBackend
-
handleQuery
- Specified by:
handleQueryin interfaceMongoBackend
-
handleQueryAsync
- Specified by:
handleQueryAsyncin interfaceAsyncMongoBackend- Specified by:
handleQueryAsyncin interfaceMongoBackend
-
closeCursors
- Specified by:
closeCursorsin interfaceMongoBackend
-
handleKillCursors
-
handleGetMore
-
handleDropDatabase
-
handleMessage
- Specified by:
handleMessagein interfaceMongoBackend
-
dropDatabase
- Specified by:
dropDatabasein interfaceMongoBackend
-
handleClose
public void handleClose(io.netty.channel.Channel channel) - Specified by:
handleClosein interfaceMongoBackend
-
close
public void close()- Specified by:
closein interfaceMongoBackend
-
version
- Specified by:
versionin interfaceMongoBackend
-
getClock
- Specified by:
getClockin interfaceMongoBackend
-
disableOplog
public void disableOplog()- Specified by:
disableOplogin interfaceMongoBackend
-
enableOplog
public void enableOplog()- Specified by:
enableOplogin interfaceMongoBackend
-
createOplog
-
getCursorRegistry
-