Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Node

Information about a Kafka cluster node

Hierarchy

  • Node

Index

Constructors

constructor

  • Returns Node

  • Parameters

    Returns Node

Methods

getHost

  • getHost(): string
  • Set the host name for this node

    Returns string

getId

  • getId(): number
  • Set the node id of this node

    Returns number

getIdString

  • getIdString(): string
  • Set the string representation of the node id

    Returns string

getPort

  • getPort(): number
  • Set the port for this node

    Returns number

isEmpty

  • isEmpty(): boolean
  • Returns boolean

setHasRack

  • setHasRack(hasRack: boolean): Node
  • Set if this node has a defined rack

    Parameters

    • hasRack: boolean

    Returns Node

setHost

  • setHost(host: string): Node
  • Set the host name for this node

    Parameters

    • host: string

    Returns Node

setId

  • setId(id: number): Node
  • Set the node id of this node

    Parameters

    • id: number

    Returns Node

setIdString

  • setIdString(idString: string): Node
  • Set the string representation of the node id

    Parameters

    • idString: string

    Returns Node

setIsEmpty

  • setIsEmpty(isEmpty: boolean): Node
  • Set if this node is empty

    Parameters

    • isEmpty: boolean

    Returns Node

setPort

  • setPort(port: number): Node
  • Set the port for this node

    Parameters

    • port: number

    Returns Node

setRack

  • setRack(rack: string): Node
  • Set the rack for this node

    Parameters

    • rack: string

    Returns Node

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc