Struct elasticsearch::cluster::Cluster
source · [−]pub struct Cluster<'a> { /* private fields */ }
Expand description
Namespace client for Cluster APIs
Implementations
sourceimpl<'a> Cluster<'a>
impl<'a> Cluster<'a>
pub fn transport(&self) -> &Transport
sourcepub fn allocation_explain<'b>(&'a self) -> ClusterAllocationExplain<'a, 'b, ()>
pub fn allocation_explain<'b>(&'a self) -> ClusterAllocationExplain<'a, 'b, ()>
Cluster Allocation Explain API
Provides explanations for shard allocations in the cluster.
sourcepub fn delete_component_template<'b>(
&'a self,
parts: ClusterDeleteComponentTemplateParts<'b>
) -> ClusterDeleteComponentTemplate<'a, 'b>
pub fn delete_component_template<'b>(
&'a self,
parts: ClusterDeleteComponentTemplateParts<'b>
) -> ClusterDeleteComponentTemplate<'a, 'b>
Cluster Delete Component Template API
Deletes a component template
sourcepub fn delete_voting_config_exclusions<'b>(
&'a self
) -> ClusterDeleteVotingConfigExclusions<'a, 'b>
pub fn delete_voting_config_exclusions<'b>(
&'a self
) -> ClusterDeleteVotingConfigExclusions<'a, 'b>
Cluster Delete Voting Config Exclusions API
Clears cluster voting config exclusions.
sourcepub fn exists_component_template<'b>(
&'a self,
parts: ClusterExistsComponentTemplateParts<'b>
) -> ClusterExistsComponentTemplate<'a, 'b>
pub fn exists_component_template<'b>(
&'a self,
parts: ClusterExistsComponentTemplateParts<'b>
) -> ClusterExistsComponentTemplate<'a, 'b>
Cluster Exists Component Template API
Returns information about whether a particular component template exist
sourcepub fn get_component_template<'b>(
&'a self,
parts: ClusterGetComponentTemplateParts<'b>
) -> ClusterGetComponentTemplate<'a, 'b>
pub fn get_component_template<'b>(
&'a self,
parts: ClusterGetComponentTemplateParts<'b>
) -> ClusterGetComponentTemplate<'a, 'b>
Cluster Get Component Template API
Returns one or more component templates
sourcepub fn get_settings<'b>(&'a self) -> ClusterGetSettings<'a, 'b>
pub fn get_settings<'b>(&'a self) -> ClusterGetSettings<'a, 'b>
Returns cluster settings.
sourcepub fn health<'b>(
&'a self,
parts: ClusterHealthParts<'b>
) -> ClusterHealth<'a, 'b>
pub fn health<'b>(
&'a self,
parts: ClusterHealthParts<'b>
) -> ClusterHealth<'a, 'b>
Returns basic information about the health of the cluster.
sourcepub fn pending_tasks<'b>(&'a self) -> ClusterPendingTasks<'a, 'b>
pub fn pending_tasks<'b>(&'a self) -> ClusterPendingTasks<'a, 'b>
Returns a list of any cluster-level changes (e.g. create index, update mapping, allocate or fail shard) which have not yet been executed.
sourcepub fn post_voting_config_exclusions<'b>(
&'a self
) -> ClusterPostVotingConfigExclusions<'a, 'b, ()>
pub fn post_voting_config_exclusions<'b>(
&'a self
) -> ClusterPostVotingConfigExclusions<'a, 'b, ()>
Cluster Post Voting Config Exclusions API
Updates the cluster voting config exclusions by node ids or node names.
sourcepub fn put_component_template<'b>(
&'a self,
parts: ClusterPutComponentTemplateParts<'b>
) -> ClusterPutComponentTemplate<'a, 'b, ()>
pub fn put_component_template<'b>(
&'a self,
parts: ClusterPutComponentTemplateParts<'b>
) -> ClusterPutComponentTemplate<'a, 'b, ()>
Cluster Put Component Template API
Creates or updates a component template
sourcepub fn put_settings<'b>(&'a self) -> ClusterPutSettings<'a, 'b, ()>
pub fn put_settings<'b>(&'a self) -> ClusterPutSettings<'a, 'b, ()>
Updates the cluster settings.
sourcepub fn remote_info<'b>(&'a self) -> ClusterRemoteInfo<'a, 'b>
pub fn remote_info<'b>(&'a self) -> ClusterRemoteInfo<'a, 'b>
Returns the information about configured remote clusters.
sourcepub fn reroute<'b>(&'a self) -> ClusterReroute<'a, 'b, ()>
pub fn reroute<'b>(&'a self) -> ClusterReroute<'a, 'b, ()>
Allows to manually change the allocation of individual shards in the cluster.
sourcepub fn state<'b>(&'a self, parts: ClusterStateParts<'b>) -> ClusterState<'a, 'b>
pub fn state<'b>(&'a self, parts: ClusterStateParts<'b>) -> ClusterState<'a, 'b>
Returns a comprehensive information about the state of the cluster.
sourcepub fn stats<'b>(&'a self, parts: ClusterStatsParts<'b>) -> ClusterStats<'a, 'b>
pub fn stats<'b>(&'a self, parts: ClusterStatsParts<'b>) -> ClusterStats<'a, 'b>
Returns high-level overview of cluster statistics.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Cluster<'a>
impl<'a> Send for Cluster<'a>
impl<'a> Sync for Cluster<'a>
impl<'a> Unpin for Cluster<'a>
impl<'a> !UnwindSafe for Cluster<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more