Package de.caluga.morphium.driver.wire
Interface MongoConnection
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
InMemoryDriver,SingleMongoConnection
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidconnect(MorphiumDriver drv, String host, int port) getAnswerFor(int queryId, int batchsize) intgetReplyFor(int msgid, long timeout) intbooleankillCursors(String db, String coll, long... ids) readAnswerFor(int queryId) readSingleAnswer(int id) voidrelease()booleanreplyAvailableFor(int msgId) intsendCommand(MongoCommand cmd) voidsetCredentials(String authDb, String userName, String password) voidwatch(WatchCommand settings)
-
Method Details
-
setCredentials
-
connect
HelloResult connect(MorphiumDriver drv, String host, int port) throws IOException, MorphiumDriverException - Throws:
IOExceptionMorphiumDriverException
-
getDriver
MorphiumDriver getDriver() -
getSourcePort
int getSourcePort() -
close
void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
release
void release() -
isConnected
boolean isConnected() -
getConnectedTo
String getConnectedTo() -
getConnectedToHost
String getConnectedToHost() -
getConnectedToPort
int getConnectedToPort() -
closeIteration
- Throws:
MorphiumDriverException
-
killCursors
- Throws:
MorphiumDriverException
-
replyAvailableFor
boolean replyAvailableFor(int msgId) -
getReplyFor
- Throws:
MorphiumDriverException
-
readSingleAnswer
- Throws:
MorphiumDriverException
-
watch
- Throws:
MorphiumDriverException
-
readAnswerFor
- Throws:
MorphiumDriverException
-
getAnswerFor
- Throws:
MorphiumDriverException
-
readAnswerFor
- Throws:
MorphiumDriverException
-
sendCommand
- Throws:
MorphiumDriverException
-