Object/Class

com.mongodb.casbah

MongoClient

Related Docs: class MongoClient | package casbah

Permalink

object MongoClient

Wrapper object for MongoClient connections, providing the static methods the Java driver gives. Apply methods are called as MongoClient(<params>)

Since

2.5

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

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(uri: mongodb.MongoClientURI): MongoClient

    Permalink

    Connect via a com.mongodb.MongoClientURI

    Connect via a com.mongodb.MongoClientURI

    uri

    (com.mongodb.MongoClientURI)

  5. def apply(uri: MongoClientURI): MongoClient

    Permalink

    Connect via a MongoClientURI

    Connect via a MongoClientURI

    uri

    (MongoClientURI)

  6. def apply(replicaSetSeeds: List[Imports.ServerAddress], credentials: List[Imports.MongoCredential], options: Imports.MongoClientOptions): MongoClient

    Permalink

    Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default) Takes a MongoClientOptions object

    Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default) Takes a MongoClientOptions object

    replicaSetSeeds

    (List[ServerAddress]) The servers to connect to

    credentials

    (List[MongoCredential]) used to authenticate all connections

    options

    (MongoClientOptions) DB Options

    Since

    2.6

    Exceptions thrown

    MongoException if problem connecting

    See also

    CredentialsList

    MongoClientOptions

    MongoDBAddress

    ServerAddress

  7. def apply(replicaSetSeeds: List[Imports.ServerAddress], credentials: List[Imports.MongoCredential]): MongoClient

    Permalink

    Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default) Takes a MongoClientOptions object

    Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default) Takes a MongoClientOptions object

    replicaSetSeeds

    (List[ServerAddress]) The servers to connect to

    credentials

    (List[MongoCredential]) used to authenticate all connections

    Since

    2.6

    Exceptions thrown

    MongoException if problem connecting

    See also

    CredentialsList

    MongoDBAddress

    ServerAddress

  8. def apply(replicaSetSeeds: List[Imports.ServerAddress], options: Imports.MongoClientOptions): MongoClient

    Permalink

    Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default) Takes a MongoClientOptions object

    Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default) Takes a MongoClientOptions object

    replicaSetSeeds

    (List[ServerAddress]) The servers to connect to

    options

    (MongoClientOptions) DB Options

    Exceptions thrown

    MongoException if problem connecting

    See also

    MongoClientOptions

    MongoDBAddress

    ServerAddress

  9. def apply(replicaSetSeeds: List[Imports.ServerAddress]): MongoClient

    Permalink

    Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default)

    Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default)

    replicaSetSeeds

    (List[ServerAddress]) The servers to connect to

    Exceptions thrown

    MongoException if problem connecting

    See also

    MongoDBAddress

    ServerAddress

  10. def apply(addr: Imports.ServerAddress, credentials: List[Imports.MongoCredential], options: Imports.MongoClientOptions): MongoClient

    Permalink

    Creates a Mongo instance based on a (single) mongo node using a given ServerAddress and options.

    Creates a Mongo instance based on a (single) mongo node using a given ServerAddress and options.

    addr

    (ServerAddress) the DatabaseAddress

    credentials

    (List[MongoCredential]) used to authenticate all connections

    options

    (MongoClientOptions) DB Options

    Since

    2.6

    Exceptions thrown

    MongoException if problem connecting

    See also

    CredentialsList

    MongoClientOptions

    MongoDBAddress

    ServerAddress

  11. def apply(addr: Imports.ServerAddress, credentialsList: List[Imports.MongoCredential]): MongoClient

    Permalink

    Creates a Mongo instance based on a (single) mongodb node and a list of credentials

    Creates a Mongo instance based on a (single) mongodb node and a list of credentials

    addr

    (ServerAddress) the DatabaseAddress

    credentialsList

    (List[MongoCredential]) used to authenticate all connections

    Since

    2.6

    Exceptions thrown

    MongoException if problem connecting

    See also

    credentialsList

    MongoDBAddress

    ServerAddress

  12. def apply(addr: Imports.ServerAddress, options: Imports.MongoClientOptions): MongoClient

    Permalink

    Connects to a (single) mongodb node.

    Connects to a (single) mongodb node.

    addr

    (ServerAddress) the DatabaseAddress

    options

    (MongoClientOptions) DB Options

    Exceptions thrown

    MongoException if problem connecting

    See also

    MongoClientOptions

    MongoDBAddress

    ServerAddress

  13. def apply(addr: Imports.ServerAddress): MongoClient

    Permalink

    Connects to a (single) mongodb node.

    Connects to a (single) mongodb node.

    addr

    (ServerAddress) the DatabaseAddress

    Exceptions thrown

    MongoException if problem connecting

    See also

    MongoDBAddress

    ServerAddress

  14. def apply(host: String, port: Int): MongoClient

    Permalink

    Connects to a (single) mongodb node

    Connects to a (single) mongodb node

    host

    (String) server to connect to

    port

    (Int) the port on which the database is running

    Exceptions thrown

    MongoException if problem connecting

    UnknownHostException if host cannot be contacted

  15. def apply(host: String, options: Imports.MongoClientOptions): MongoClient

    Permalink

    Creates a Mongo instance based on a (single) mongodb node (default port).

    Creates a Mongo instance based on a (single) mongodb node (default port).

    host

    server to connect to in format host[:port]

    options

    default query options

    Exceptions thrown

    MongoException if problem connecting

    UnknownHostException if host cannot be contacted

  16. def apply(host: String): MongoClient

    Permalink

    Connects to a (single) mongodb node (default port)

    Connects to a (single) mongodb node (default port)

    host

    (String) server to connect to

    Exceptions thrown

    MongoException if problem connecting

    UnknownHostException if host cannot be contacted

  17. def apply(): MongoClient

    Permalink

    Default connection method - connects to default host & port

    Default connection method - connects to default host & port

    Exceptions thrown

    MongoException if problem connecting

    UnknownHostException if host cannot be contacted

  18. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  19. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

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

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

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped