Class BrokerHealthCheckService
java.lang.Object
io.camunda.zeebe.scheduler.Actor
io.camunda.zeebe.broker.system.monitoring.BrokerHealthCheckService
- All Implemented Interfaces:
PartitionRaftListener,AsyncClosable,ConcurrencyControl,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class io.camunda.zeebe.scheduler.Actor
Actor.ActorBuilder -
Field Summary
Fields inherited from class io.camunda.zeebe.scheduler.Actor
actor, ACTOR_PROP_NAME, ACTOR_PROP_PARTITION_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()booleanbooleanprotected voidvoidonBecameRaftFollower(int partitionId, long term) Is called by theZeebePartitionon starting to become partition follower.voidonBecameRaftLeader(int partitionId, long term) Is called by theZeebePartitionon starting to become partition leader.voidregisterBootstrapPartitions(Collection<PartitionMetadata> partitions) voidregisterMonitoredPartition(int partitionId, HealthMonitorable partition) voidremoveMonitoredPartition(int partitionId) voidMethods inherited from class io.camunda.zeebe.scheduler.Actor
buildActorName, call, close, closeAsync, createContext, getContext, handleFailure, isActorClosed, newActor, onActorClosed, onActorCloseRequested, onActorClosing, onActorFailed, onActorStarting, run, runOnCompletion, schedule, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.scheduler.ConcurrencyControl
createCompletedFuture, createFuture
-
Constructor Details
-
BrokerHealthCheckService
-
-
Method Details
-
registerBootstrapPartitions
-
onBecameRaftFollower
public void onBecameRaftFollower(int partitionId, long term) Description copied from interface:PartitionRaftListenerIs called by theZeebePartitionon starting to become partition follower. This is called before the installation starts, but after the node became already follower on raft level.- Specified by:
onBecameRaftFollowerin interfacePartitionRaftListener- Parameters:
partitionId- the corresponding partition idterm- the current term
-
onBecameRaftLeader
public void onBecameRaftLeader(int partitionId, long term) Description copied from interface:PartitionRaftListenerIs called by theZeebePartitionon starting to become partition leader. This is called before the installation starts, but after the node became already leader on raft level.- Specified by:
onBecameRaftLeaderin interfacePartitionRaftListener- Parameters:
partitionId- the corresponding partition idterm- the current term
-
getName
-
onActorStarted
protected void onActorStarted()- Overrides:
onActorStartedin classActor
-
registerMonitoredPartition
-
removeMonitoredPartition
public void removeMonitoredPartition(int partitionId) -
isBrokerHealthy
public boolean isBrokerHealthy() -
setBrokerStarted
public void setBrokerStarted() -
isBrokerStarted
public boolean isBrokerStarted()
-