Interface MirrorManager
public interface MirrorManager
A service to manage Kafka mirrors.
-
Method Summary
Modifier and TypeMethodDescriptioncreateMirror(String clusterId, String linkName, String sourceTopicName, String mirrorTopicName, Map<String, Optional<String>> configs, Optional<Short> replicationFactor) Creates a new Kafka mirror with specified replication factorfailOverMirrors(String clusterId, String linkName, Set<String> mirrorTopicNames, String mirrorTopicNamePattern, boolean validateOnly) Failover the Kafka mirrorgetMirror(String clusterId, String linkName, String mirrorTopicName, Boolean includeStateTransitionErrors) Returns a list of Kafka mirrors belonging to theLinkwith the givenclusterId,linkName, andmirrorTopicName.listMirrors(String clusterId, MirrorStatus mirrorStatus) Returns all Kafka mirrors in the cluster with the givenclusterId, and in the givenmirrorStatus.default CompletableFuture<List<Mirror>> listMirrors(String clusterId, String linkName, MirrorStatus mirrorStatus) Returns all Kafka mirrors under the link with the givenlinkName, in the cluster with the givenclusterId, and in the givenmirrorStatus.pauseMirrors(String clusterId, String linkName, Set<String> mirrorTopicNames, String mirrorTopicNamePattern, boolean validateOnly) Pause the Kafka mirrorpromoteMirrors(String clusterId, String linkName, Set<String> mirrorTopicNames, String mirrorTopicNamePattern, boolean validateOnly) Promote the Kafka mirrorresumeMirrors(String clusterId, String linkName, Set<String> mirrorTopicNames, String mirrorTopicNamePattern, boolean validateOnly) Resume the Kafka mirrorreverseAndPauseMirrors(String clusterId, String linkName, Set<String> mirrorTopicNames, String mirrorTopicNamePattern, boolean validateOnly) Reverse and Start the Kafka mirrorreverseAndStartMirrors(String clusterId, String linkName, Set<String> mirrorTopicNames, String mirrorTopicNamePattern, boolean validateOnly) Reverse and Start the Kafka mirrortruncateAndRestoreMirrors(String clusterId, String linkName, Set<String> mirrorTopicNames, String mirrorTopicNamePattern, boolean includePartitionLevelTruncationData, boolean validateOnly) Truncate and Restore the Kafka mirror
-
Method Details
-
listMirrors
Returns all Kafka mirrors in the cluster with the givenclusterId, and in the givenmirrorStatus. -
listMirrors
default CompletableFuture<List<Mirror>> listMirrors(String clusterId, String linkName, MirrorStatus mirrorStatus) Returns all Kafka mirrors under the link with the givenlinkName, in the cluster with the givenclusterId, and in the givenmirrorStatus. -
getMirror
-
createMirror
-
pauseMirrors
CompletableFuture<List<AlterMirrors>> pauseMirrors(String clusterId, String linkName, Set<String> mirrorTopicNames, String mirrorTopicNamePattern, boolean validateOnly) Pause the Kafka mirror -
resumeMirrors
CompletableFuture<List<AlterMirrors>> resumeMirrors(String clusterId, String linkName, Set<String> mirrorTopicNames, String mirrorTopicNamePattern, boolean validateOnly) Resume the Kafka mirror -
promoteMirrors
CompletableFuture<List<AlterMirrors>> promoteMirrors(String clusterId, String linkName, Set<String> mirrorTopicNames, String mirrorTopicNamePattern, boolean validateOnly) Promote the Kafka mirror -
failOverMirrors
CompletableFuture<List<AlterMirrors>> failOverMirrors(String clusterId, String linkName, Set<String> mirrorTopicNames, String mirrorTopicNamePattern, boolean validateOnly) Failover the Kafka mirror -
reverseAndStartMirrors
CompletableFuture<List<AlterMirrors>> reverseAndStartMirrors(String clusterId, String linkName, Set<String> mirrorTopicNames, String mirrorTopicNamePattern, boolean validateOnly) Reverse and Start the Kafka mirror -
reverseAndPauseMirrors
CompletableFuture<List<AlterMirrors>> reverseAndPauseMirrors(String clusterId, String linkName, Set<String> mirrorTopicNames, String mirrorTopicNamePattern, boolean validateOnly) Reverse and Start the Kafka mirror -
truncateAndRestoreMirrors
CompletableFuture<List<AlterMirrors>> truncateAndRestoreMirrors(String clusterId, String linkName, Set<String> mirrorTopicNames, String mirrorTopicNamePattern, boolean includePartitionLevelTruncationData, boolean validateOnly) Truncate and Restore the Kafka mirror
-