public class ClusterLinkDescription extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClusterLinkDescription.Builder |
static class |
ClusterLinkDescription.ConnectionMode |
static class |
ClusterLinkDescription.LinkMode |
static class |
ClusterLinkDescription.LinkState |
Constructor and Description |
---|
ClusterLinkDescription(String linkName,
Uuid linkId,
String remoteClusterId,
String localClusterId,
Collection<String> topics,
ClusterLinkDescription.LinkState linkState,
ClusterLinkDescription.LinkMode linkMode,
ClusterLinkDescription.ConnectionMode connectionMode)
Deprecated.
|
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(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,
Node linkCoordinator)
Creates a cluster link description.
|
Modifier and Type | Method and Description |
---|---|
ClusterLinkError |
clusterLinkError() |
Uuid |
clusterLinkId() |
ClusterLinkDescription.ConnectionMode |
connectionMode()
Connection mode.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
linkCoordinatorHost() |
int |
linkCoordinatorId() |
int |
linkCoordinatorPort() |
String |
linkErrorMessage() |
ClusterLinkDescription.LinkMode |
linkMode()
Link mode.
|
String |
linkName()
The link name for the cluster link.
|
ClusterLinkDescription.LinkState |
linkState() |
String |
localClusterId() |
String |
remoteClusterId() |
ClusterLinkError |
remoteLinkError() |
String |
remoteLinkErrorMessage() |
ClusterLinkDescription.LinkState |
remoteLinkState() |
long |
remoteLinkStateTimeMs() |
List<ClusterLinkTaskDescription> |
taskDescriptions() |
Optional<Collection<String>> |
topics()
The topics that are linked with the cluster link, otherwise if empty, then the
topics weren't requested.
|
String |
toString() |
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)
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.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)
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)
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)
@Deprecated public ClusterLinkDescription(String linkName, Uuid linkId, String remoteClusterId, String localClusterId, Collection<String> topics, ClusterLinkDescription.LinkState linkState, ClusterLinkDescription.LinkMode linkMode, ClusterLinkDescription.ConnectionMode connectionMode)
public String linkName()
public Uuid clusterLinkId()
public String remoteClusterId()
public String localClusterId()
public Optional<Collection<String>> topics()
public ClusterLinkDescription.LinkState linkState()
public ClusterLinkDescription.LinkMode linkMode()
public ClusterLinkDescription.ConnectionMode connectionMode()
public ClusterLinkError clusterLinkError()
public String linkErrorMessage()
public int linkCoordinatorId()
public String linkCoordinatorHost()
public int linkCoordinatorPort()
public ClusterLinkDescription.LinkState remoteLinkState()
public ClusterLinkError remoteLinkError()
public String remoteLinkErrorMessage()
public long remoteLinkStateTimeMs()
public List<ClusterLinkTaskDescription> taskDescriptions()