com.twitter.finagle.exp.zookeeper.connection

ConnectionManager

class ConnectionManager extends AnyRef

The connection manager is supposed to handle a connection between the client and an endpoint from the host list

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

Instance Constructors

  1. new ConnectionManager(dest: String, label: Option[String], canBeRo: Boolean, timeForPreventive: Option[Duration], timeForRoMode: Option[Duration])

Type Members

  1. type SearchMethod = (String) ⇒ Future[ServiceFactory[ReqPacket, RepPacket]]

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 addHosts(hostList: String): Unit

    Should add new hosts to the server list

    Should add new hosts to the server list

    hostList

    the hosts to add

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def close(deadline: Time): Future[Unit]

    To close connection manager, the current connexion, stop preventive search and stop rw server search.

    To close connection manager, the current connexion, stop preventive search and stop rw server search.

    returns

    a Future.Done or Exception

  10. def close(): Future[Unit]

    To close connection manager, the current connexion, stop preventive search and stop rw server search.

    To close connection manager, the current connexion, stop preventive search and stop rw server search.

    returns

    a Future.Done or Exception

  11. var connection: Option[Connection]

  12. def currentHost: Option[String]

    Return the currently connected host

    Return the currently connected host

    returns

    Some(host) or None if not connected

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def findAndConnect(): Future[Unit]

    Find a server, and connect to it, priority to RW server, then RO server and finally not RO server.

    Find a server, and connect to it, priority to RW server, then RO server and finally not RO server.

    returns

    a Future.Done or Exception

  17. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  19. def initConnectionManager(): Future[Unit]

    Initiates connection Manager on client creation.

    Initiates connection Manager on client creation.

    returns

    Future.Done or Exception

  20. val isInitiated: AtomicBoolean

  21. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  23. def newServiceFactory(server: String): ServiceFactory[ReqPacket, RepPacket]

    Creates a new service factory.

    Creates a new service factory.

    server

    the server to connect to

    returns

    a brand new service factory

  24. final def notify(): Unit

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

    Definition Classes
    AnyRef
  26. def removeAndFind(hostList: String): Future[String]

    Should remove the given hosts from the host list, if the client is connected to one of these hosts, it will find a new host and return it.

    Should remove the given hosts from the host list, if the client is connected to one of these hosts, it will find a new host and return it.

    hostList

    the hosts to remove from the current host list.

    returns

    address of an available server not included in the given host list or an Exception

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

    Definition Classes
    AnyRef
  28. def testAndConnect(host: String): Future[Unit]

    Test a server with isro request and connect request, then connect to it if testing is successful.

    Test a server with isro request and connect request, then connect to it if testing is successful.

    host

    a host to test

    returns

    Future.Done or Exception

  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