Class BrokerHealthCheckService

java.lang.Object
io.camunda.zeebe.scheduler.Actor
io.camunda.zeebe.broker.system.monitoring.BrokerHealthCheckService
All Implemented Interfaces:
PartitionRaftListener, AsyncClosable, ConcurrencyControl, AutoCloseable

public final class BrokerHealthCheckService extends Actor implements PartitionRaftListener
  • Constructor Details

    • BrokerHealthCheckService

      public BrokerHealthCheckService(BrokerInfo localBroker)
  • Method Details

    • registerBootstrapPartitions

      public void registerBootstrapPartitions(Collection<PartitionMetadata> partitions)
    • onBecameRaftFollower

      public void onBecameRaftFollower(int partitionId, long term)
      Description copied from interface: PartitionRaftListener
      Is called by the ZeebePartition on starting to become partition follower. This is called before the installation starts, but after the node became already follower on raft level.
      Specified by:
      onBecameRaftFollower in interface PartitionRaftListener
      Parameters:
      partitionId - the corresponding partition id
      term - the current term
    • onBecameRaftLeader

      public void onBecameRaftLeader(int partitionId, long term)
      Description copied from interface: PartitionRaftListener
      Is called by the ZeebePartition on starting to become partition leader. This is called before the installation starts, but after the node became already leader on raft level.
      Specified by:
      onBecameRaftLeader in interface PartitionRaftListener
      Parameters:
      partitionId - the corresponding partition id
      term - the current term
    • getName

      public String getName()
      Overrides:
      getName in class Actor
    • onActorStarted

      protected void onActorStarted()
      Overrides:
      onActorStarted in class Actor
    • registerMonitoredPartition

      public void registerMonitoredPartition(int partitionId, HealthMonitorable partition)
    • removeMonitoredPartition

      public void removeMonitoredPartition(int partitionId)
    • isBrokerHealthy

      public boolean isBrokerHealthy()
    • setBrokerStarted

      public void setBrokerStarted()
    • isBrokerStarted

      public boolean isBrokerStarted()