Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TopicPartitionInfo

A class containing leadership, replicas and ISR information for a topic partition.

Hierarchy

  • TopicPartitionInfo

Index

Constructors

constructor

Methods

getIsr

  • Set the subset of the replicas that are in sync

    Returns Node[]

getLeader

  • Set the node id of the node currently acting as a leader

    Returns Node

getPartition

  • getPartition(): number
  • Set the partition id

    Returns number

getReplicas

  • getReplicas(): Node[]
  • Set the complete set of replicas for this partition

    Returns Node[]

setIsr

  • Set the subset of the replicas that are in sync

    Parameters

    Returns TopicPartitionInfo

setLeader

  • Set the node id of the node currently acting as a leader

    Parameters

    Returns TopicPartitionInfo

setPartition

  • Set the partition id

    Parameters

    • partition: number

    Returns TopicPartitionInfo

setReplicas

  • Set the complete set of replicas for this partition

    Parameters

    Returns TopicPartitionInfo

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc