Interface BrokerAdminService
- All Known Implementing Classes:
BrokerAdminServiceImpl
public interface BrokerAdminService
-
Method Summary
Modifier and TypeMethodDescriptionReturnsPartitionStatusof all partitions running on this broker.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.
-
Method Details
-
pauseStreamProcessing
void pauseStreamProcessing()Request a partition to pause its StreamProcessor -
resumeStreamProcessing
void resumeStreamProcessing()Request a partition to resume its StreamProcessor -
pauseExporting
void pauseExporting()Request a partition to pause exporting -
resumeExporting
void resumeExporting()Request a partition to resume exporting -
takeSnapshot
void takeSnapshot()Trigger a snapshot. Partition will attempt to take a snapshot instead of waiting for the snapshot interval. -
prepareForUpgrade
void prepareForUpgrade()Prepares 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. -
getPartitionStatus
Map<Integer,PartitionStatus> getPartitionStatus()ReturnsPartitionStatusof all partitions running on this broker.- Returns:
- a map of partition id and partition status
-