Interface LeaderMXBean

All Superinterfaces:
ZooKeeperServerMXBean
All Known Implementing Classes:
LeaderBean

public interface LeaderMXBean extends ZooKeeperServerMXBean
Leader MBean.
  • Method Details

    • getCurrentZxid

      String getCurrentZxid()
      Current zxid of cluster.
    • followerInfo

      String followerInfo()
      Returns:
      information on current followers
    • nonVotingFollowerInfo

      String nonVotingFollowerInfo()
      Returns:
      information about current non-voting followers
    • getElectionTimeTaken

      long getElectionTimeTaken()
      Returns:
      time taken for leader election in milliseconds.
    • getLastProposalSize

      int getLastProposalSize()
      Returns:
      size of latest generated proposal
    • getMinProposalSize

      int getMinProposalSize()
      Returns:
      size of smallest generated proposal
    • getMaxProposalSize

      int getMaxProposalSize()
      Returns:
      size of largest generated proposal
    • resetProposalStatistics

      void resetProposalStatistics()
      Resets statistics of proposal size (min/max/last)
    • getMaxConcurrentSnapSyncs

      int getMaxConcurrentSnapSyncs()
      Returns:
      Number of concurrent snapshots permitted to send to observers
    • setMaxConcurrentSnapSyncs

      void setMaxConcurrentSnapSyncs(int maxConcurrentSnapSyncs)
      Parameters:
      maxConcurrentSnapSyncs - Number of concurrent snapshots permitted to send to observers
    • getMaxConcurrentDiffSyncs

      int getMaxConcurrentDiffSyncs()
      Returns:
      Number of concurrent diff syncs permitted to send to observers
    • setMaxConcurrentDiffSyncs

      void setMaxConcurrentDiffSyncs(int maxConcurrentDiffSyncs)
      Parameters:
      maxConcurrentDiffSyncs - Number of concurrent diff syncs permitted to send to observers