pub struct Cluster<'a> { /* private fields */ }
Expand description
Namespace client for Cluster APIs
Implementations§
Source§impl<'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.