Packages

class EtcdDiscoveryClient extends DiscoveryClient

Linear Supertypes
DiscoveryClient, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EtcdDiscoveryClient
  2. DiscoveryClient
  3. Logging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EtcdDiscoveryClient(conf: KyuubiConf)

Type Members

  1. class DeRegisterWatcher extends Listener
  2. case class ServiceNode(path: String, lease: Long) extends Product with Serializable

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. var client: Client
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. def closeClient(): Unit

    Close the discovery client.

    Close the discovery client.

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  8. def create(path: String, mode: String, createParent: Boolean = true): String

    Create path on discovery service.

    Create path on discovery service.

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  9. def createAndGetServiceNode(conf: KyuubiConf, namespace: String, instance: String, version: Option[String] = None, external: Boolean = false): String

    Create server service node info on discovery and get the actual path.

    Create server service node info on discovery and get the actual path.

    conf

    Kyuubi config

    namespace

    the path to register instance

    instance

    server info, host:port

    version

    kyuubi version

    external

    if true, the service info will not be automatically deleted upon client's disconnect

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  10. def createClient(): Unit

    Create a discovery client.

    Create a discovery client.

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  11. def debug(message: ⇒ Any, t: Throwable): Unit
    Definition Classes
    Logging
  12. def debug(message: ⇒ Any): Unit
    Definition Classes
    Logging
  13. def delete(path: String, deleteChildren: Boolean = false): Unit

    Delete a path.

    Delete a path.

    path

    the path to be deleted

    deleteChildren

    if true, will also delete children if they exist.

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  14. def deregisterService(): Unit

    Deregister Kyuubi instance on discovery service.

    Deregister Kyuubi instance on discovery service.

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  17. def error(message: ⇒ Any): Unit
    Definition Classes
    Logging
  18. def error(message: ⇒ Any, t: Throwable): Unit
    Definition Classes
    Logging
  19. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def getAndIncrement(path: String, delta: Int = 1): Int

    Atomically get an Int number and add one

    Atomically get an Int number and add one

    path

    the path of stored data, If the path does not exist, it will be created and initialized to 0

    delta

    the increase num

    returns

    the stored data under path

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  21. def getChildren(path: String): List[String]

    Get the paths under given path.

    Get the paths under given path.

    returns

    list of path

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def getData(path: String): Array[Byte]

    Get the stored data under path.

    Get the stored data under path.

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  24. def getEngineByRefId(namespace: String, engineRefId: String): Option[(String, Int)]

    Get engine info by engine ref id from engine space.

    Get engine info by engine ref id from engine space.

    namespace

    the path to get engine ref

    engineRefId

    engine ref id

    returns

    engine host and port

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  25. def getServerHost(namespace: String): Option[(String, Int)]

    Get the engine address and port from engine space.

    Get the engine address and port from engine space.

    returns

    engine host and port

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  26. def getServiceNodesInfo(namespace: String, sizeOpt: Option[Int] = None, silent: Boolean = false): Seq[ServiceNodeInfo]

    Get service node info from server space.

    Get service node info from server space.

    namespace

    the path to get node info

    sizeOpt

    how many nodes to pick

    silent

    if true, error message will not be logged

    returns

    Service node info

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  27. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. def info(message: ⇒ Any, t: Throwable): Unit
    Definition Classes
    Logging
  29. def info(message: ⇒ Any): Unit
    Definition Classes
    Logging
  30. def initializeLoggerIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. var kvClient: KV
  33. var leaseClient: Lease
  34. var leaseTTL: Long
  35. var lockClient: Lock
  36. def logger: Logger
    Attributes
    protected
    Definition Classes
    Logging
  37. def loggerName: String
    Attributes
    protected
    Definition Classes
    Logging
  38. def monitorState(serviceDiscovery: ServiceDiscovery): Unit

    Add a monitor for serviceDiscovery.

    Add a monitor for serviceDiscovery. It is used to stop service discovery gracefully when disconnect.

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  42. def pathExists(path: String): Boolean

    Check if the path is exists.

    Check if the path is exists.

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  43. def pathNonExists(path: String): Boolean

    Check if the path non exists.

    Check if the path non exists.

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  44. def postDeregisterService(namespace: String): Boolean

    Request remove Kyuubi instance on discovery service.

    Request remove Kyuubi instance on discovery service.

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  45. def registerService(conf: KyuubiConf, namespace: String, serviceDiscovery: ServiceDiscovery, version: Option[String] = None, external: Boolean = false): Unit

    Register Kyuubi instance on discovery service.

    Register Kyuubi instance on discovery service.

    conf

    Kyuubi config

    namespace

    the path to register instance

    serviceDiscovery

    service discovery

    version

    kyuubi version

    external

    if true, the service info will not be automatically deleted upon client's disconnect

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  46. var serviceNode: ServiceNode
  47. def setData(path: String, data: Array[Byte]): Boolean

    Set the data under path.

    Set the data under path.

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
  48. def startSecretNode(createMode: String, basePath: String, initData: String, useProtection: Boolean = false): Unit

    Create a node to store engine secret.

    Create a node to store engine secret.

    createMode

    create node mode, automatically deleted or not

    basePath

    the base path for the node

    initData

    the init data to be stored

    useProtection

    if true, createBuilder with protection

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
    Annotations
    @VisibleForTesting()
  49. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  50. def toString(): String
    Definition Classes
    AnyRef → Any
  51. def tryWithLock[T](lockPath: String, timeout: Long)(f: ⇒ T): T

    The distributed lock path used to ensure only once engine being created for non-CONNECTION share level.

    The distributed lock path used to ensure only once engine being created for non-CONNECTION share level.

    timeout

    the timeout of acquiring lock, unit is ms

    Definition Classes
    EtcdDiscoveryClientDiscoveryClient
    Exceptions thrown

    KyuubiSQLException if timeout or get any exception during acquiring lock

  52. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  55. def warn(message: ⇒ Any, t: Throwable): Unit
    Definition Classes
    Logging
  56. def warn(message: ⇒ Any): Unit
    Definition Classes
    Logging

Inherited from DiscoveryClient

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped