Class ClusterRemoteSniffInfo

java.lang.Object
co.elastic.clients.elasticsearch.cluster.remote_info.ClusterRemoteSniffInfo
All Implemented Interfaces:
ClusterRemoteInfoVariant, JsonpSerializable

@JsonpDeserializable public class ClusterRemoteSniffInfo extends Object implements ClusterRemoteInfoVariant, JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • _clusterRemoteInfoKind

      public ClusterRemoteInfo.Kind _clusterRemoteInfoKind()
      ClusterRemoteInfo variant kind.
      Specified by:
      _clusterRemoteInfoKind in interface ClusterRemoteInfoVariant
    • connected

      public final boolean connected()
      Required - If it is true, there is at least one open connection to the remote cluster. If it is false, it means that the cluster no longer has an open connection to the remote cluster. It does not necessarily mean that the remote cluster is down or unavailable, just that at some point a connection was lost.

      API name: connected

    • maxConnectionsPerCluster

      public final int maxConnectionsPerCluster()
      Required - The maximum number of connections maintained for the remote cluster when sniff mode is configured.

      API name: max_connections_per_cluster

    • numNodesConnected

      public final long numNodesConnected()
      Required - The number of connected nodes in the remote cluster when sniff mode is configured.

      API name: num_nodes_connected

    • initialConnectTimeout

      public final Time initialConnectTimeout()
      Required - The initial connect timeout for remote cluster connections.

      API name: initial_connect_timeout

    • skipUnavailable

      public final boolean skipUnavailable()
      Required - If true, cross-cluster search skips the remote cluster when its nodes are unavailable during the search and ignores errors returned by the remote cluster.

      API name: skip_unavailable

    • seeds

      public final List<String> seeds()
      Required - The initial seed transport addresses of the remote cluster when sniff mode is configured.

      API name: seeds

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupClusterRemoteSniffInfoDeserializer

      protected static void setupClusterRemoteSniffInfoDeserializer(ObjectDeserializer<ClusterRemoteSniffInfo.Builder> op)