Options
All
  • Public
  • Public/Protected
  • All
Menu

Manages the relationship of this client with the cluster.

Hierarchy

  • ClusterService

Index

Constructors

constructor

Properties

ownerUuid

ownerUuid: string = null

The unique identifier of the owner server node. This node is responsible for resource cleanup

uuid

uuid: string = null

The unique identifier of this client instance. Assigned by owner node on authentication

Methods

addMembershipListener

  • Adds MembershipListener to listen for membership updates. There is no check for duplicate registrations, so if you register the listener twice, it will get events twice.

    Parameters

    Returns string

    The registration ID

connectToCluster

  • connectToCluster(): Promise<void>

getClientInfo

getMember

  • getMember(uuid: string): Member

getMembers

getOwnerConnection

getPossibleMemberAddresses

  • getPossibleMemberAddresses(): Promise<string[]>

getSize

  • getSize(): number

initMembershipListener

  • initMembershipListener(): Promise<void>

removeMembershipListener

  • removeMembershipListener(registrationId: string): boolean
  • Removes registered MembershipListener.

    Parameters

    • registrationId: string

    Returns boolean

    true if successfully removed, false otherwise

start

  • start(): Promise<void>

Generated using TypeDoc