Class BrokerHealthCheckService

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

public final class BrokerHealthCheckService extends Actor implements PartitionListener
  • Constructor Details

    • BrokerHealthCheckService

      public BrokerHealthCheckService(BrokerInfo localBroker)
  • Method Details

    • registerPartitionManager

      public void registerPartitionManager(PartitionManager partitionManager)
    • onBecomingFollower

      public ActorFuture<Void> onBecomingFollower(int partitionId, long term)
      Description copied from interface: PartitionListener
      Is called by the ZeebePartition on becoming partition follower after all partition installation/clean up related things are done.
      Specified by:
      onBecomingFollower in interface PartitionListener
      Parameters:
      partitionId - the corresponding partition id
      term - the current term
      Returns:
      future that should be completed by the listener
    • onBecomingLeader

      public ActorFuture<Void> onBecomingLeader(int partitionId, long term, LogStream logStream, QueryService queryService)
      Description copied from interface: PartitionListener
      Is called by the ZeebePartition on becoming partition leader after all partition installation/clean up related things are done.
      Specified by:
      onBecomingLeader in interface PartitionListener
      Parameters:
      partitionId - the corresponding partition id
      term - the current term
      logStream - the corresponding log stream
      queryService - the corresponding query service
      Returns:
      future that should be completed by the listener
    • onBecomingInactive

      public ActorFuture<Void> onBecomingInactive(int partitionId, long term)
      Description copied from interface: PartitionListener
      Is called by the ZeebePartition on becoming inactive after a Raft role change or a failed transition.
      Specified by:
      onBecomingInactive in interface PartitionListener
      Parameters:
      partitionId - the corresponding partition id
      term - the current term
      Returns:
      future that should be completed by the listener
    • 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()