Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PartitionInfo

Information about a specific Kafka topic partition

Hierarchy

  • PartitionInfo

Index

Constructors

constructor

  • Returns PartitionInfo

  • Parameters

    Returns PartitionInfo

Methods

getInSyncReplicas

  • getInSyncReplicas(): Node[]
  • 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[]

getTopic

  • getTopic(): string
  • Set the topic name

    Returns string

setInSyncReplicas

  • Set the subset of the replicas that are in sync

    Parameters

    • inSyncReplicas: Node[]

    Returns PartitionInfo

setLeader

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

    Parameters

    Returns PartitionInfo

setPartition

  • Set the partition id

    Parameters

    • partition: number

    Returns PartitionInfo

setReplicas

  • Set the complete set of replicas for this partition

    Parameters

    Returns PartitionInfo

setTopic

  • Set the topic name

    Parameters

    • topic: string

    Returns PartitionInfo

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc