Package io.camunda.zeebe.dynamic.config
Class ClusterConfigurationManagerService
java.lang.Object
io.camunda.zeebe.dynamic.config.ClusterConfigurationManagerService
- All Implemented Interfaces:
ClusterConfigurationUpdateNotifier,AsyncClosable
public final class ClusterConfigurationManagerService
extends Object
implements ClusterConfigurationUpdateNotifier, AsyncClosable
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.dynamic.config.ClusterConfigurationUpdateNotifier
ClusterConfigurationUpdateNotifier.ClusterConfigurationUpdateListener -
Constructor Summary
ConstructorsConstructorDescriptionClusterConfigurationManagerService(Path dataRootDirectory, ClusterCommunicationService communicationService, ClusterMembershipService memberShipService, ClusterConfigurationGossiperConfig config, boolean enablePartitionScaling) -
Method Summary
Modifier and TypeMethodDescriptionvoidRegister configuration update listener which is notified when cluster configuration is changed.voidregisterPartitionChangeExecutor(PartitionChangeExecutor partitionChangeExecutor) voidregisterTopologyChangedListener(ClusterConfigurationManager.InconsistentConfigurationListener listener) voidvoidvoidremoveUpdateListener(ClusterConfigurationUpdateNotifier.ClusterConfigurationUpdateListener listener) Removed the registered listenerstart(ActorSchedulingService actorSchedulingService, StaticConfiguration staticConfiguration) Starts ClusterConfigurationManager which initializes ClusterConfiguration
-
Constructor Details
-
ClusterConfigurationManagerService
public ClusterConfigurationManagerService(Path dataRootDirectory, ClusterCommunicationService communicationService, ClusterMembershipService memberShipService, ClusterConfigurationGossiperConfig config, boolean enablePartitionScaling)
-
-
Method Details
-
start
public ActorFuture<Void> start(ActorSchedulingService actorSchedulingService, StaticConfiguration staticConfiguration) Starts ClusterConfigurationManager which initializes ClusterConfiguration -
getClusterTopology
-
getTopologyChangeCoordinator
-
closeAsync
- Specified by:
closeAsyncin interfaceAsyncClosable
-
registerPartitionChangeExecutor
-
removePartitionChangeExecutor
public void removePartitionChangeExecutor() -
registerTopologyChangedListener
public void registerTopologyChangedListener(ClusterConfigurationManager.InconsistentConfigurationListener listener) -
removeTopologyChangedListener
public void removeTopologyChangedListener() -
addUpdateListener
public void addUpdateListener(ClusterConfigurationUpdateNotifier.ClusterConfigurationUpdateListener listener) Description copied from interface:ClusterConfigurationUpdateNotifierRegister configuration update listener which is notified when cluster configuration is changed. The listener is immediately invoked if the current configuration is not null.- Specified by:
addUpdateListenerin interfaceClusterConfigurationUpdateNotifier- Parameters:
listener- which is notified
-
removeUpdateListener
public void removeUpdateListener(ClusterConfigurationUpdateNotifier.ClusterConfigurationUpdateListener listener) Description copied from interface:ClusterConfigurationUpdateNotifierRemoved the registered listener- Specified by:
removeUpdateListenerin interfaceClusterConfigurationUpdateNotifier- Parameters:
listener- to be removed
-