com.mongodb.casbah

MongoClient

class MongoClient extends AnyRef

Wrapper class for the MongoClient object.

Source
MongoClient.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. MongoClient
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongoClient(underlying: MongoClient)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addOption(option: Int): Unit

    Manipulate Network Options

    Manipulate Network Options

    See also

    com.mongodb.Bytes

    ,

    com.mongodb.Mongo

  7. def address: ServerAddress

    Gets the address of this database.

    Gets the address of this database.

    returns

    (ServerAddress) The address of the DB

  8. def allAddress: List[ServerAddress]

  9. def apply(dbName: String): MongoDB

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def close(): Unit

    Closes all open connections.

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

  13. def connectPoint: String

  14. def credentialsList: List[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

  15. def databaseNames: Buffer[String]

    Exceptions thrown
    MongoException

  16. def dbNames: Buffer[String]

    Exceptions thrown
    MongoException

  17. def debugString: String

  18. 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

  19. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  21. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. def getAddress(): ServerAddress

    Gets the address of this database.

    Gets the address of this database.

    returns

    (ServerAddress) The address of the DB

  23. def getAllAddress(): List[ServerAddress]

  24. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  25. def getConnectPoint(): String

  26. def getCredentialsList: List[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

  27. def getDB(dbName: String): MongoDB

  28. def getDatabaseNames(): Buffer[String]

    Exceptions thrown
    MongoException

  29. def getOptions(): Int

    Manipulate Network Options

    Manipulate Network Options

    See also

    com.mognodb.Bytes

    ,

    com.mongodb.Mongo

  30. def getReadPreference: 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 ReadPreference for more information.

  31. def getVersion(): String

  32. def getWriteConcern: 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 WriteConcern for more info.

    See also

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

    ,

    WriteConcern

  33. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  34. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  35. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  38. def options: Int

    Manipulate Network Options

    Manipulate Network Options

    See also

    com.mognodb.Bytes

    ,

    com.mongodb.Mongo

  39. def readPreference: 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 ReadPreference for more information.

  40. def readPreference_=(pref: 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 ReadPreference for more information.

  41. def resetOptions(): Unit

    Manipulate Network Options

    Manipulate Network Options

    See also

    com.mongodb.Bytes

    ,

    com.mongodb.Mongo

  42. def setReadPreference(pref: 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 ReadPreference for more information.

  43. def setWriteConcern(concern: 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 WriteConcern for more info.

    concern

    (WriteConcern) The write concern to use

    See also

    WriteConcern

  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. def toString(): String

    Definition Classes
    AnyRef → Any
  46. val underlying: MongoClient

  47. def version: String

  48. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  49. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  50. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  51. def writeConcern: 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 WriteConcern for more info.

    See also

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

    ,

    WriteConcern

  52. def writeConcern_=(concern: 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 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