Class PartitionManagerImpl
java.lang.Object
io.camunda.zeebe.broker.partitioning.PartitionManagerImpl
- All Implemented Interfaces:
PartitionManager,PartitionChangeExecutor
public final class PartitionManagerImpl
extends Object
implements PartitionManager, PartitionChangeExecutor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPartitionManagerImpl(ConcurrencyControl concurrencyControl, ActorSchedulingService actorSchedulingService, BrokerCfg brokerCfg, BrokerInfo localBroker, ClusterServices clusterServices, BrokerHealthCheckService healthCheckService, DiskSpaceUsageMonitor diskSpaceUsageMonitor, List<PartitionListener> partitionListeners, List<PartitionRaftListener> partitionRaftListeners, CommandApiService commandApiService, ExporterRepository exporterRepository, AtomixServerTransport gatewayBrokerTransport, JobStreamer jobStreamer, PartitionDistribution partitionDistribution) -
Method Summary
Modifier and TypeMethodDescriptiongetRaftPartition(int partitionId) leave(int partitionId) voidstart()stop()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.camunda.zeebe.broker.partitioning.PartitionManager
getRaftPartition, getRaftPartitionsWithMember
-
Field Details
-
GROUP_NAME
- See Also:
-
-
Constructor Details
-
PartitionManagerImpl
public PartitionManagerImpl(ConcurrencyControl concurrencyControl, ActorSchedulingService actorSchedulingService, BrokerCfg brokerCfg, BrokerInfo localBroker, ClusterServices clusterServices, BrokerHealthCheckService healthCheckService, DiskSpaceUsageMonitor diskSpaceUsageMonitor, List<PartitionListener> partitionListeners, List<PartitionRaftListener> partitionRaftListeners, CommandApiService commandApiService, ExporterRepository exporterRepository, AtomixServerTransport gatewayBrokerTransport, JobStreamer jobStreamer, PartitionDistribution partitionDistribution)
-
-
Method Details
-
start
public void start() -
stop
-
toString
-
getRaftPartition
- Specified by:
getRaftPartitionin interfacePartitionManager- Returns:
- the partition with the given id or null if partition does not exist
-
getRaftPartitions
- Specified by:
getRaftPartitionsin interfacePartitionManager- Returns:
- all known partitions
-
getZeebePartitions
- Specified by:
getZeebePartitionsin interfacePartitionManager- Returns:
- all Zeebe partitions that are managed by this broker.
-
join
- Specified by:
joinin interfacePartitionChangeExecutor
-
leave
- Specified by:
leavein interfacePartitionChangeExecutor
-