@InterfaceStability.Evolving
public interface ReplicationPolicy
Modifier and Type | Method and Description |
---|---|
default String |
checkpointsTopic(String clusterAlias)
Returns the name of the checkpoints topic for given cluster alias.
|
String |
formatRemoteTopic(String sourceClusterAlias,
String topic)
Returns the remote topic name for the given topic and source cluster alias.
|
default String |
heartbeatsTopic()
Returns the name of heartbeats topic.
|
default boolean |
isCheckpointsTopic(String topic)
Returns true if the topic is a checkpoints topic.
|
default boolean |
isHeartbeatsTopic(String topic)
Returns true if the topic is a heartbeats topic
|
default boolean |
isInternalTopic(String topic)
Returns true if the topic is considered an internal topic.
|
default boolean |
isMM2InternalTopic(String topic)
Returns true if the topic is one of MirrorMaker internal topics.
|
default String |
offsetSyncsTopic(String clusterAlias)
Returns the name of the offset-syncs topic for given cluster alias.
|
default String |
originalTopic(String topic)
Returns the name of the original topic, which may have been replicated multiple hops.
|
String |
topicSource(String topic)
Returns the source cluster alias of given topic.
|
String |
upstreamTopic(String topic)
Return the name of the given topic on the source cluster.
|
String formatRemoteTopic(String sourceClusterAlias, String topic)
String topicSource(String topic)
String upstreamTopic(String topic)
Topics may be replicated multiple hops, so the immediately upstream topic may itself be a remote topic.
Returns null if the given topic is not a remote topic.
default String originalTopic(String topic)
default String heartbeatsTopic()
default String offsetSyncsTopic(String clusterAlias)
default String checkpointsTopic(String clusterAlias)
default boolean isHeartbeatsTopic(String topic)
default boolean isCheckpointsTopic(String topic)
default boolean isMM2InternalTopic(String topic)
default boolean isInternalTopic(String topic)