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

public abstract class MongoCommand<T extends MongoCommand> extends Object
  • Constructor Details

  • Method Details

    • getRetriesOnNetworkError

      public int getRetriesOnNetworkError()
    • setRetriesOnNetworkError

      public MongoCommand<T> setRetriesOnNetworkError(int retriesOnNetworkError)
    • getSleepBetweenErrorRetries

      public int getSleepBetweenErrorRetries()
    • setSleepBetweenErrorRetries

      public MongoCommand<T> setSleepBetweenErrorRetries(int sleepBetweenErrorRetries)
    • getDefaultBatchSize

      public int getDefaultBatchSize()
    • setDefaultBatchSize

      public MongoCommand<T> setDefaultBatchSize(int defaultBatchSize)
    • getConnection

      public MongoConnection getConnection()
    • setConnection

      public MongoCommand<T> setConnection(MongoConnection connection)
    • getDb

      public String getDb()
    • getMetaData

      public Map<String,Object> 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

      public MongoCommand<T> setMetaData(Map<String,Object> metaData)
    • setMetaData

      public MongoCommand<T> setMetaData(String key, Object value)
    • setDb

      public T setDb(String db)
    • getColl

      public String getColl()
    • setColl

      public T setColl(String coll)
    • getComment

      public String getComment()
    • setComment

      public T setComment(String c)
    • fromMap

      public T fromMap(Map<String,Object> m)
    • asMap

      public Map<String,Object> asMap()
    • clear

      public void clear()
    • getCommandName

      public abstract String getCommandName()
    • executeAsync

      public int executeAsync() throws MorphiumDriverException
      Throws:
      MorphiumDriverException