Class MongoCommand<T extends MongoCommand>
java.lang.Object
de.caluga.morphium.driver.commands.MongoCommand<T>
- Direct Known Subclasses:
AdminMongoCommand,CollStatsCommand,CountMongoCommand,CreateCommand,CurrentOpCommand,DbStatsCommand,DistinctMongoCommand,DropDatabaseMongoCommand,GenericCommand,GetMoreMongoCommand,HelloCommand,ListDatabasesCommand,ListIndexesCommand,ReadMongoCommand,ReplicastStatusCommand,SaslAuthCommand,WatchCommand,WriteMongoCommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMap()voidclear()intgetColl()abstract StringgetDb()intwill be set by the driver, containing information about total runtime (duration) host used (server) and other meta information about the execution of this commandintintsetComment(String c) setConnection(MongoConnection connection) setDefaultBatchSize(int defaultBatchSize) setMetaData(String key, Object value) setMetaData(Map<String, Object> metaData) setRetriesOnNetworkError(int retriesOnNetworkError) setSleepBetweenErrorRetries(int sleepBetweenErrorRetries)
-
Constructor Details
-
MongoCommand
-
-
Method Details
-
getRetriesOnNetworkError
public int getRetriesOnNetworkError() -
setRetriesOnNetworkError
-
getSleepBetweenErrorRetries
public int getSleepBetweenErrorRetries() -
setSleepBetweenErrorRetries
-
getDefaultBatchSize
public int getDefaultBatchSize() -
setDefaultBatchSize
-
getConnection
-
setConnection
-
getDb
-
getMetaData
will be set by the driver, containing information about total runtime (duration) host used (server) and other meta information about the execution of this command- Returns:
-
setMetaData
-
setMetaData
-
setDb
-
getColl
-
setColl
-
getComment
-
setComment
-
fromMap
-
asMap
-
clear
public void clear() -
getCommandName
-
executeAsync
- Throws:
MorphiumDriverException
-