Class PartitionContext
- java.lang.Object
-
- io.camunda.zeebe.broker.system.partitions.PartitionContext
-
public class PartitionContext extends Object
-
-
Constructor Summary
Constructors Constructor Description PartitionContext(int nodeId, RaftPartition raftPartition, List<PartitionListener> partitionListeners, PartitionMessagingService messagingService, ActorScheduler actorScheduler, BrokerCfg brokerCfg, CommandApiService commandApiService, SnapshotStoreSupplier snapshotStoreSupplier, TypedRecordProcessorsFactory typedRecordProcessorsFactory, ExporterRepository exporterRepository, PartitionProcessingState partitionProcessingState)
-
Method Summary
-
-
-
Constructor Detail
-
PartitionContext
public PartitionContext(int nodeId, RaftPartition raftPartition, List<PartitionListener> partitionListeners, PartitionMessagingService messagingService, ActorScheduler actorScheduler, BrokerCfg brokerCfg, CommandApiService commandApiService, SnapshotStoreSupplier snapshotStoreSupplier, TypedRecordProcessorsFactory typedRecordProcessorsFactory, ExporterRepository exporterRepository, PartitionProcessingState partitionProcessingState)
-
-
Method Detail
-
getExporterDirector
public ExporterDirector getExporterDirector()
-
setExporterDirector
public void setExporterDirector(ExporterDirector exporterDirector)
-
getMetricsTimer
public ScheduledTimer getMetricsTimer()
-
setMetricsTimer
public void setMetricsTimer(ScheduledTimer metricsTimer)
-
getActor
public ActorControl getActor()
-
setActor
public void setActor(ActorControl actor)
-
getZeebeDb
public ZeebeDb getZeebeDb()
-
setZeebeDb
public void setZeebeDb(ZeebeDb zeebeDb)
-
getComponentHealthMonitor
public HealthMonitor getComponentHealthMonitor()
-
setComponentHealthMonitor
public void setComponentHealthMonitor(HealthMonitor criticalComponentsHealthMonitor)
-
getSnapshotDirector
public AsyncSnapshotDirector getSnapshotDirector()
-
setSnapshotDirector
public void setSnapshotDirector(AsyncSnapshotDirector snapshotDirector)
-
getLogDeletionService
public LogDeletionService getLogDeletionService()
-
setLogDeletionService
public void setLogDeletionService(LogDeletionService logDeletionService)
-
getSnapshotController
public StateControllerImpl getSnapshotController()
-
setSnapshotController
public void setSnapshotController(StateControllerImpl controller)
-
getSnapshotReplication
public SnapshotReplication getSnapshotReplication()
-
setSnapshotReplication
public void setSnapshotReplication(SnapshotReplication snapshotReplication)
-
getRaftLogReader
public RaftLogReader getRaftLogReader()
-
setRaftLogReader
public void setRaftLogReader(RaftLogReader raftLogReader)
-
getDeferredCommitPosition
public long getDeferredCommitPosition()
-
setDeferredCommitPosition
public void setDeferredCommitPosition(long deferredCommitPosition)
-
getAtomixLogStorage
public AtomixLogStorage getAtomixLogStorage()
-
setAtomixLogStorage
public void setAtomixLogStorage(AtomixLogStorage atomixLogStorage)
-
getStreamProcessor
public StreamProcessor getStreamProcessor()
-
setStreamProcessor
public void setStreamProcessor(StreamProcessor streamProcessor)
-
getLogStream
public LogStream getLogStream()
-
setLogStream
public void setLogStream(LogStream logStream)
-
getNodeId
public int getNodeId()
-
getPartitionId
public int getPartitionId()
-
getPartitionListeners
public List<PartitionListener> getPartitionListeners()
-
getMessagingService
public PartitionMessagingService getMessagingService()
-
getScheduler
public ActorScheduler getScheduler()
-
getBrokerCfg
public BrokerCfg getBrokerCfg()
-
getSnapshotStoreSupplier
public SnapshotStoreSupplier getSnapshotStoreSupplier()
-
getRaftPartition
public RaftPartition getRaftPartition()
-
getTypedRecordProcessorsFactory
public TypedRecordProcessorsFactory getTypedRecordProcessorsFactory()
-
getCommandApiService
public CommandApiService getCommandApiService()
-
getMaxFragmentSize
public int getMaxFragmentSize()
-
getExporterRepository
public ExporterRepository getExporterRepository()
-
setDiskSpaceAvailable
public void setDiskSpaceAvailable(boolean diskSpaceAvailable)
-
shouldProcess
public boolean shouldProcess()
-
shouldExport
public boolean shouldExport()
-
pauseProcessing
public void pauseProcessing() throws IOException- Throws:
IOException
-
resumeProcessing
public void resumeProcessing() throws IOException- Throws:
IOException
-
pauseExporting
public boolean pauseExporting() throws IOException- Throws:
IOException
-
resumeExporting
public boolean resumeExporting() throws IOException- Throws:
IOException
-
-