Class BrokerHealthCheckService
java.lang.Object
io.camunda.zeebe.scheduler.Actor
io.camunda.zeebe.broker.system.monitoring.BrokerHealthCheckService
- All Implemented Interfaces:
PartitionListener,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 voidonBecomingFollower(int partitionId, long term) Is called by theZeebePartitionon becoming partition follower after all partition installation/clean up related things are done.onBecomingInactive(int partitionId, long term) Is called by theZeebePartitionon becoming inactive after a Raft role change or a failed transition.onBecomingLeader(int partitionId, long term, LogStream logStream, QueryService queryService) Is called by theZeebePartitionon becoming partition leader after all partition installation/clean up related things are done.voidregisterMonitoredPartition(int partitionId, HealthMonitorable partition) voidregisterPartitionManager(PartitionManager partitionManager) voidremoveMonitoredPartition(int partitionId) voidMethods inherited from class io.camunda.zeebe.scheduler.Actor
buildActorName, close, closeAsync, createContext, getContext, handleFailure, isActorClosed, newActor, onActorClosed, onActorCloseRequested, onActorClosing, onActorFailed, onActorStarting, run, runOnCompletion, 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
-
registerPartitionManager
-
onBecomingFollower
Description copied from interface:PartitionListenerIs called by theZeebePartitionon becoming partition follower after all partition installation/clean up related things are done.- Specified by:
onBecomingFollowerin interfacePartitionListener- Parameters:
partitionId- the corresponding partition idterm- 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:PartitionListenerIs called by theZeebePartitionon becoming partition leader after all partition installation/clean up related things are done.- Specified by:
onBecomingLeaderin interfacePartitionListener- Parameters:
partitionId- the corresponding partition idterm- the current termlogStream- the corresponding log streamqueryService- the corresponding query service- Returns:
- future that should be completed by the listener
-
onBecomingInactive
Description copied from interface:PartitionListenerIs called by theZeebePartitionon becoming inactive after a Raft role change or a failed transition.- Specified by:
onBecomingInactivein interfacePartitionListener- Parameters:
partitionId- the corresponding partition idterm- the current term- Returns:
- future that should be completed by the listener
-
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()
-