Class CatClient
java.lang.Object
public class CatClient extends ApiClient<CatClient>
Client for the cat namespace.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description AliasesResponsealiases(java.util.function.Function<AliasesRequest.Builder,ObjectBuilder<AliasesRequest>> fn)Shows information about currently configured aliases to indices including filter and routing infos.AliasesResponsealiases(AliasesRequest request)Shows information about currently configured aliases to indices including filter and routing infos.AllocationResponseallocation(java.util.function.Function<AllocationRequest.Builder,ObjectBuilder<AllocationRequest>> fn)Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using.AllocationResponseallocation(AllocationRequest request)Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using.CountResponsecount(java.util.function.Function<CountRequest.Builder,ObjectBuilder<CountRequest>> fn)Provides quick access to the document count of the entire cluster, or individual indices.CountResponsecount(CountRequest request)Provides quick access to the document count of the entire cluster, or individual indices.FielddataResponsefielddata(java.util.function.Function<FielddataRequest.Builder,ObjectBuilder<FielddataRequest>> fn)Shows how much heap memory is currently being used by fielddata on every data node in the cluster.FielddataResponsefielddata(FielddataRequest request)Shows how much heap memory is currently being used by fielddata on every data node in the cluster.HealthResponsehealth(java.util.function.Function<HealthRequest.Builder,ObjectBuilder<HealthRequest>> fn)Returns a concise representation of the cluster health.HealthResponsehealth(HealthRequest request)Returns a concise representation of the cluster health.HelpResponsehelp()Returns help for the Cat APIs.IndicesResponseindices(java.util.function.Function<IndicesRequest.Builder,ObjectBuilder<IndicesRequest>> fn)Returns information about indices: number of primaries and replicas, document counts, disk size, ...IndicesResponseindices(IndicesRequest request)Returns information about indices: number of primaries and replicas, document counts, disk size, ...MasterResponsemaster()Returns information about the master node.NodeAttributesResponsenodeattrs()Returns information about custom node attributes.NodesResponsenodes(java.util.function.Function<NodesRequest.Builder,ObjectBuilder<NodesRequest>> fn)Returns basic statistics about performance of cluster nodes.NodesResponsenodes(NodesRequest request)Returns basic statistics about performance of cluster nodes.PendingTasksResponsependingTasks()Returns a concise representation of the cluster pending tasks.PluginsResponseplugins()Returns information about installed plugins across nodes node.RecoveryResponserecovery(java.util.function.Function<RecoveryRequest.Builder,ObjectBuilder<RecoveryRequest>> fn)Returns information about index shard recoveries, both on-going completed.RecoveryResponserecovery(RecoveryRequest request)Returns information about index shard recoveries, both on-going completed.RepositoriesResponserepositories()Returns information about snapshot repositories registered in the cluster.SegmentsResponsesegments(java.util.function.Function<SegmentsRequest.Builder,ObjectBuilder<SegmentsRequest>> fn)Provides low-level information about the segments in the shards of an index.SegmentsResponsesegments(SegmentsRequest request)Provides low-level information about the segments in the shards of an index.ShardsResponseshards(java.util.function.Function<ShardsRequest.Builder,ObjectBuilder<ShardsRequest>> fn)Provides a detailed view of shard allocation on nodes.ShardsResponseshards(ShardsRequest request)Provides a detailed view of shard allocation on nodes.SnapshotsResponsesnapshots(java.util.function.Function<SnapshotsRequest.Builder,ObjectBuilder<SnapshotsRequest>> fn)Returns all snapshots in a specific repository.SnapshotsResponsesnapshots(SnapshotsRequest request)Returns all snapshots in a specific repository.TasksResponsetasks(java.util.function.Function<TasksRequest.Builder,ObjectBuilder<TasksRequest>> fn)Returns information about the tasks currently executing on one or more nodes in the cluster.TasksResponsetasks(TasksRequest request)Returns information about the tasks currently executing on one or more nodes in the cluster.TemplatesResponsetemplates(java.util.function.Function<TemplatesRequest.Builder,ObjectBuilder<TemplatesRequest>> fn)Returns information about existing templates.TemplatesResponsetemplates(TemplatesRequest request)Returns information about existing templates.ThreadPoolResponsethreadPool(java.util.function.Function<ThreadPoolRequest.Builder,ObjectBuilder<ThreadPoolRequest>> fn)Returns cluster-wide thread pool statistics per node.ThreadPoolResponsethreadPool(ThreadPoolRequest request)Returns cluster-wide thread pool statistics per node.CatClientwithRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)Creates a newCatClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options, inheriting existing options.CatClientwithRequestOptions(org.opensearch.client.RequestOptions options)Creates a newCatClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options.
-
Constructor Details
-
Method Details
-
aliases
Shows information about currently configured aliases to indices including filter and routing infos.- Throws:
java.io.IOException
-
aliases
public final AliasesResponse aliases(java.util.function.Function<AliasesRequest.Builder,ObjectBuilder<AliasesRequest>> fn) throws java.io.IOExceptionShows information about currently configured aliases to indices including filter and routing infos.- 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
-
allocation
Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using.- Throws:
java.io.IOException
-
allocation
public final AllocationResponse allocation(java.util.function.Function<AllocationRequest.Builder,ObjectBuilder<AllocationRequest>> fn) throws java.io.IOExceptionProvides a snapshot of how many shards are allocated to each data node and how much disk space they are using.- 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
-
count
Provides quick access to the document count of the entire cluster, or individual indices.- Throws:
java.io.IOException
-
count
public final CountResponse count(java.util.function.Function<CountRequest.Builder,ObjectBuilder<CountRequest>> fn) throws java.io.IOExceptionProvides quick access to the document count of the entire cluster, or individual 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
-
fielddata
Shows how much heap memory is currently being used by fielddata on every data node in the cluster.- Throws:
java.io.IOException
-
fielddata
public final FielddataResponse fielddata(java.util.function.Function<FielddataRequest.Builder,ObjectBuilder<FielddataRequest>> fn) throws java.io.IOExceptionShows how much heap memory is currently being used by fielddata on every data node in the cluster.- 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
-
health
Returns a concise representation of the cluster health.- Throws:
java.io.IOException
-
health
public final HealthResponse health(java.util.function.Function<HealthRequest.Builder,ObjectBuilder<HealthRequest>> fn) throws java.io.IOExceptionReturns a concise representation of the cluster health.- 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
-
help
Returns help for the Cat APIs.- Throws:
java.io.IOException
-
indices
Returns information about indices: number of primaries and replicas, document counts, disk size, ...- Throws:
java.io.IOException
-
indices
public final IndicesResponse indices(java.util.function.Function<IndicesRequest.Builder,ObjectBuilder<IndicesRequest>> fn) throws java.io.IOExceptionReturns information about indices: number of primaries and replicas, document counts, disk size, ...- 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
-
master
Returns information about the master node.- Throws:
java.io.IOException
-
nodeattrs
Returns information about custom node attributes.- Throws:
java.io.IOException
-
nodes
Returns basic statistics about performance of cluster nodes.- Throws:
java.io.IOException
-
nodes
public final NodesResponse nodes(java.util.function.Function<NodesRequest.Builder,ObjectBuilder<NodesRequest>> fn) throws java.io.IOExceptionReturns basic statistics about performance of cluster nodes.- 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
-
pendingTasks
Returns a concise representation of the cluster pending tasks.- Throws:
java.io.IOException
-
plugins
Returns information about installed plugins across nodes node.- Throws:
java.io.IOException
-
recovery
Returns information about index shard recoveries, both on-going completed.- Throws:
java.io.IOException
-
recovery
public final RecoveryResponse recovery(java.util.function.Function<RecoveryRequest.Builder,ObjectBuilder<RecoveryRequest>> fn) throws java.io.IOExceptionReturns information about index shard recoveries, both on-going completed.- 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
-
repositories
Returns information about snapshot repositories registered in the cluster.- Throws:
java.io.IOException
-
segments
Provides low-level information about the segments in the shards of an index.- Throws:
java.io.IOException
-
segments
public final SegmentsResponse segments(java.util.function.Function<SegmentsRequest.Builder,ObjectBuilder<SegmentsRequest>> fn) throws java.io.IOExceptionProvides low-level information about the segments in the shards of an 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
-
shards
Provides a detailed view of shard allocation on nodes.- Throws:
java.io.IOException
-
shards
public final ShardsResponse shards(java.util.function.Function<ShardsRequest.Builder,ObjectBuilder<ShardsRequest>> fn) throws java.io.IOExceptionProvides a detailed view of shard allocation on nodes.- 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
-
snapshots
Returns all snapshots in a specific repository.- Throws:
java.io.IOException
-
snapshots
public final SnapshotsResponse snapshots(java.util.function.Function<SnapshotsRequest.Builder,ObjectBuilder<SnapshotsRequest>> fn) throws java.io.IOExceptionReturns all snapshots in a specific repository.- 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
-
tasks
Returns information about the tasks currently executing on one or more nodes in the cluster.- Throws:
java.io.IOException
-
tasks
public final TasksResponse tasks(java.util.function.Function<TasksRequest.Builder,ObjectBuilder<TasksRequest>> fn) throws java.io.IOExceptionReturns information about the tasks currently executing on one or more nodes in the cluster.- 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
-
templates
Returns information about existing templates.- Throws:
java.io.IOException
-
templates
public final TemplatesResponse templates(java.util.function.Function<TemplatesRequest.Builder,ObjectBuilder<TemplatesRequest>> fn) throws java.io.IOExceptionReturns information about existing templates.- 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
-
threadPool
Returns cluster-wide thread pool statistics per node. By default the active, queue and rejected statistics are returned for all thread pools.- Throws:
java.io.IOException
-
threadPool
public final ThreadPoolResponse threadPool(java.util.function.Function<ThreadPoolRequest.Builder,ObjectBuilder<ThreadPoolRequest>> fn) throws java.io.IOExceptionReturns cluster-wide thread pool statistics per node. By default the active, queue and rejected statistics are returned for all thread pools.- 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
-
withRequestOptions
Creates a newCatClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options.- Specified by:
withRequestOptionsin classApiClient<CatClient>
-
withRequestOptions
public CatClient withRequestOptions(java.util.function.Function<org.opensearch.client.RequestOptions.Builder,org.opensearch.client.RequestOptions.Builder> fn)Creates a newCatClient(org.opensearch.client.base.Transport, org.opensearch.client.RequestOptions)with specific request options, inheriting existing options.- Parameters:
fn- a function taking an options builder initialized with the current request options, or initialized with default values.
-