Struct elasticsearch::ccr::Ccr
source · pub struct Ccr<'a> { /* private fields */ }
Expand description
Namespace client for Cross Cluster Replication APIs
Implementations
sourceimpl<'a> Ccr<'a>
impl<'a> Ccr<'a>
pub fn transport(&self) -> &Transport
sourcepub fn delete_auto_follow_pattern<'b>(
&'a self,
parts: CcrDeleteAutoFollowPatternParts<'b>
) -> CcrDeleteAutoFollowPattern<'a, 'b>
pub fn delete_auto_follow_pattern<'b>(
&'a self,
parts: CcrDeleteAutoFollowPatternParts<'b>
) -> CcrDeleteAutoFollowPattern<'a, 'b>
Ccr Delete Auto Follow Pattern API
Deletes auto-follow patterns.
sourcepub fn follow<'b>(&'a self, parts: CcrFollowParts<'b>) -> CcrFollow<'a, 'b, ()>
pub fn follow<'b>(&'a self, parts: CcrFollowParts<'b>) -> CcrFollow<'a, 'b, ()>
Creates a new follower index configured to follow the referenced leader index.
sourcepub fn follow_info<'b>(
&'a self,
parts: CcrFollowInfoParts<'b>
) -> CcrFollowInfo<'a, 'b>
pub fn follow_info<'b>(
&'a self,
parts: CcrFollowInfoParts<'b>
) -> CcrFollowInfo<'a, 'b>
Retrieves information about all follower indices, including parameters and status for each follower index
sourcepub fn follow_stats<'b>(
&'a self,
parts: CcrFollowStatsParts<'b>
) -> CcrFollowStats<'a, 'b>
pub fn follow_stats<'b>(
&'a self,
parts: CcrFollowStatsParts<'b>
) -> CcrFollowStats<'a, 'b>
Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices.
sourcepub fn forget_follower<'b>(
&'a self,
parts: CcrForgetFollowerParts<'b>
) -> CcrForgetFollower<'a, 'b, ()>
pub fn forget_follower<'b>(
&'a self,
parts: CcrForgetFollowerParts<'b>
) -> CcrForgetFollower<'a, 'b, ()>
Removes the follower retention leases from the leader.
sourcepub fn get_auto_follow_pattern<'b>(
&'a self,
parts: CcrGetAutoFollowPatternParts<'b>
) -> CcrGetAutoFollowPattern<'a, 'b>
pub fn get_auto_follow_pattern<'b>(
&'a self,
parts: CcrGetAutoFollowPatternParts<'b>
) -> CcrGetAutoFollowPattern<'a, 'b>
Ccr Get Auto Follow Pattern API
Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection.
sourcepub fn pause_auto_follow_pattern<'b>(
&'a self,
parts: CcrPauseAutoFollowPatternParts<'b>
) -> CcrPauseAutoFollowPattern<'a, 'b, ()>
pub fn pause_auto_follow_pattern<'b>(
&'a self,
parts: CcrPauseAutoFollowPatternParts<'b>
) -> CcrPauseAutoFollowPattern<'a, 'b, ()>
Ccr Pause Auto Follow Pattern API
Pauses an auto-follow pattern
sourcepub fn pause_follow<'b>(
&'a self,
parts: CcrPauseFollowParts<'b>
) -> CcrPauseFollow<'a, 'b, ()>
pub fn pause_follow<'b>(
&'a self,
parts: CcrPauseFollowParts<'b>
) -> CcrPauseFollow<'a, 'b, ()>
Pauses a follower index. The follower index will not fetch any additional operations from the leader index.
sourcepub fn put_auto_follow_pattern<'b>(
&'a self,
parts: CcrPutAutoFollowPatternParts<'b>
) -> CcrPutAutoFollowPattern<'a, 'b, ()>
pub fn put_auto_follow_pattern<'b>(
&'a self,
parts: CcrPutAutoFollowPatternParts<'b>
) -> CcrPutAutoFollowPattern<'a, 'b, ()>
Ccr Put Auto Follow Pattern API
Creates 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.
sourcepub fn resume_auto_follow_pattern<'b>(
&'a self,
parts: CcrResumeAutoFollowPatternParts<'b>
) -> CcrResumeAutoFollowPattern<'a, 'b, ()>
pub fn resume_auto_follow_pattern<'b>(
&'a self,
parts: CcrResumeAutoFollowPatternParts<'b>
) -> CcrResumeAutoFollowPattern<'a, 'b, ()>
Ccr Resume Auto Follow Pattern API
Resumes an auto-follow pattern that has been paused
sourcepub fn resume_follow<'b>(
&'a self,
parts: CcrResumeFollowParts<'b>
) -> CcrResumeFollow<'a, 'b, ()>
pub fn resume_follow<'b>(
&'a self,
parts: CcrResumeFollowParts<'b>
) -> CcrResumeFollow<'a, 'b, ()>
Resumes a follower index that has been paused
sourcepub fn stats<'b>(&'a self) -> CcrStats<'a, 'b>
pub fn stats<'b>(&'a self) -> CcrStats<'a, 'b>
Gets all stats related to cross-cluster replication.
sourcepub fn unfollow<'b>(
&'a self,
parts: CcrUnfollowParts<'b>
) -> CcrUnfollow<'a, 'b, ()>
pub fn unfollow<'b>(
&'a self,
parts: CcrUnfollowParts<'b>
) -> CcrUnfollow<'a, 'b, ()>
Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication.