Class ElasticsearchCatClient
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchCatClient(ElasticsearchTransport transport) ElasticsearchCatClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionaliases()Get aliases.aliases(AliasesRequest request) Get aliases.final AliasesResponseGet aliases.Get shard allocation information.allocation(AllocationRequest request) Get shard allocation information.final AllocationResponseGet shard allocation information.Get component templates.Get component templates.componentTemplates(Function<ComponentTemplatesRequest.Builder, ObjectBuilder<ComponentTemplatesRequest>> fn) Get component templates.count()Get a document count.count(CountRequest request) Get a document count.final CountResponseGet a document count.Get field data cache information.fielddata(FielddataRequest request) Get field data cache information.final FielddataResponseGet field data cache information.health()Get the cluster health status.health(HealthRequest request) Get the cluster health status.final HealthResponseGet the cluster health status.help()Get CAT help.indices()Get index information.indices(IndicesRequest request) Get index information.final IndicesResponseGet index information.master()Get master node information.master(MasterRequest request) Get master node information.final MasterResponseGet master node information.Get datafeeds.mlDatafeeds(MlDatafeedsRequest request) Get datafeeds.final MlDatafeedsResponseGet datafeeds.Get data frame analytics jobs.Get data frame analytics jobs.mlDataFrameAnalytics(Function<MlDataFrameAnalyticsRequest.Builder, ObjectBuilder<MlDataFrameAnalyticsRequest>> fn) Get data frame analytics jobs.mlJobs()Get anomaly detection jobs.mlJobs(MlJobsRequest request) Get anomaly detection jobs.final MlJobsResponseGet anomaly detection jobs.Get trained models.mlTrainedModels(MlTrainedModelsRequest request) Get trained models.final MlTrainedModelsResponseGet trained models.Get node attribute information.nodeattrs(NodeattrsRequest request) Get node attribute information.final NodeattrsResponseGet node attribute information.nodes()Get node information.nodes(NodesRequest request) Get node information.final NodesResponseGet node information.Get pending task information.pendingTasks(PendingTasksRequest request) Get pending task information.final PendingTasksResponseGet pending task information.plugins()Get plugin information.plugins(PluginsRequest request) Get plugin information.final PluginsResponseGet plugin information.recovery()Get shard recovery information.recovery(RecoveryRequest request) Get shard recovery information.final RecoveryResponseGet shard recovery information.Get snapshot repository information.repositories(RepositoriesRequest request) Get snapshot repository information.final RepositoriesResponseGet snapshot repository information.segments()Get segment information.segments(SegmentsRequest request) Get segment information.final SegmentsResponseGet segment information.shards()Get shard information.shards(ShardsRequest request) Get shard information.final ShardsResponseGet shard information.Get snapshot information.snapshots(SnapshotsRequest request) Get snapshot information.final SnapshotsResponseGet snapshot information.tasks()Get task information.tasks(TasksRequest request) Get task information.final TasksResponseGet task information.Get index template information.templates(TemplatesRequest request) Get index template information.final TemplatesResponseGet index template information.Get thread pool statistics.threadPool(ThreadPoolRequest request) Get thread pool statistics.final ThreadPoolResponseGet thread pool statistics.Get transform information.transforms(TransformsRequest request) Get transform information.final TransformsResponseGet transform information.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchCatClient
-
ElasticsearchCatClient
public ElasticsearchCatClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchCatClient>
-
aliases
Get aliases.Get the cluster's index aliases, including filter and routing information. This API does not return data stream aliases.
IMPORTANT: CAT APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
aliases
public final AliasesResponse aliases(Function<AliasesRequest.Builder, ObjectBuilder<AliasesRequest>> fn) throws IOException, ElasticsearchExceptionGet aliases.Get the cluster's index aliases, including filter and routing information. This API does not return data stream aliases.
IMPORTANT: CAT APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.
- Parameters:
fn- a function that initializes a builder to create theAliasesRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
aliases
Get aliases.Get the cluster's index aliases, including filter and routing information. This API does not return data stream aliases.
IMPORTANT: CAT APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
allocation
public AllocationResponse allocation(AllocationRequest request) throws IOException, ElasticsearchException Get shard allocation information.Get a snapshot of the number of shards allocated to each data node and their disk space.
IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.
- Throws:
IOExceptionElasticsearchException- See Also:
-
allocation
public final AllocationResponse allocation(Function<AllocationRequest.Builder, ObjectBuilder<AllocationRequest>> fn) throws IOException, ElasticsearchExceptionGet shard allocation information.Get a snapshot of the number of shards allocated to each data node and their disk space.
IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.
- Parameters:
fn- a function that initializes a builder to create theAllocationRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
allocation
Get shard allocation information.Get a snapshot of the number of shards allocated to each data node and their disk space.
IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.
- Throws:
IOExceptionElasticsearchException- See Also:
-
componentTemplates
public ComponentTemplatesResponse componentTemplates(ComponentTemplatesRequest request) throws IOException, ElasticsearchException Get component templates.Get information about component templates in a cluster. Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get component template API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
componentTemplates
public final ComponentTemplatesResponse componentTemplates(Function<ComponentTemplatesRequest.Builder, ObjectBuilder<ComponentTemplatesRequest>> fn) throws IOException, ElasticsearchExceptionGet component templates.Get information about component templates in a cluster. Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get component template API.
- Parameters:
fn- a function that initializes a builder to create theComponentTemplatesRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
componentTemplates
Get component templates.Get information about component templates in a cluster. Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get component template API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
count
Get a document count.Get quick access to a document count for a data stream, an index, or an entire cluster. The document count only includes live documents, not deleted documents which have not yet been removed by the merge process.
IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the count API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
count
public final CountResponse count(Function<CountRequest.Builder, ObjectBuilder<CountRequest>> fn) throws IOException, ElasticsearchExceptionGet a document count.Get quick access to a document count for a data stream, an index, or an entire cluster. The document count only includes live documents, not deleted documents which have not yet been removed by the merge process.
IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the count API.
- Parameters:
fn- a function that initializes a builder to create theCountRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
count
Get a document count.Get quick access to a document count for a data stream, an index, or an entire cluster. The document count only includes live documents, not deleted documents which have not yet been removed by the merge process.
IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the count API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
fielddata
public FielddataResponse fielddata(FielddataRequest request) throws IOException, ElasticsearchException Get field data cache information.Get the amount of heap memory currently used by the field data cache on every data node in the cluster.
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes stats API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
fielddata
public final FielddataResponse fielddata(Function<FielddataRequest.Builder, ObjectBuilder<FielddataRequest>> fn) throws IOException, ElasticsearchExceptionGet field data cache information.Get the amount of heap memory currently used by the field data cache on every data node in the cluster.
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes stats API.
- Parameters:
fn- a function that initializes a builder to create theFielddataRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
fielddata
Get field data cache information.Get the amount of heap memory currently used by the field data cache on every data node in the cluster.
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes stats API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
health
Get the cluster health status.IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the cluster health API. This API is often used to check malfunctioning clusters. To help you track cluster health alongside log files and alerting systems, the API returns timestamps in two formats:
HH:MM:SS, which is human-readable but includes no date information;Unix epoch time, which is machine-sortable and includes date information. The latter format is useful for cluster recoveries that take multiple days. You can use the cat health API to verify cluster health across multiple nodes. You also can use the API to track the recovery of a large cluster over a longer period of time.- Throws:
IOExceptionElasticsearchException- See Also:
-
health
public final HealthResponse health(Function<HealthRequest.Builder, ObjectBuilder<HealthRequest>> fn) throws IOException, ElasticsearchExceptionGet the cluster health status.IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the cluster health API. This API is often used to check malfunctioning clusters. To help you track cluster health alongside log files and alerting systems, the API returns timestamps in two formats:
HH:MM:SS, which is human-readable but includes no date information;Unix epoch time, which is machine-sortable and includes date information. The latter format is useful for cluster recoveries that take multiple days. You can use the cat health API to verify cluster health across multiple nodes. You also can use the API to track the recovery of a large cluster over a longer period of time.- Parameters:
fn- a function that initializes a builder to create theHealthRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
health
Get the cluster health status.IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the cluster health API. This API is often used to check malfunctioning clusters. To help you track cluster health alongside log files and alerting systems, the API returns timestamps in two formats:
HH:MM:SS, which is human-readable but includes no date information;Unix epoch time, which is machine-sortable and includes date information. The latter format is useful for cluster recoveries that take multiple days. You can use the cat health API to verify cluster health across multiple nodes. You also can use the API to track the recovery of a large cluster over a longer period of time.- Throws:
IOExceptionElasticsearchException- See Also:
-
help
Get CAT help.Get help for the CAT APIs.
- Throws:
IOExceptionElasticsearchException- See Also:
-
indices
Get index information.Get high-level information about indices in a cluster, including backing indices for data streams.
Use this request to get the following information for each index in a cluster:
- shard count
- document count
- deleted document count
- primary store size
- total store size of all shards, including shard replicas
These metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents. To get an accurate count of Elasticsearch documents, use the cat count or count APIs.
CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use an index endpoint.
- Throws:
IOExceptionElasticsearchException- See Also:
-
indices
public final IndicesResponse indices(Function<IndicesRequest.Builder, ObjectBuilder<IndicesRequest>> fn) throws IOException, ElasticsearchExceptionGet index information.Get high-level information about indices in a cluster, including backing indices for data streams.
Use this request to get the following information for each index in a cluster:
- shard count
- document count
- deleted document count
- primary store size
- total store size of all shards, including shard replicas
These metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents. To get an accurate count of Elasticsearch documents, use the cat count or count APIs.
CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use an index endpoint.
- Parameters:
fn- a function that initializes a builder to create theIndicesRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
indices
Get index information.Get high-level information about indices in a cluster, including backing indices for data streams.
Use this request to get the following information for each index in a cluster:
- shard count
- document count
- deleted document count
- primary store size
- total store size of all shards, including shard replicas
These metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents. To get an accurate count of Elasticsearch documents, use the cat count or count APIs.
CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use an index endpoint.
- Throws:
IOExceptionElasticsearchException- See Also:
-
master
Get master node information.Get information about the master node, including the ID, bound IP address, and name.
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
master
public final MasterResponse master(Function<MasterRequest.Builder, ObjectBuilder<MasterRequest>> fn) throws IOException, ElasticsearchExceptionGet master node information.Get information about the master node, including the ID, bound IP address, and name.
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
- Parameters:
fn- a function that initializes a builder to create theMasterRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
master
Get master node information.Get information about the master node, including the ID, bound IP address, and name.
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
mlDataFrameAnalytics
public MlDataFrameAnalyticsResponse mlDataFrameAnalytics(MlDataFrameAnalyticsRequest request) throws IOException, ElasticsearchException Get data frame analytics jobs.Get configuration and usage information about data frame analytics jobs.
IMPORTANT: CAT APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get data frame analytics jobs statistics API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
mlDataFrameAnalytics
public final MlDataFrameAnalyticsResponse mlDataFrameAnalytics(Function<MlDataFrameAnalyticsRequest.Builder, ObjectBuilder<MlDataFrameAnalyticsRequest>> fn) throws IOException, ElasticsearchExceptionGet data frame analytics jobs.Get configuration and usage information about data frame analytics jobs.
IMPORTANT: CAT APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get data frame analytics jobs statistics API.
- Parameters:
fn- a function that initializes a builder to create theMlDataFrameAnalyticsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
mlDataFrameAnalytics
public MlDataFrameAnalyticsResponse mlDataFrameAnalytics() throws IOException, ElasticsearchExceptionGet data frame analytics jobs.Get configuration and usage information about data frame analytics jobs.
IMPORTANT: CAT APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get data frame analytics jobs statistics API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
mlDatafeeds
public MlDatafeedsResponse mlDatafeeds(MlDatafeedsRequest request) throws IOException, ElasticsearchException Get datafeeds.Get configuration and usage information about datafeeds. This API returns a maximum of 10,000 datafeeds. If the Elasticsearch security features are enabled, you must have
monitor_ml,monitor,manage_ml, ormanagecluster privileges to use this API.IMPORTANT: CAT APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get datafeed statistics API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
mlDatafeeds
public final MlDatafeedsResponse mlDatafeeds(Function<MlDatafeedsRequest.Builder, ObjectBuilder<MlDatafeedsRequest>> fn) throws IOException, ElasticsearchExceptionGet datafeeds.Get configuration and usage information about datafeeds. This API returns a maximum of 10,000 datafeeds. If the Elasticsearch security features are enabled, you must have
monitor_ml,monitor,manage_ml, ormanagecluster privileges to use this API.IMPORTANT: CAT APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get datafeed statistics API.
- Parameters:
fn- a function that initializes a builder to create theMlDatafeedsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
mlDatafeeds
Get datafeeds.Get configuration and usage information about datafeeds. This API returns a maximum of 10,000 datafeeds. If the Elasticsearch security features are enabled, you must have
monitor_ml,monitor,manage_ml, ormanagecluster privileges to use this API.IMPORTANT: CAT APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get datafeed statistics API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
mlJobs
Get anomaly detection jobs.Get configuration and usage information for anomaly detection jobs. This API returns a maximum of 10,000 jobs. If the Elasticsearch security features are enabled, you must have
monitor_ml,monitor,manage_ml, ormanagecluster privileges to use this API.IMPORTANT: CAT APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get anomaly detection job statistics API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
mlJobs
public final MlJobsResponse mlJobs(Function<MlJobsRequest.Builder, ObjectBuilder<MlJobsRequest>> fn) throws IOException, ElasticsearchExceptionGet anomaly detection jobs.Get configuration and usage information for anomaly detection jobs. This API returns a maximum of 10,000 jobs. If the Elasticsearch security features are enabled, you must have
monitor_ml,monitor,manage_ml, ormanagecluster privileges to use this API.IMPORTANT: CAT APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get anomaly detection job statistics API.
- Parameters:
fn- a function that initializes a builder to create theMlJobsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
mlJobs
Get anomaly detection jobs.Get configuration and usage information for anomaly detection jobs. This API returns a maximum of 10,000 jobs. If the Elasticsearch security features are enabled, you must have
monitor_ml,monitor,manage_ml, ormanagecluster privileges to use this API.IMPORTANT: CAT APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get anomaly detection job statistics API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
mlTrainedModels
public MlTrainedModelsResponse mlTrainedModels(MlTrainedModelsRequest request) throws IOException, ElasticsearchException Get trained models.Get configuration and usage information about inference trained models.
IMPORTANT: CAT APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get trained models statistics API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
mlTrainedModels
public final MlTrainedModelsResponse mlTrainedModels(Function<MlTrainedModelsRequest.Builder, ObjectBuilder<MlTrainedModelsRequest>> fn) throws IOException, ElasticsearchExceptionGet trained models.Get configuration and usage information about inference trained models.
IMPORTANT: CAT APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get trained models statistics API.
- Parameters:
fn- a function that initializes a builder to create theMlTrainedModelsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
mlTrainedModels
Get trained models.Get configuration and usage information about inference trained models.
IMPORTANT: CAT APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get trained models statistics API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
nodeattrs
public NodeattrsResponse nodeattrs(NodeattrsRequest request) throws IOException, ElasticsearchException Get node attribute information.Get information about custom node attributes. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
nodeattrs
public final NodeattrsResponse nodeattrs(Function<NodeattrsRequest.Builder, ObjectBuilder<NodeattrsRequest>> fn) throws IOException, ElasticsearchExceptionGet node attribute information.Get information about custom node attributes. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
- Parameters:
fn- a function that initializes a builder to create theNodeattrsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
nodeattrs
Get node attribute information.Get information about custom node attributes. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
nodes
Get node information.Get information about the nodes in a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
nodes
public final NodesResponse nodes(Function<NodesRequest.Builder, ObjectBuilder<NodesRequest>> fn) throws IOException, ElasticsearchExceptionGet node information.Get information about the nodes in a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
- Parameters:
fn- a function that initializes a builder to create theNodesRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
nodes
Get node information.Get information about the nodes in a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
pendingTasks
public PendingTasksResponse pendingTasks(PendingTasksRequest request) throws IOException, ElasticsearchException Get pending task information.Get information about cluster-level changes that have not yet taken effect. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the pending cluster tasks API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
pendingTasks
public final PendingTasksResponse pendingTasks(Function<PendingTasksRequest.Builder, ObjectBuilder<PendingTasksRequest>> fn) throws IOException, ElasticsearchExceptionGet pending task information.Get information about cluster-level changes that have not yet taken effect. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the pending cluster tasks API.
- Parameters:
fn- a function that initializes a builder to create thePendingTasksRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
pendingTasks
Get pending task information.Get information about cluster-level changes that have not yet taken effect. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the pending cluster tasks API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
plugins
Get plugin information.Get a list of plugins running on each node of a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
plugins
public final PluginsResponse plugins(Function<PluginsRequest.Builder, ObjectBuilder<PluginsRequest>> fn) throws IOException, ElasticsearchExceptionGet plugin information.Get a list of plugins running on each node of a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
- Parameters:
fn- a function that initializes a builder to create thePluginsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
plugins
Get plugin information.Get a list of plugins running on each node of a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
recovery
public RecoveryResponse recovery(RecoveryRequest request) throws IOException, ElasticsearchException Get shard recovery information.Get information about ongoing and completed shard recoveries. Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or syncing a replica shard from a primary shard. When a shard recovery completes, the recovered shard is available for search and indexing. For data streams, the API returns information about the stream’s backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index recovery API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
recovery
public final RecoveryResponse recovery(Function<RecoveryRequest.Builder, ObjectBuilder<RecoveryRequest>> fn) throws IOException, ElasticsearchExceptionGet shard recovery information.Get information about ongoing and completed shard recoveries. Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or syncing a replica shard from a primary shard. When a shard recovery completes, the recovered shard is available for search and indexing. For data streams, the API returns information about the stream’s backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index recovery API.
- Parameters:
fn- a function that initializes a builder to create theRecoveryRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
recovery
Get shard recovery information.Get information about ongoing and completed shard recoveries. Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or syncing a replica shard from a primary shard. When a shard recovery completes, the recovered shard is available for search and indexing. For data streams, the API returns information about the stream’s backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index recovery API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
repositories
public RepositoriesResponse repositories(RepositoriesRequest request) throws IOException, ElasticsearchException Get snapshot repository information.Get a list of snapshot repositories for a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot repository API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
repositories
public final RepositoriesResponse repositories(Function<RepositoriesRequest.Builder, ObjectBuilder<RepositoriesRequest>> fn) throws IOException, ElasticsearchExceptionGet snapshot repository information.Get a list of snapshot repositories for a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot repository API.
- Parameters:
fn- a function that initializes a builder to create theRepositoriesRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
repositories
Get snapshot repository information.Get a list of snapshot repositories for a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot repository API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
segments
public SegmentsResponse segments(SegmentsRequest request) throws IOException, ElasticsearchException Get segment information.Get low-level information about the Lucene segments in index shards. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index segments API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
segments
public final SegmentsResponse segments(Function<SegmentsRequest.Builder, ObjectBuilder<SegmentsRequest>> fn) throws IOException, ElasticsearchExceptionGet segment information.Get low-level information about the Lucene segments in index shards. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index segments API.
- Parameters:
fn- a function that initializes a builder to create theSegmentsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
segments
Get segment information.Get low-level information about the Lucene segments in index shards. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index segments API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
shards
Get shard information.Get information about the shards in a cluster. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.
- Throws:
IOExceptionElasticsearchException- See Also:
-
shards
public final ShardsResponse shards(Function<ShardsRequest.Builder, ObjectBuilder<ShardsRequest>> fn) throws IOException, ElasticsearchExceptionGet shard information.Get information about the shards in a cluster. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.
- Parameters:
fn- a function that initializes a builder to create theShardsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
shards
Get shard information.Get information about the shards in a cluster. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.
- Throws:
IOExceptionElasticsearchException- See Also:
-
snapshots
public SnapshotsResponse snapshots(SnapshotsRequest request) throws IOException, ElasticsearchException Get snapshot information.Get information about the snapshots stored in one or more repositories. A snapshot is a backup of an index or running Elasticsearch cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
snapshots
public final SnapshotsResponse snapshots(Function<SnapshotsRequest.Builder, ObjectBuilder<SnapshotsRequest>> fn) throws IOException, ElasticsearchExceptionGet snapshot information.Get information about the snapshots stored in one or more repositories. A snapshot is a backup of an index or running Elasticsearch cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot API.
- Parameters:
fn- a function that initializes a builder to create theSnapshotsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
snapshots
Get snapshot information.Get information about the snapshots stored in one or more repositories. A snapshot is a backup of an index or running Elasticsearch cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
tasks
Get task information.Get information about tasks currently running in the cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the task management API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
tasks
public final TasksResponse tasks(Function<TasksRequest.Builder, ObjectBuilder<TasksRequest>> fn) throws IOException, ElasticsearchExceptionGet task information.Get information about tasks currently running in the cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the task management API.
- Parameters:
fn- a function that initializes a builder to create theTasksRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
tasks
Get task information.Get information about tasks currently running in the cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the task management API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
templates
public TemplatesResponse templates(TemplatesRequest request) throws IOException, ElasticsearchException Get index template information.Get information about the index templates in a cluster. You can use index templates to apply index settings and field mappings to new indices at creation. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index template API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
templates
public final TemplatesResponse templates(Function<TemplatesRequest.Builder, ObjectBuilder<TemplatesRequest>> fn) throws IOException, ElasticsearchExceptionGet index template information.Get information about the index templates in a cluster. You can use index templates to apply index settings and field mappings to new indices at creation. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index template API.
- Parameters:
fn- a function that initializes a builder to create theTemplatesRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
templates
Get index template information.Get information about the index templates in a cluster. You can use index templates to apply index settings and field mappings to new indices at creation. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index template API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
threadPool
public ThreadPoolResponse threadPool(ThreadPoolRequest request) throws IOException, ElasticsearchException Get thread pool statistics.Get thread pool statistics for each node in a cluster. Returned information includes all built-in thread pools and custom thread pools. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
threadPool
public final ThreadPoolResponse threadPool(Function<ThreadPoolRequest.Builder, ObjectBuilder<ThreadPoolRequest>> fn) throws IOException, ElasticsearchExceptionGet thread pool statistics.Get thread pool statistics for each node in a cluster. Returned information includes all built-in thread pools and custom thread pools. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
- Parameters:
fn- a function that initializes a builder to create theThreadPoolRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
threadPool
Get thread pool statistics.Get thread pool statistics for each node in a cluster. Returned information includes all built-in thread pools and custom thread pools. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
transforms
public TransformsResponse transforms(TransformsRequest request) throws IOException, ElasticsearchException Get transform information.Get configuration and usage information about transforms.
CAT APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get transform statistics API.
- Throws:
IOExceptionElasticsearchException- See Also:
-
transforms
public final TransformsResponse transforms(Function<TransformsRequest.Builder, ObjectBuilder<TransformsRequest>> fn) throws IOException, ElasticsearchExceptionGet transform information.Get configuration and usage information about transforms.
CAT APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get transform statistics API.
- Parameters:
fn- a function that initializes a builder to create theTransformsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
transforms
Get transform information.Get configuration and usage information about transforms.
CAT APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get transform statistics API.
- Throws:
IOExceptionElasticsearchException- See Also:
-