Class OpenSearchCatClientBase<Self extends OpenSearchCatClientBase<Self>>
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,Self>
org.opensearch.client.opensearch.cat.OpenSearchCatClientBase<Self>
- Direct Known Subclasses:
OpenSearchCatClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public abstract class OpenSearchCatClientBase<Self extends OpenSearchCatClientBase<Self>>
extends ApiClient<OpenSearchTransport,Self>
Client for the cat namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchCatClientBase(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionfinal AliasesResponsealiases()Shows information about aliases currently configured to indexes, including filter and routing information.final AliasesResponseShows information about aliases currently configured to indexes, including filter and routing information.aliases(AliasesRequest request) Shows information about aliases currently configured to indexes, including filter and routing information.final AllocationResponseProvides a snapshot of how many shards are allocated to each data node and how much disk space they are using.final AllocationResponseProvides a snapshot of how many shards are allocated to each data node and how much disk space they are using.allocation(AllocationRequest request) Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using.final AllPitSegmentsResponseLists all active CAT point-in-time segments.final AllPitSegmentsResponseLists all active CAT point-in-time segments.allPitSegments(AllPitSegmentsRequest request) Lists all active CAT point-in-time segments.final ClusterManagerResponseReturns information about the cluster-manager node.final ClusterManagerResponseReturns information about the cluster-manager node.clusterManager(ClusterManagerRequest request) Returns information about the cluster-manager node.final CountResponsecount()Provides quick access to the document count of the entire cluster or of an individual index.final CountResponseProvides quick access to the document count of the entire cluster or of an individual index.count(CountRequest request) Provides quick access to the document count of the entire cluster or of an individual index.final FielddataResponseShows how much heap memory is currently being used by field data on every data node in the cluster.final FielddataResponseShows how much heap memory is currently being used by field data on every data node in the cluster.fielddata(FielddataRequest request) Shows how much heap memory is currently being used by field data on every data node in the cluster.final HealthResponsehealth()Returns a concise representation of the cluster health.final HealthResponseReturns a concise representation of the cluster health.health(HealthRequest request) Returns a concise representation of the cluster health.final IndicesResponseindices()Lists information related to indexes, that is, how much disk space they are using, how many shards they have, their health status, and so on.final IndicesResponseLists information related to indexes, that is, how much disk space they are using, how many shards they have, their health status, and so on.indices(IndicesRequest request) Lists information related to indexes, that is, how much disk space they are using, how many shards they have, their health status, and so on.final MasterResponsemaster()Deprecated.final MasterResponseDeprecated.master(MasterRequest request) Deprecated.final NodeattrsResponseReturns information about custom node attributes.final NodeattrsResponseReturns information about custom node attributes.nodeattrs(NodeattrsRequest request) Returns information about custom node attributes.final NodesResponsenodes()Returns basic statistics about the performance of cluster nodes.final NodesResponseReturns basic statistics about the performance of cluster nodes.nodes(NodesRequest request) Returns basic statistics about the performance of cluster nodes.final PendingTasksResponseReturns a concise representation of the cluster's pending tasks.final PendingTasksResponseReturns a concise representation of the cluster's pending tasks.pendingTasks(PendingTasksRequest request) Returns a concise representation of the cluster's pending tasks.final PitSegmentsResponseLists one or several CAT point-in-time segments.pitSegments(PitSegmentsRequest request) Lists one or several CAT point-in-time segments.final PluginsResponseplugins()Returns information about the names, components, and versions of the installed plugins.final PluginsResponseReturns information about the names, components, and versions of the installed plugins.plugins(PluginsRequest request) Returns information about the names, components, and versions of the installed plugins.final RecoveryResponserecovery()Returns all completed and ongoing index and shard recoveries.final RecoveryResponseReturns all completed and ongoing index and shard recoveries.recovery(RecoveryRequest request) Returns all completed and ongoing index and shard recoveries.final RepositoriesResponseReturns information about all snapshot repositories for a cluster.final RepositoriesResponseReturns information about all snapshot repositories for a cluster.repositories(RepositoriesRequest request) Returns information about all snapshot repositories for a cluster.Returns information about active and last-completed segment replication events on each replica shard, including related shard-level metrics.segmentReplication(Function<SegmentReplicationRequest.Builder, ObjectBuilder<SegmentReplicationRequest>> fn) Returns information about active and last-completed segment replication events on each replica shard, including related shard-level metrics.Returns information about active and last-completed segment replication events on each replica shard, including related shard-level metrics.final SegmentsResponsesegments()Provides low-level information about the segments in the shards of an index.final SegmentsResponseProvides low-level information about the segments in the shards of an index.segments(SegmentsRequest request) Provides low-level information about the segments in the shards of an index.final ShardsResponseshards()Lists the states of all primary and replica shards and how they are distributed.final ShardsResponseLists the states of all primary and replica shards and how they are distributed.shards(ShardsRequest request) Lists the states of all primary and replica shards and how they are distributed.final SnapshotsResponseLists all of the snapshots stored in a specific repository.final SnapshotsResponseLists all of the snapshots stored in a specific repository.snapshots(SnapshotsRequest request) Lists all of the snapshots stored in a specific repository.final TasksResponsetasks()Lists the progress of all tasks currently running on the cluster.final TasksResponseLists the progress of all tasks currently running on the cluster.tasks(TasksRequest request) Lists the progress of all tasks currently running on the cluster.final TemplatesResponseLists the names, patterns, order numbers, and version numbers of index templates.final TemplatesResponseLists the names, patterns, order numbers, and version numbers of index templates.templates(TemplatesRequest request) Lists the names, patterns, order numbers, and version numbers of index templates.final ThreadPoolResponseReturns cluster-wide thread pool statistics per node.final ThreadPoolResponseReturns cluster-wide thread pool statistics per node.threadPool(ThreadPoolRequest request) Returns cluster-wide thread pool statistics per node.Methods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
OpenSearchCatClientBase
public OpenSearchCatClientBase(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
aliases
Shows information about aliases currently configured to indexes, including filter and routing information.- Throws:
IOExceptionOpenSearchException
-
aliases
public final AliasesResponse aliases(Function<AliasesRequest.Builder, ObjectBuilder<AliasesRequest>> fn) throws IOException, OpenSearchExceptionShows information about aliases currently configured to indexes, including filter and routing information.- Parameters:
fn- a function that initializes a builder to create theAliasesRequest- Throws:
IOExceptionOpenSearchException
-
aliases
Shows information about aliases currently configured to indexes, including filter and routing information.- Throws:
IOExceptionOpenSearchException
-
allPitSegments
public AllPitSegmentsResponse allPitSegments(AllPitSegmentsRequest request) throws IOException, OpenSearchException Lists all active CAT point-in-time segments.- Throws:
IOExceptionOpenSearchException
-
allPitSegments
public final AllPitSegmentsResponse allPitSegments(Function<AllPitSegmentsRequest.Builder, ObjectBuilder<AllPitSegmentsRequest>> fn) throws IOException, OpenSearchExceptionLists all active CAT point-in-time segments.- Parameters:
fn- a function that initializes a builder to create theAllPitSegmentsRequest- Throws:
IOExceptionOpenSearchException
-
allPitSegments
Lists all active CAT point-in-time segments.- Throws:
IOExceptionOpenSearchException
-
allocation
public AllocationResponse allocation(AllocationRequest request) throws IOException, OpenSearchException Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using.- Throws:
IOExceptionOpenSearchException
-
allocation
public final AllocationResponse allocation(Function<AllocationRequest.Builder, ObjectBuilder<AllocationRequest>> fn) throws IOException, OpenSearchExceptionProvides 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 builder to create theAllocationRequest- Throws:
IOExceptionOpenSearchException
-
allocation
Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using.- Throws:
IOExceptionOpenSearchException
-
clusterManager
public ClusterManagerResponse clusterManager(ClusterManagerRequest request) throws IOException, OpenSearchException Returns information about the cluster-manager node.- Throws:
IOExceptionOpenSearchException
-
clusterManager
public final ClusterManagerResponse clusterManager(Function<ClusterManagerRequest.Builder, ObjectBuilder<ClusterManagerRequest>> fn) throws IOException, OpenSearchExceptionReturns information about the cluster-manager node.- Parameters:
fn- a function that initializes a builder to create theClusterManagerRequest- Throws:
IOExceptionOpenSearchException
-
clusterManager
Returns information about the cluster-manager node.- Throws:
IOExceptionOpenSearchException
-
count
Provides quick access to the document count of the entire cluster or of an individual index.- Throws:
IOExceptionOpenSearchException
-
count
public final CountResponse count(Function<CountRequest.Builder, ObjectBuilder<CountRequest>> fn) throws IOException, OpenSearchExceptionProvides quick access to the document count of the entire cluster or of an individual index.- Parameters:
fn- a function that initializes a builder to create theCountRequest- Throws:
IOExceptionOpenSearchException
-
count
Provides quick access to the document count of the entire cluster or of an individual index.- Throws:
IOExceptionOpenSearchException
-
fielddata
public FielddataResponse fielddata(FielddataRequest request) throws IOException, OpenSearchException Shows how much heap memory is currently being used by field data on every data node in the cluster.- Throws:
IOExceptionOpenSearchException
-
fielddata
public final FielddataResponse fielddata(Function<FielddataRequest.Builder, ObjectBuilder<FielddataRequest>> fn) throws IOException, OpenSearchExceptionShows how much heap memory is currently being used by field data on every data node in the cluster.- Parameters:
fn- a function that initializes a builder to create theFielddataRequest- Throws:
IOExceptionOpenSearchException
-
fielddata
Shows how much heap memory is currently being used by field data on every data node in the cluster.- Throws:
IOExceptionOpenSearchException
-
health
Returns a concise representation of the cluster health.- Throws:
IOExceptionOpenSearchException
-
health
public final HealthResponse health(Function<HealthRequest.Builder, ObjectBuilder<HealthRequest>> fn) throws IOException, OpenSearchExceptionReturns a concise representation of the cluster health.- Parameters:
fn- a function that initializes a builder to create theHealthRequest- Throws:
IOExceptionOpenSearchException
-
health
Returns a concise representation of the cluster health.- Throws:
IOExceptionOpenSearchException
-
indices
Lists information related to indexes, that is, how much disk space they are using, how many shards they have, their health status, and so on.- Throws:
IOExceptionOpenSearchException
-
indices
public final IndicesResponse indices(Function<IndicesRequest.Builder, ObjectBuilder<IndicesRequest>> fn) throws IOException, OpenSearchExceptionLists information related to indexes, that is, how much disk space they are using, how many shards they have, their health status, and so on.- Parameters:
fn- a function that initializes a builder to create theIndicesRequest- Throws:
IOExceptionOpenSearchException
-
indices
Lists information related to indexes, that is, how much disk space they are using, how many shards they have, their health status, and so on.- Throws:
IOExceptionOpenSearchException
-
master
@Deprecated public MasterResponse master(MasterRequest request) throws IOException, OpenSearchException Deprecated.Returns information about the cluster-manager node.- Throws:
IOExceptionOpenSearchException
-
master
@Deprecated public final MasterResponse master(Function<MasterRequest.Builder, ObjectBuilder<MasterRequest>> fn) throws IOException, OpenSearchExceptionDeprecated.Returns information about the cluster-manager node.- Parameters:
fn- a function that initializes a builder to create theMasterRequest- Throws:
IOExceptionOpenSearchException
-
master
Deprecated.Returns information about the cluster-manager node.- Throws:
IOExceptionOpenSearchException
-
nodeattrs
public NodeattrsResponse nodeattrs(NodeattrsRequest request) throws IOException, OpenSearchException Returns information about custom node attributes.- Throws:
IOExceptionOpenSearchException
-
nodeattrs
public final NodeattrsResponse nodeattrs(Function<NodeattrsRequest.Builder, ObjectBuilder<NodeattrsRequest>> fn) throws IOException, OpenSearchExceptionReturns information about custom node attributes.- Parameters:
fn- a function that initializes a builder to create theNodeattrsRequest- Throws:
IOExceptionOpenSearchException
-
nodeattrs
Returns information about custom node attributes.- Throws:
IOExceptionOpenSearchException
-
nodes
Returns basic statistics about the performance of cluster nodes.- Throws:
IOExceptionOpenSearchException
-
nodes
public final NodesResponse nodes(Function<NodesRequest.Builder, ObjectBuilder<NodesRequest>> fn) throws IOException, OpenSearchExceptionReturns basic statistics about the performance of cluster nodes.- Parameters:
fn- a function that initializes a builder to create theNodesRequest- Throws:
IOExceptionOpenSearchException
-
nodes
Returns basic statistics about the performance of cluster nodes.- Throws:
IOExceptionOpenSearchException
-
pendingTasks
public PendingTasksResponse pendingTasks(PendingTasksRequest request) throws IOException, OpenSearchException Returns a concise representation of the cluster's pending tasks.- Throws:
IOExceptionOpenSearchException
-
pendingTasks
public final PendingTasksResponse pendingTasks(Function<PendingTasksRequest.Builder, ObjectBuilder<PendingTasksRequest>> fn) throws IOException, OpenSearchExceptionReturns a concise representation of the cluster's pending tasks.- Parameters:
fn- a function that initializes a builder to create thePendingTasksRequest- Throws:
IOExceptionOpenSearchException
-
pendingTasks
Returns a concise representation of the cluster's pending tasks.- Throws:
IOExceptionOpenSearchException
-
pitSegments
public PitSegmentsResponse pitSegments(PitSegmentsRequest request) throws IOException, OpenSearchException Lists one or several CAT point-in-time segments.- Throws:
IOExceptionOpenSearchException
-
pitSegments
public final PitSegmentsResponse pitSegments(Function<PitSegmentsRequest.Builder, ObjectBuilder<PitSegmentsRequest>> fn) throws IOException, OpenSearchExceptionLists one or several CAT point-in-time segments.- Parameters:
fn- a function that initializes a builder to create thePitSegmentsRequest- Throws:
IOExceptionOpenSearchException
-
plugins
Returns information about the names, components, and versions of the installed plugins.- Throws:
IOExceptionOpenSearchException
-
plugins
public final PluginsResponse plugins(Function<PluginsRequest.Builder, ObjectBuilder<PluginsRequest>> fn) throws IOException, OpenSearchExceptionReturns information about the names, components, and versions of the installed plugins.- Parameters:
fn- a function that initializes a builder to create thePluginsRequest- Throws:
IOExceptionOpenSearchException
-
plugins
Returns information about the names, components, and versions of the installed plugins.- Throws:
IOExceptionOpenSearchException
-
recovery
Returns all completed and ongoing index and shard recoveries.- Throws:
IOExceptionOpenSearchException
-
recovery
public final RecoveryResponse recovery(Function<RecoveryRequest.Builder, ObjectBuilder<RecoveryRequest>> fn) throws IOException, OpenSearchExceptionReturns all completed and ongoing index and shard recoveries.- Parameters:
fn- a function that initializes a builder to create theRecoveryRequest- Throws:
IOExceptionOpenSearchException
-
recovery
Returns all completed and ongoing index and shard recoveries.- Throws:
IOExceptionOpenSearchException
-
repositories
public RepositoriesResponse repositories(RepositoriesRequest request) throws IOException, OpenSearchException Returns information about all snapshot repositories for a cluster.- Throws:
IOExceptionOpenSearchException
-
repositories
public final RepositoriesResponse repositories(Function<RepositoriesRequest.Builder, ObjectBuilder<RepositoriesRequest>> fn) throws IOException, OpenSearchExceptionReturns information about all snapshot repositories for a cluster.- Parameters:
fn- a function that initializes a builder to create theRepositoriesRequest- Throws:
IOExceptionOpenSearchException
-
repositories
Returns information about all snapshot repositories for a cluster.- Throws:
IOExceptionOpenSearchException
-
segmentReplication
public SegmentReplicationResponse segmentReplication(SegmentReplicationRequest request) throws IOException, OpenSearchException Returns information about active and last-completed segment replication events on each replica shard, including related shard-level metrics. These metrics provide information about how far behind the primary shard the replicas are lagging.- Throws:
IOExceptionOpenSearchException
-
segmentReplication
public final SegmentReplicationResponse segmentReplication(Function<SegmentReplicationRequest.Builder, ObjectBuilder<SegmentReplicationRequest>> fn) throws IOException, OpenSearchExceptionReturns information about active and last-completed segment replication events on each replica shard, including related shard-level metrics. These metrics provide information about how far behind the primary shard the replicas are lagging.- Parameters:
fn- a function that initializes a builder to create theSegmentReplicationRequest- Throws:
IOExceptionOpenSearchException
-
segmentReplication
public final SegmentReplicationResponse segmentReplication() throws IOException, OpenSearchExceptionReturns information about active and last-completed segment replication events on each replica shard, including related shard-level metrics. These metrics provide information about how far behind the primary shard the replicas are lagging.- Throws:
IOExceptionOpenSearchException
-
segments
Provides low-level information about the segments in the shards of an index.- Throws:
IOExceptionOpenSearchException
-
segments
public final SegmentsResponse segments(Function<SegmentsRequest.Builder, ObjectBuilder<SegmentsRequest>> fn) throws IOException, OpenSearchExceptionProvides low-level information about the segments in the shards of an index.- Parameters:
fn- a function that initializes a builder to create theSegmentsRequest- Throws:
IOExceptionOpenSearchException
-
segments
Provides low-level information about the segments in the shards of an index.- Throws:
IOExceptionOpenSearchException
-
shards
Lists the states of all primary and replica shards and how they are distributed.- Throws:
IOExceptionOpenSearchException
-
shards
public final ShardsResponse shards(Function<ShardsRequest.Builder, ObjectBuilder<ShardsRequest>> fn) throws IOException, OpenSearchExceptionLists the states of all primary and replica shards and how they are distributed.- Parameters:
fn- a function that initializes a builder to create theShardsRequest- Throws:
IOExceptionOpenSearchException
-
shards
Lists the states of all primary and replica shards and how they are distributed.- Throws:
IOExceptionOpenSearchException
-
snapshots
public SnapshotsResponse snapshots(SnapshotsRequest request) throws IOException, OpenSearchException Lists all of the snapshots stored in a specific repository.- Throws:
IOExceptionOpenSearchException
-
snapshots
public final SnapshotsResponse snapshots(Function<SnapshotsRequest.Builder, ObjectBuilder<SnapshotsRequest>> fn) throws IOException, OpenSearchExceptionLists all of the snapshots stored in a specific repository.- Parameters:
fn- a function that initializes a builder to create theSnapshotsRequest- Throws:
IOExceptionOpenSearchException
-
snapshots
Lists all of the snapshots stored in a specific repository.- Throws:
IOExceptionOpenSearchException
-
tasks
Lists the progress of all tasks currently running on the cluster.- Throws:
IOExceptionOpenSearchException
-
tasks
public final TasksResponse tasks(Function<TasksRequest.Builder, ObjectBuilder<TasksRequest>> fn) throws IOException, OpenSearchExceptionLists the progress of all tasks currently running on the cluster.- Parameters:
fn- a function that initializes a builder to create theTasksRequest- Throws:
IOExceptionOpenSearchException
-
tasks
Lists the progress of all tasks currently running on the cluster.- Throws:
IOExceptionOpenSearchException
-
templates
public TemplatesResponse templates(TemplatesRequest request) throws IOException, OpenSearchException Lists the names, patterns, order numbers, and version numbers of index templates.- Throws:
IOExceptionOpenSearchException
-
templates
public final TemplatesResponse templates(Function<TemplatesRequest.Builder, ObjectBuilder<TemplatesRequest>> fn) throws IOException, OpenSearchExceptionLists the names, patterns, order numbers, and version numbers of index templates.- Parameters:
fn- a function that initializes a builder to create theTemplatesRequest- Throws:
IOExceptionOpenSearchException
-
templates
Lists the names, patterns, order numbers, and version numbers of index templates.- Throws:
IOExceptionOpenSearchException
-
threadPool
public ThreadPoolResponse threadPool(ThreadPoolRequest request) throws IOException, OpenSearchException Returns cluster-wide thread pool statistics per node. By default the active, queued, and rejected statistics are returned for all thread pools.- Throws:
IOExceptionOpenSearchException
-
threadPool
public final ThreadPoolResponse threadPool(Function<ThreadPoolRequest.Builder, ObjectBuilder<ThreadPoolRequest>> fn) throws IOException, OpenSearchExceptionReturns cluster-wide thread pool statistics per node. By default the active, queued, and rejected statistics are returned for all thread pools.- Parameters:
fn- a function that initializes a builder to create theThreadPoolRequest- Throws:
IOExceptionOpenSearchException
-
threadPool
Returns cluster-wide thread pool statistics per node. By default the active, queued, and rejected statistics are returned for all thread pools.- Throws:
IOExceptionOpenSearchException
-