Class ElasticsearchCcrClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.ccr.ElasticsearchCcrClient
public class ElasticsearchCcrClient extends ApiClient
Client for the ccr namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchCcrClient(Transport transport) -
Method Summary
Modifier and Type Method Description DeleteAutoFollowPatternResponsedeleteAutoFollowPattern(DeleteAutoFollowPatternRequest request)Deletes auto-follow patterns.DeleteAutoFollowPatternResponsedeleteAutoFollowPattern(java.util.function.Function<DeleteAutoFollowPatternRequest.Builder,ObjectBuilder<DeleteAutoFollowPatternRequest>> fn)Deletes auto-follow patterns.FollowResponsefollow(FollowRequest request)Creates a new follower index configured to follow the referenced leader index.FollowResponsefollow(java.util.function.Function<FollowRequest.Builder,ObjectBuilder<FollowRequest>> fn)Creates a new follower index configured to follow the referenced leader index.FollowInfoResponsefollowInfo(FollowInfoRequest request)Retrieves information about all follower indices, including parameters and status for each follower indexFollowInfoResponsefollowInfo(java.util.function.Function<FollowInfoRequest.Builder,ObjectBuilder<FollowInfoRequest>> fn)Retrieves information about all follower indices, including parameters and status for each follower indexFollowStatsResponsefollowStats(FollowStatsRequest request)Retrieves follower stats.FollowStatsResponsefollowStats(java.util.function.Function<FollowStatsRequest.Builder,ObjectBuilder<FollowStatsRequest>> fn)Retrieves follower stats.ForgetFollowerResponseforgetFollower(ForgetFollowerRequest request)Removes the follower retention leases from the leader.ForgetFollowerResponseforgetFollower(java.util.function.Function<ForgetFollowerRequest.Builder,ObjectBuilder<ForgetFollowerRequest>> fn)Removes the follower retention leases from the leader.GetAutoFollowPatternResponsegetAutoFollowPattern(GetAutoFollowPatternRequest request)Gets configured auto-follow patterns.GetAutoFollowPatternResponsegetAutoFollowPattern(java.util.function.Function<GetAutoFollowPatternRequest.Builder,ObjectBuilder<GetAutoFollowPatternRequest>> fn)Gets configured auto-follow patterns.PauseAutoFollowPatternResponsepauseAutoFollowPattern(PauseAutoFollowPatternRequest request)Pauses an auto-follow patternPauseAutoFollowPatternResponsepauseAutoFollowPattern(java.util.function.Function<PauseAutoFollowPatternRequest.Builder,ObjectBuilder<PauseAutoFollowPatternRequest>> fn)Pauses an auto-follow patternPauseFollowResponsepauseFollow(PauseFollowRequest request)Pauses a follower index.PauseFollowResponsepauseFollow(java.util.function.Function<PauseFollowRequest.Builder,ObjectBuilder<PauseFollowRequest>> fn)Pauses a follower index.PutAutoFollowPatternResponseputAutoFollowPattern(PutAutoFollowPatternRequest request)Creates a new named collection of auto-follow patterns against a specified remote cluster.PutAutoFollowPatternResponseputAutoFollowPattern(java.util.function.Function<PutAutoFollowPatternRequest.Builder,ObjectBuilder<PutAutoFollowPatternRequest>> fn)Creates a new named collection of auto-follow patterns against a specified remote cluster.ResumeAutoFollowPatternResponseresumeAutoFollowPattern(ResumeAutoFollowPatternRequest request)Resumes an auto-follow pattern that has been pausedResumeAutoFollowPatternResponseresumeAutoFollowPattern(java.util.function.Function<ResumeAutoFollowPatternRequest.Builder,ObjectBuilder<ResumeAutoFollowPatternRequest>> fn)Resumes an auto-follow pattern that has been pausedResumeFollowResponseresumeFollow(ResumeFollowRequest request)Resumes a follower index that has been pausedResumeFollowResponseresumeFollow(java.util.function.Function<ResumeFollowRequest.Builder,ObjectBuilder<ResumeFollowRequest>> fn)Resumes a follower index that has been pausedStatsResponsestats()Gets all stats related to cross-cluster replication.UnfollowResponseunfollow(UnfollowRequest request)Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication.UnfollowResponseunfollow(java.util.function.Function<UnfollowRequest.Builder,ObjectBuilder<UnfollowRequest>> fn)Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication.Methods inherited from class co.elastic.clients.base.ApiClient
_transport, getDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchCcrClient
-
-
Method Details
-
deleteAutoFollowPattern
public DeleteAutoFollowPatternResponse deleteAutoFollowPattern(DeleteAutoFollowPatternRequest request) throws java.io.IOExceptionDeletes auto-follow patterns.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteAutoFollowPattern
public final DeleteAutoFollowPatternResponse deleteAutoFollowPattern(java.util.function.Function<DeleteAutoFollowPatternRequest.Builder,ObjectBuilder<DeleteAutoFollowPatternRequest>> fn) throws java.io.IOExceptionDeletes auto-follow patterns.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
follow
Creates a new follower index configured to follow the referenced leader index.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
follow
public final FollowResponse follow(java.util.function.Function<FollowRequest.Builder,ObjectBuilder<FollowRequest>> fn) throws java.io.IOExceptionCreates a new follower index configured to follow the referenced leader index.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
followInfo
Retrieves information about all follower indices, including parameters and status for each follower index- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
followInfo
public final FollowInfoResponse followInfo(java.util.function.Function<FollowInfoRequest.Builder,ObjectBuilder<FollowInfoRequest>> fn) throws java.io.IOExceptionRetrieves information about all follower indices, including parameters and status for each follower index- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
followStats
Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
followStats
public final FollowStatsResponse followStats(java.util.function.Function<FollowStatsRequest.Builder,ObjectBuilder<FollowStatsRequest>> fn) throws java.io.IOExceptionRetrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
forgetFollower
public ForgetFollowerResponse forgetFollower(ForgetFollowerRequest request) throws java.io.IOExceptionRemoves the follower retention leases from the leader.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
forgetFollower
public final ForgetFollowerResponse forgetFollower(java.util.function.Function<ForgetFollowerRequest.Builder,ObjectBuilder<ForgetFollowerRequest>> fn) throws java.io.IOExceptionRemoves the follower retention leases from the leader.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getAutoFollowPattern
public GetAutoFollowPatternResponse getAutoFollowPattern(GetAutoFollowPatternRequest request) throws java.io.IOExceptionGets configured auto-follow patterns. Returns the specified auto-follow pattern collection.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getAutoFollowPattern
public final GetAutoFollowPatternResponse getAutoFollowPattern(java.util.function.Function<GetAutoFollowPatternRequest.Builder,ObjectBuilder<GetAutoFollowPatternRequest>> fn) throws java.io.IOExceptionGets configured auto-follow patterns. Returns the specified auto-follow pattern collection.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
pauseAutoFollowPattern
public PauseAutoFollowPatternResponse pauseAutoFollowPattern(PauseAutoFollowPatternRequest request) throws java.io.IOExceptionPauses an auto-follow pattern- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
pauseAutoFollowPattern
public final PauseAutoFollowPatternResponse pauseAutoFollowPattern(java.util.function.Function<PauseAutoFollowPatternRequest.Builder,ObjectBuilder<PauseAutoFollowPatternRequest>> fn) throws java.io.IOExceptionPauses an auto-follow pattern- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
pauseFollow
Pauses a follower index. The follower index will not fetch any additional operations from the leader index.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
pauseFollow
public final PauseFollowResponse pauseFollow(java.util.function.Function<PauseFollowRequest.Builder,ObjectBuilder<PauseFollowRequest>> fn) throws java.io.IOExceptionPauses a follower index. The follower index will not fetch any additional operations from the leader index.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putAutoFollowPattern
public PutAutoFollowPatternResponse putAutoFollowPattern(PutAutoFollowPatternRequest request) throws java.io.IOExceptionCreates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putAutoFollowPattern
public final PutAutoFollowPatternResponse putAutoFollowPattern(java.util.function.Function<PutAutoFollowPatternRequest.Builder,ObjectBuilder<PutAutoFollowPatternRequest>> fn) throws java.io.IOExceptionCreates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
resumeAutoFollowPattern
public ResumeAutoFollowPatternResponse resumeAutoFollowPattern(ResumeAutoFollowPatternRequest request) throws java.io.IOExceptionResumes an auto-follow pattern that has been paused- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
resumeAutoFollowPattern
public final ResumeAutoFollowPatternResponse resumeAutoFollowPattern(java.util.function.Function<ResumeAutoFollowPatternRequest.Builder,ObjectBuilder<ResumeAutoFollowPatternRequest>> fn) throws java.io.IOExceptionResumes an auto-follow pattern that has been paused- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
resumeFollow
Resumes a follower index that has been paused- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
resumeFollow
public final ResumeFollowResponse resumeFollow(java.util.function.Function<ResumeFollowRequest.Builder,ObjectBuilder<ResumeFollowRequest>> fn) throws java.io.IOExceptionResumes a follower index that has been paused- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
stats
Gets all stats related to cross-cluster replication.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
unfollow
Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
unfollow
public final UnfollowResponse unfollow(java.util.function.Function<UnfollowRequest.Builder,ObjectBuilder<UnfollowRequest>> fn) throws java.io.IOExceptionStops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-