Class BrokerAdminServiceImpl
java.lang.Object
io.camunda.zeebe.scheduler.Actor
io.camunda.zeebe.broker.system.management.BrokerAdminServiceImpl
- All Implemented Interfaces:
BrokerAdminService,AsyncClosable,ConcurrencyControl,AutoCloseable
A service that exposes interface to control some of the core functionalities of the broker such
as * Pause stream processing * Force take a snapshot
This is intended to be used only by advanced users
-
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 TypeMethodDescriptionReturnsPartitionStatusof all partitions running on this broker.voidinjectAdminAccess(PartitionAdminAccess adminAccess) voidinjectPartitionInfoSource(List<ZeebePartition> partitions) voidRequest a partition to pause exportingvoidRequest a partition to pause its StreamProcessorvoidPrepares for upgrade by pausing stream processors and triggering snapshots.voidRequest a partition to resume exportingvoidRequest a partition to resume its StreamProcessorvoidTrigger a snapshot.Methods inherited from class io.camunda.zeebe.scheduler.Actor
buildActorName, close, closeAsync, createContext, getContext, getName, handleFailure, isActorClosed, newActor, onActorClosed, onActorCloseRequested, onActorClosing, onActorFailed, onActorStarted, 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
-
BrokerAdminServiceImpl
public BrokerAdminServiceImpl()
-
-
Method Details
-
injectAdminAccess
-
injectPartitionInfoSource
-
pauseStreamProcessing
public void pauseStreamProcessing()Description copied from interface:BrokerAdminServiceRequest a partition to pause its StreamProcessor- Specified by:
pauseStreamProcessingin interfaceBrokerAdminService
-
resumeStreamProcessing
public void resumeStreamProcessing()Description copied from interface:BrokerAdminServiceRequest a partition to resume its StreamProcessor- Specified by:
resumeStreamProcessingin interfaceBrokerAdminService
-
pauseExporting
public void pauseExporting()Description copied from interface:BrokerAdminServiceRequest a partition to pause exporting- Specified by:
pauseExportingin interfaceBrokerAdminService
-
resumeExporting
public void resumeExporting()Description copied from interface:BrokerAdminServiceRequest a partition to resume exporting- Specified by:
resumeExportingin interfaceBrokerAdminService
-
takeSnapshot
public void takeSnapshot()Description copied from interface:BrokerAdminServiceTrigger a snapshot. Partition will attempt to take a snapshot instead of waiting for the snapshot interval.- Specified by:
takeSnapshotin interfaceBrokerAdminService
-
prepareForUpgrade
public void prepareForUpgrade()Description copied from interface:BrokerAdminServicePrepares for upgrade by pausing stream processors and triggering snapshots. It is not normally required to call this before every upgrade. However, this is useful as an upgrade procedure to mitigate the effects of some known bugs.- Specified by:
prepareForUpgradein interfaceBrokerAdminService
-
getPartitionStatus
Description copied from interface:BrokerAdminServiceReturnsPartitionStatusof all partitions running on this broker.- Specified by:
getPartitionStatusin interfaceBrokerAdminService- Returns:
- a map of partition id and partition status
-