class MongoClient extends AnyRef

Wrapper class for the MongoClient object.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MongoClient
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongoClient(underlying: mongodb.MongoClient)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addOption(option: Int): Unit

    Manipulate Network Options

    Manipulate Network Options

    See also

    com.mongodb.Bytes

    com.mongodb.Mongo

  5. def address: Imports.ServerAddress

    Gets the address of this database.

    Gets the address of this database.

    returns

    (ServerAddress) The address of the DB

  6. def allAddress: Buffer[Imports.ServerAddress]
  7. def apply(dbName: String): MongoDB
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def close(): Unit

    Closes all open connections.

    Closes all open connections. NOTE: This connection can't be reused after closing.

  11. def connectPoint: String
  12. def credentialsList: Buffer[Imports.MongoCredential]

    Gets the list of credentials that this client authenticates all connections with

    Gets the list of credentials that this client authenticates all connections with

    returns

    the list of credentials

    Since

    2.6.0

  13. def databaseNames(): Buffer[String]

    Exceptions thrown

    MongoException if problem connecting

  14. def dbNames(): Buffer[String]

    Exceptions thrown

    MongoException if problem connecting

  15. def dropDatabase(dbName: String): Unit

    Drops the database if it exists.

    Drops the database if it exists.

    dbName

    (String) the name of the database to drop

    Exceptions thrown

    MongoException if problem connecting

  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def getAddress: Imports.ServerAddress

    Gets the address of this database.

    Gets the address of this database.

    returns

    (ServerAddress) The address of the DB

  20. def getAllAddress: Buffer[Imports.ServerAddress]
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  22. def getConnectPoint: String
  23. def getCredentialsList: Buffer[Imports.MongoCredential]

    Gets the list of credentials that this client authenticates all connections with

    Gets the list of credentials that this client authenticates all connections with

    returns

    the list of credentials

    Since

    2.6.0

  24. def getDB(dbName: String): MongoDB
  25. def getDatabaseNames(): Buffer[String]

    Exceptions thrown

    MongoException if problem connecting

  26. def getOptions: Int

    Manipulate Network Options

    Manipulate Network Options

    See also

    com.mognodb.Bytes

    com.mongodb.Mongo

  27. def getReadPreference: Imports.ReadPreference

    Gets the read preference for this database.

    Gets the read preference for this database. Will be used as default for reads from any collection in this database. See the documentation for com.mongodb.ReadPreference for more information.

  28. def getWriteConcern: Imports.WriteConcern

    get the write concern for this database, which is used for writes to any collection in this database.

    get the write concern for this database, which is used for writes to any collection in this database. See the documentation for com.mongodb.WriteConcern for more info.

    See also

    http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/

    WriteConcern

  29. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  34. def options: Int

    Manipulate Network Options

    Manipulate Network Options

    See also

    com.mognodb.Bytes

    com.mongodb.Mongo

  35. def readPreference: Imports.ReadPreference

    Gets the read preference for this database.

    Gets the read preference for this database. Will be used as default for reads from any collection in this database. See the documentation for com.mongodb.ReadPreference for more information.

  36. def readPreference_=(pref: Imports.ReadPreference): Unit

    Sets the read preference for this database.

    Sets the read preference for this database. Will be used as default for reads from any collection in this database. See the documentation for com.mongodb.ReadPreference for more information.

    pref

    Read Preference to use

  37. def resetOptions(): Unit

    Manipulate Network Options

    Manipulate Network Options

    See also

    com.mongodb.Bytes

    com.mongodb.Mongo

  38. def setReadPreference(pref: Imports.ReadPreference): Unit

    Sets the read preference for this database.

    Sets the read preference for this database. Will be used as default for reads from any collection in this database. See the documentation for com.mongodb.ReadPreference for more information.

    pref

    Read Preference to use

  39. def setWriteConcern(concern: Imports.WriteConcern): Unit

    Set the write concern for this database.

    Set the write concern for this database. Will be used for writes to any collection in this database. See the documentation for com.mongodb.WriteConcern for more info.

    concern

    (WriteConcern) The write concern to use

    See also

    WriteConcern

  40. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  41. def toString(): String
    Definition Classes
    AnyRef → Any
  42. val underlying: mongodb.MongoClient
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. def writeConcern: Imports.WriteConcern

    get the write concern for this database, which is used for writes to any collection in this database.

    get the write concern for this database, which is used for writes to any collection in this database. See the documentation for com.mongodb.WriteConcern for more info.

    See also

    http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/

    WriteConcern

  47. def writeConcern_=(concern: Imports.WriteConcern): Unit

    Set the write concern for this database.

    Set the write concern for this database. Will be used for writes to any collection in this database. See the documentation for com.mongodb.WriteConcern for more info.

    concern

    (WriteConcern) The write concern to use

    See also

    http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/

    WriteConcern

Inherited from AnyRef

Inherited from Any

Ungrouped