com.stratio.datasource.mongodb.client

MongodbClientFactory

object MongodbClientFactory

Different client configurations to Mongodb database

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongodbClientFactory
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Client = 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def closeAll(gracefully: Boolean = true, attempts: Int = CloseAttempts): Unit

    Close all client connections on the concurrent map

    Close all client connections on the concurrent map

    gracefully

    Close the connections if is free

  9. def closeByClient(client: Client, gracefully: Boolean = true): Unit

    Close the connections that have the same client as the client param

    Close the connections that have the same client as the client param

    client

    client value for connect to MongoDb

    gracefully

    Close the connection if is free

  10. def closeByKey(clientKey: String, gracefully: Boolean = true): Unit

    Close the connections that have the same key as the clientKey param

    Close the connections that have the same key as the clientKey param

    clientKey

    key pre calculated with the connection options

    gracefully

    Close the connection if is free

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

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

    Definition Classes
    AnyRef → Any
  13. def extractValue[T](options: Map[String, Any], key: String): Option[T]

  14. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  16. def getClient(hostPort: List[ServerAddress], credentials: List[mongodb.casbah.Imports.MongoCredential] = List(), optionSSLOptions: Option[MongodbSSLOptions] = None, clientOptions: Map[String, Any] = Map()): ClientResponse

    Get or Create one client connection to MongoDb

    Get or Create one client connection to MongoDb

    hostPort

    Server addresses to connect to one MongoDb ReplicaSet or Sharded Cluster

    credentials

    Credentials to connect

    optionSSLOptions

    SSL options for secure connections

    clientOptions

    All options for the client connections

    returns

    Client connection with identifier

  17. def getClient(host: String, port: Int, user: String, database: String, password: String): ClientResponse

    Get or Create one client connection to MongoDb

    Get or Create one client connection to MongoDb

    host

    Ip or Dns to connect

    port

    Port to connect

    user

    User for credentials

    database

    Database for credentials

    password

    Password for credentials

    returns

    Client connection with identifier

  18. def getClient(host: String): ClientResponse

    Get or Create one client connection to MongoDb

    Get or Create one client connection to MongoDb

    host

    Ip or Dns to connect

    returns

    Client connection with identifier

  19. def getClientPoolSize: Int

  20. def hashCode(): Int

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

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

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

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

    Definition Classes
    AnyRef
  25. def setFreeConnectionByClient(client: Client, extendedTime: Option[Long] = None): Unit

    Set Free the connection that have the same client as the client param

    Set Free the connection that have the same client as the client param

    client

    client value for connect to MongoDb

  26. def setFreeConnectionByKey(clientKey: String, extendedTime: Option[Long] = None): Unit

    Set Free the connection that have the same key as the clientKey param

    Set Free the connection that have the same key as the clientKey param

    clientKey

    key pre calculated with the connection options

  27. def sslBuilder(optionSSLOptions: Option[MongodbSSLOptions]): Boolean

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

    Definition Classes
    AnyRef
  29. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped