Class ClusterRemoteSniffInfo.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ClusterRemoteSniffInfo.Builder>
co.elastic.clients.elasticsearch.cluster.remote_info.ClusterRemoteSniffInfo.Builder
- All Implemented Interfaces:
WithJson<ClusterRemoteSniffInfo.Builder>
,ObjectBuilder<ClusterRemoteSniffInfo>
- Enclosing class:
- ClusterRemoteSniffInfo
public static class ClusterRemoteSniffInfo.Builder
extends WithJsonObjectBuilderBase<ClusterRemoteSniffInfo.Builder>
implements ObjectBuilder<ClusterRemoteSniffInfo>
Builder for
ClusterRemoteSniffInfo
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aClusterRemoteSniffInfo
.connected
(boolean value) Required - If it istrue
, there is at least one open connection to the remote cluster.initialConnectTimeout
(Time value) Required - The initial connect timeout for remote cluster connections.Required - The initial connect timeout for remote cluster connections.maxConnectionsPerCluster
(int value) Required - The maximum number of connections maintained for the remote cluster when sniff mode is configured.numNodesConnected
(long value) Required - The number of connected nodes in the remote cluster when sniff mode is configured.Required - The initial seed transport addresses of the remote cluster when sniff mode is configured.Required - The initial seed transport addresses of the remote cluster when sniff mode is configured.protected ClusterRemoteSniffInfo.Builder
self()
skipUnavailable
(boolean value) Required - Iftrue
, cross-cluster search skips the remote cluster when its nodes are unavailable during the search and ignores errors returned by the remote cluster.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connected
Required - If it istrue
, there is at least one open connection to the remote cluster. If it isfalse
, 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
Required - The maximum number of connections maintained for the remote cluster when sniff mode is configured.API name:
max_connections_per_cluster
-
numNodesConnected
Required - The number of connected nodes in the remote cluster when sniff mode is configured.API name:
num_nodes_connected
-
initialConnectTimeout
Required - The initial connect timeout for remote cluster connections.API name:
initial_connect_timeout
-
initialConnectTimeout
public final ClusterRemoteSniffInfo.Builder initialConnectTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Required - The initial connect timeout for remote cluster connections.API name:
initial_connect_timeout
-
seeds
Required - The initial seed transport addresses of the remote cluster when sniff mode is configured.API name:
seeds
Adds all elements of
list
toseeds
. -
seeds
Required - The initial seed transport addresses of the remote cluster when sniff mode is configured.API name:
seeds
Adds one or more values to
seeds
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ClusterRemoteSniffInfo.Builder>
-
build
Builds aClusterRemoteSniffInfo
.- Specified by:
build
in interfaceObjectBuilder<ClusterRemoteSniffInfo>
- Throws:
NullPointerException
- if some of the required fields are null.
-