Class FollowRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ccr.FollowRequest
- All Implemented Interfaces:
JsonpSerializable
Create a follower. Create a cross-cluster replication follower index that
follows a specific leader index. When the API returns, the follower index
exists and cross-cluster replication starts replicating operations from the
leader index to the follower index.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<FollowRequest>Json deserializer forFollowRequeststatic final Endpoint<FollowRequest,FollowResponse, ErrorResponse> Endpoint "ccr.follow". -
Method Summary
Modifier and TypeMethodDescriptionfinal StringIf the leader index is part of a data stream, the name to which the local data stream for the followed index should be renamed.final Stringindex()Required - The name of the follower index.final StringRequired - The name of the index in the leader cluster to follow.final TimePeriod to wait for a connection to the master node.final LongThe maximum number of outstanding reads requests from the remote cluster.final IntegerThe maximum number of outstanding write requests on the follower.final IntegerThe maximum number of operations to pull per read from the remote cluster.final StringThe maximum size in bytes of per read of a batch of operations pulled from the remote cluster.final TimeThe maximum time to wait before retrying an operation that failed exceptionally.final IntegerThe maximum number of operations that can be queued for writing.final StringThe maximum total bytes of operations that can be queued for writing.final IntegerThe maximum number of operations per bulk write request executed on the follower.final StringThe maximum total bytes of operations per bulk write request executed on the follower.static FollowRequestfinal TimeThe maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index.final StringRequired - The remote cluster containing the leader index.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) final IndexSettingssettings()Settings to override from the leader index.protected static voidfinal WaitForActiveShardsSpecifies the number of shards to wait on being active before responding.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forFollowRequest -
_ENDPOINT
Endpoint "ccr.follow".
-
-
Method Details
-
of
-
dataStreamName
If the leader index is part of a data stream, the name to which the local data stream for the followed index should be renamed.API name:
data_stream_name -
index
Required - The name of the follower index.API name:
index -
leaderIndex
Required - The name of the index in the leader cluster to follow.API name:
leader_index -
masterTimeout
Period to wait for a connection to the master node.API name:
master_timeout -
maxOutstandingReadRequests
The maximum number of outstanding reads requests from the remote cluster.API name:
max_outstanding_read_requests -
maxOutstandingWriteRequests
The maximum number of outstanding write requests on the follower.API name:
max_outstanding_write_requests -
maxReadRequestOperationCount
The maximum number of operations to pull per read from the remote cluster.API name:
max_read_request_operation_count -
maxReadRequestSize
The maximum size in bytes of per read of a batch of operations pulled from the remote cluster.API name:
max_read_request_size -
maxRetryDelay
The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when retrying.API name:
max_retry_delay -
maxWriteBufferCount
The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be deferred until the number of queued operations goes below the limit.API name:
max_write_buffer_count -
maxWriteBufferSize
The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be deferred until the total bytes of queued operations goes below the limit.API name:
max_write_buffer_size -
maxWriteRequestOperationCount
The maximum number of operations per bulk write request executed on the follower.API name:
max_write_request_operation_count -
maxWriteRequestSize
The maximum total bytes of operations per bulk write request executed on the follower.API name:
max_write_request_size -
readPollTimeout
The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. Then the follower will immediately attempt to read from the leader again.API name:
read_poll_timeout -
remoteCluster
Required - The remote cluster containing the leader index.API name:
remote_cluster -
settings
Settings to override from the leader index.API name:
settings -
waitForActiveShards
Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be active. A shard must be restored from the leader index before being active. Restoring a follower shard requires transferring all the remote Lucene segment files to the follower index.API name:
wait_for_active_shards -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupFollowRequestDeserializer
-