Class ClusterLinkDescription
java.lang.Object
org.apache.kafka.clients.admin.ClusterLinkDescription
A description of a cluster that's linked.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionClusterLinkDescription(String linkName, Uuid linkId, String remoteClusterId, String localClusterId, Collection<String> topics, ClusterLinkDescription.LinkState linkState, ClusterLinkDescription.LinkMode linkMode, ClusterLinkDescription.ConnectionMode connectionMode, ClusterLinkError clusterLinkError, String linkErrorMessage) ClusterLinkDescription(String linkName, Uuid linkId, String remoteClusterId, String localClusterId, Collection<String> topics, ClusterLinkDescription.LinkState linkState, ClusterLinkDescription.LinkMode linkMode, ClusterLinkDescription.ConnectionMode connectionMode, ClusterLinkError clusterLinkError, String linkErrorMessage, int linkCoordinatorId, String linkCoordinatorHost, int linkCoordinatorPort) ClusterLinkDescription(String linkName, Uuid linkId, String remoteClusterId, String localClusterId, Collection<String> topics, ClusterLinkDescription.LinkState linkState, ClusterLinkDescription.LinkMode linkMode, ClusterLinkDescription.ConnectionMode connectionMode, ClusterLinkError clusterLinkError, String linkErrorMessage, int linkCoordinatorId, String linkCoordinatorHost, int linkCoordinatorPort, ClusterLinkDescription.LinkState remoteLinkState, ClusterLinkError remoteLinkError, String remoteLinkErrorMessage, long remoteLinkStateTimeMs) ClusterLinkDescription(String linkName, Uuid linkId, String remoteClusterId, String localClusterId, Collection<String> topics, ClusterLinkDescription.LinkState linkState, ClusterLinkDescription.LinkMode linkMode, ClusterLinkDescription.ConnectionMode connectionMode, ClusterLinkError clusterLinkError, String linkErrorMessage, int linkCoordinatorId, String linkCoordinatorHost, int linkCoordinatorPort, ClusterLinkDescription.LinkState remoteLinkState, ClusterLinkError remoteLinkError, String remoteLinkErrorMessage, long remoteLinkStateTimeMs, int linkCoordinatorPartitionId) ClusterLinkDescription(String linkName, Uuid linkId, String remoteClusterId, String localClusterId, Collection<String> topics, ClusterLinkDescription.LinkState linkState, ClusterLinkDescription.LinkMode linkMode, ClusterLinkDescription.ConnectionMode connectionMode, ClusterLinkError clusterLinkError, String linkErrorMessage, List<ClusterLinkTaskDescription> taskDescriptions, Map<org.apache.kafka.common.replica.ReplicaStatus.MirrorInfo.StateCategory, Integer> partitionStateCategoryCounts) ClusterLinkDescription(String linkName, Uuid linkId, String remoteClusterId, String localClusterId, Collection<String> topics, ClusterLinkDescription.LinkState linkState, ClusterLinkDescription.LinkMode linkMode, ClusterLinkDescription.ConnectionMode connectionMode, ClusterLinkError clusterLinkError, String linkErrorMessage, Node linkCoordinator) Creates a cluster link description. -
Method Summary
-
Constructor Details
-
ClusterLinkDescription
public ClusterLinkDescription(String linkName, Uuid linkId, String remoteClusterId, String localClusterId, Collection<String> topics, ClusterLinkDescription.LinkState linkState, ClusterLinkDescription.LinkMode linkMode, ClusterLinkDescription.ConnectionMode connectionMode, ClusterLinkError clusterLinkError, String linkErrorMessage, Node linkCoordinator) Creates a cluster link description.- Parameters:
linkName- The link name for the cluster linklinkId- The Uuid associated with the cluster linkremoteClusterId- linked cluster's ID, or null if not known.localClusterId- Local cluster id.topics- The topics that are linked with the cluster link, otherwise if null, then the topics weren't requested.linkState- The link state.linkMode- The link mode. Can be unknown if link state is failed.connectionMode- The connection mode. Can be unknown if the link state is failed.clusterLinkError- The error reason for why a link is in an error state. It's value will be NO_ERROR if the link is not in an error state.linkErrorMessage- Error message describing why a link is in an error state, if it is in fact in an error state.linkCoordinator- LinkCoordinator information for the link representing the broker id, host and port number.
-
ClusterLinkDescription
public ClusterLinkDescription(String linkName, Uuid linkId, String remoteClusterId, String localClusterId, Collection<String> topics, ClusterLinkDescription.LinkState linkState, ClusterLinkDescription.LinkMode linkMode, ClusterLinkDescription.ConnectionMode connectionMode, ClusterLinkError clusterLinkError, String linkErrorMessage) -
ClusterLinkDescription
public ClusterLinkDescription(String linkName, Uuid linkId, String remoteClusterId, String localClusterId, Collection<String> topics, ClusterLinkDescription.LinkState linkState, ClusterLinkDescription.LinkMode linkMode, ClusterLinkDescription.ConnectionMode connectionMode, ClusterLinkError clusterLinkError, String linkErrorMessage, int linkCoordinatorId, String linkCoordinatorHost, int linkCoordinatorPort) -
ClusterLinkDescription
public ClusterLinkDescription(String linkName, Uuid linkId, String remoteClusterId, String localClusterId, Collection<String> topics, ClusterLinkDescription.LinkState linkState, ClusterLinkDescription.LinkMode linkMode, ClusterLinkDescription.ConnectionMode connectionMode, ClusterLinkError clusterLinkError, String linkErrorMessage, int linkCoordinatorId, String linkCoordinatorHost, int linkCoordinatorPort, ClusterLinkDescription.LinkState remoteLinkState, ClusterLinkError remoteLinkError, String remoteLinkErrorMessage, long remoteLinkStateTimeMs) -
ClusterLinkDescription
public ClusterLinkDescription(String linkName, Uuid linkId, String remoteClusterId, String localClusterId, Collection<String> topics, ClusterLinkDescription.LinkState linkState, ClusterLinkDescription.LinkMode linkMode, ClusterLinkDescription.ConnectionMode connectionMode, ClusterLinkError clusterLinkError, String linkErrorMessage, int linkCoordinatorId, String linkCoordinatorHost, int linkCoordinatorPort, ClusterLinkDescription.LinkState remoteLinkState, ClusterLinkError remoteLinkError, String remoteLinkErrorMessage, long remoteLinkStateTimeMs, int linkCoordinatorPartitionId) -
ClusterLinkDescription
public ClusterLinkDescription(String linkName, Uuid linkId, String remoteClusterId, String localClusterId, Collection<String> topics, ClusterLinkDescription.LinkState linkState, ClusterLinkDescription.LinkMode linkMode, ClusterLinkDescription.ConnectionMode connectionMode, ClusterLinkError clusterLinkError, String linkErrorMessage, List<ClusterLinkTaskDescription> taskDescriptions, Map<org.apache.kafka.common.replica.ReplicaStatus.MirrorInfo.StateCategory, Integer> partitionStateCategoryCounts)
-
-
Method Details
-
linkName
The link name for the cluster link. -
clusterLinkId
-
remoteClusterId
-
localClusterId
-
topics
The topics that are linked with the cluster link, otherwise if empty, then the topics weren't requested. -
linkState
-
linkMode
Link mode. Can be unknown if link state is failed. -
connectionMode
Connection mode. Can be unknown if link state is failed. -
clusterLinkError
-
linkErrorMessage
-
linkCoordinatorId
public int linkCoordinatorId() -
linkCoordinatorHost
-
linkCoordinatorPort
public int linkCoordinatorPort() -
remoteLinkState
-
remoteLinkError
-
remoteLinkErrorMessage
-
remoteLinkStateTimeMs
public long remoteLinkStateTimeMs() -
taskDescriptions
-
partitionStateCategoryCounts
-
linkCoordinatorPartitionId
public int linkCoordinatorPartitionId() -
equals
-
hashCode
-
toString
-