[Javadocs] Add to remaining o.o.action classes (#3182)

Adds javadocs to remaining undocumented classes in o.o.action package.

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
This commit is contained in:
Nick Knize 2022-05-04 13:35:57 -05:00 committed by GitHub
parent fc0f446ab2
commit 6ca3278f96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
278 changed files with 967 additions and 10 deletions

View File

@ -40,7 +40,7 @@ import java.util.concurrent.TimeUnit;
/** /**
* An extension to {@link Future} allowing for simplified "get" operations. * An extension to {@link Future} allowing for simplified "get" operations.
* *
* * @opensearch.internal
*/ */
public interface ActionFuture<T> extends Future<T> { public interface ActionFuture<T> extends Future<T> {

View File

@ -45,6 +45,8 @@ import java.util.function.Consumer;
/** /**
* A listener for action responses or failures. * A listener for action responses or failures.
*
* @opensearch.internal
*/ */
public interface ActionListener<Response> { public interface ActionListener<Response> {
/** /**

View File

@ -45,6 +45,8 @@ import java.util.Objects;
/** /**
* A simple base class for action response listeners, defaulting to using the SAME executor (as its * A simple base class for action response listeners, defaulting to using the SAME executor (as its
* very common on response handlers). * very common on response handlers).
*
* @opensearch.internal
*/ */
public class ActionListenerResponseHandler<Response extends TransportResponse> implements TransportResponseHandler<Response> { public class ActionListenerResponseHandler<Response extends TransportResponse> implements TransportResponseHandler<Response> {

View File

@ -419,6 +419,8 @@ import static java.util.Collections.unmodifiableMap;
/** /**
* Builds and binds the generic action map, all {@link TransportAction}s, and {@link ActionFilters}. * Builds and binds the generic action map, all {@link TransportAction}s, and {@link ActionFilters}.
*
* @opensearch.internal
*/ */
public class ActionModule extends AbstractModule { public class ActionModule extends AbstractModule {

View File

@ -38,6 +38,11 @@ import org.opensearch.transport.TransportRequest;
import java.io.IOException; import java.io.IOException;
/**
* Base action request
*
* @opensearch.internal
*/
public abstract class ActionRequest extends TransportRequest { public abstract class ActionRequest extends TransportRequest {
public ActionRequest() { public ActionRequest() {

View File

@ -37,6 +37,11 @@ import org.opensearch.common.unit.TimeValue;
import java.util.Objects; import java.util.Objects;
/**
* Base Action Request Builder
*
* @opensearch.internal
*/
public abstract class ActionRequestBuilder<Request extends ActionRequest, Response extends ActionResponse> { public abstract class ActionRequestBuilder<Request extends ActionRequest, Response extends ActionResponse> {
protected final ActionType<Response> action; protected final ActionType<Response> action;

View File

@ -34,4 +34,9 @@ package org.opensearch.action;
import org.opensearch.common.ValidationException; import org.opensearch.common.ValidationException;
/**
* Base exception for an action request validation
*
* @opensearch.internal
*/
public class ActionRequestValidationException extends ValidationException {} public class ActionRequestValidationException extends ValidationException {}

View File

@ -39,6 +39,8 @@ import java.io.IOException;
/** /**
* Base class for responses to action requests. * Base class for responses to action requests.
*
* @opensearch.internal
*/ */
public abstract class ActionResponse extends TransportResponse { public abstract class ActionResponse extends TransportResponse {

View File

@ -40,6 +40,8 @@ import org.opensearch.common.util.concurrent.AbstractRunnable;
/** /**
* Base class for {@link Runnable}s that need to call {@link ActionListener#onFailure(Exception)} in case an uncaught * Base class for {@link Runnable}s that need to call {@link ActionListener#onFailure(Exception)} in case an uncaught
* exception or error is thrown while the actual action is run. * exception or error is thrown while the actual action is run.
*
* @opensearch.internal
*/ */
public abstract class ActionRunnable<Response> extends AbstractRunnable { public abstract class ActionRunnable<Response> extends AbstractRunnable {

View File

@ -38,6 +38,8 @@ import org.opensearch.transport.TransportRequestOptions;
/** /**
* A generic action. Should strive to make it a singleton. * A generic action. Should strive to make it a singleton.
*
* @opensearch.internal
*/ */
public class ActionType<Response extends ActionResponse> { public class ActionType<Response extends ActionResponse> {

View File

@ -37,6 +37,8 @@ package org.opensearch.action;
* one or more indices and one or more aliases. Meant to be used for aliases management requests (e.g. add/remove alias, * one or more indices and one or more aliases. Meant to be used for aliases management requests (e.g. add/remove alias,
* get aliases) that hold aliases and indices in separate fields. * get aliases) that hold aliases and indices in separate fields.
* Allows to retrieve which indices and aliases the action relates to. * Allows to retrieve which indices and aliases the action relates to.
*
* @opensearch.internal
*/ */
public interface AliasesRequest extends IndicesRequest.Replaceable { public interface AliasesRequest extends IndicesRequest.Replaceable {

View File

@ -37,5 +37,7 @@ package org.opensearch.action;
* multiple sub-requests which relate to one or more indices. A composite request is executed by its own transport action class * multiple sub-requests which relate to one or more indices. A composite request is executed by its own transport action class
* (e.g. {@link org.opensearch.action.search.TransportMultiSearchAction}), which goes through all sub-requests and delegates their * (e.g. {@link org.opensearch.action.search.TransportMultiSearchAction}), which goes through all sub-requests and delegates their
* execution to the appropriate transport action (e.g. {@link org.opensearch.action.search.TransportSearchAction}) for each single item. * execution to the appropriate transport action (e.g. {@link org.opensearch.action.search.TransportSearchAction}) for each single item.
*
* @opensearch.internal
*/ */
public interface CompositeIndicesRequest {} public interface CompositeIndicesRequest {}

View File

@ -53,6 +53,8 @@ import static org.opensearch.index.seqno.SequenceNumbers.UNASSIGNED_SEQ_NO;
/** /**
* Generic interface to group ActionRequest, which perform writes to a single document * Generic interface to group ActionRequest, which perform writes to a single document
* Action requests implementing this can be part of {@link org.opensearch.action.bulk.BulkRequest} * Action requests implementing this can be part of {@link org.opensearch.action.bulk.BulkRequest}
*
* @opensearch.internal
*/ */
public interface DocWriteRequest<T> extends IndicesRequest, Accountable { public interface DocWriteRequest<T> extends IndicesRequest, Accountable {

View File

@ -63,6 +63,8 @@ import static org.opensearch.index.seqno.SequenceNumbers.UNASSIGNED_SEQ_NO;
/** /**
* A base class for the response of a write operation that involves a single doc * A base class for the response of a write operation that involves a single doc
*
* @opensearch.internal
*/ */
public abstract class DocWriteResponse extends ReplicationResponse implements WriteResponse, StatusToXContentObject { public abstract class DocWriteResponse extends ReplicationResponse implements WriteResponse, StatusToXContentObject {

View File

@ -39,6 +39,11 @@ import org.opensearch.common.xcontent.XContentBuilder;
import java.io.IOException; import java.io.IOException;
/**
* Base exception for a failed node
*
* @opensearch.internal
*/
public class FailedNodeException extends OpenSearchException { public class FailedNodeException extends OpenSearchException {
private final String nodeId; private final String nodeId;

View File

@ -39,6 +39,8 @@ import org.opensearch.action.support.IndicesOptions;
* one or more indices. Allows to retrieve which indices the action relates to. * one or more indices. Allows to retrieve which indices the action relates to.
* In case of internal requests originated during the distributed execution of an external request, * In case of internal requests originated during the distributed execution of an external request,
* they will still return the indices that the original request related to. * they will still return the indices that the original request related to.
*
* @opensearch.internal
*/ */
public interface IndicesRequest { public interface IndicesRequest {

View File

@ -37,6 +37,8 @@ import java.util.concurrent.CountDownLatch;
/** /**
* An action listener that allows passing in a {@link CountDownLatch} that * An action listener that allows passing in a {@link CountDownLatch} that
* will be counted down after onResponse or onFailure is called * will be counted down after onResponse or onFailure is called
*
* @opensearch.internal
*/ */
public class LatchedActionListener<T> implements ActionListener<T> { public class LatchedActionListener<T> implements ActionListener<T> {

View File

@ -35,7 +35,7 @@ package org.opensearch.action;
/** /**
* An {@link ActionFuture} that listeners can be added to. * An {@link ActionFuture} that listeners can be added to.
* *
* * @opensearch.internal
*/ */
public interface ListenableActionFuture<T> extends ActionFuture<T> { public interface ListenableActionFuture<T> extends ActionFuture<T> {

View File

@ -39,6 +39,11 @@ import org.opensearch.rest.RestStatus;
import java.io.IOException; import java.io.IOException;
/**
* Base exception for no shard available
*
* @opensearch.internal
*/
public class NoShardAvailableActionException extends OpenSearchException { public class NoShardAvailableActionException extends OpenSearchException {
public NoShardAvailableActionException(ShardId shardId) { public NoShardAvailableActionException(ShardId shardId) {

View File

@ -36,6 +36,11 @@ import org.opensearch.common.io.stream.StreamInput;
import java.io.IOException; import java.io.IOException;
/**
* Base exception for no node found
*
* @opensearch.internal
*/
public class NoSuchNodeException extends FailedNodeException { public class NoSuchNodeException extends FailedNodeException {
public NoSuchNodeException(String nodeId) { public NoSuchNodeException(String nodeId) {

View File

@ -38,6 +38,8 @@ import java.util.concurrent.atomic.AtomicBoolean;
* A listener that ensures that only one of onResponse or onFailure is called. And the method * A listener that ensures that only one of onResponse or onFailure is called. And the method
* the is called is only called once. Subclasses should implement notification logic with * the is called is only called once. Subclasses should implement notification logic with
* innerOnResponse and innerOnFailure. * innerOnResponse and innerOnFailure.
*
* @opensearch.internal
*/ */
public abstract class NotifyOnceListener<Response> implements ActionListener<Response> { public abstract class NotifyOnceListener<Response> implements ActionListener<Response> {

View File

@ -41,6 +41,8 @@ import java.util.Arrays;
/** /**
* Used to keep track of original indices within internal (e.g. shard level) requests * Used to keep track of original indices within internal (e.g. shard level) requests
*
* @opensearch.internal
*/ */
public final class OriginalIndices implements IndicesRequest { public final class OriginalIndices implements IndicesRequest {

View File

@ -37,6 +37,11 @@ import org.opensearch.common.io.stream.StreamInput;
import java.io.IOException; import java.io.IOException;
/**
* Base exception for a missing action on a primary
*
* @opensearch.internal
*/
public class PrimaryMissingActionException extends OpenSearchException { public class PrimaryMissingActionException extends OpenSearchException {
public PrimaryMissingActionException(String message) { public PrimaryMissingActionException(String message) {

View File

@ -35,6 +35,8 @@ package org.opensearch.action;
/** /**
* Indicates that a request can execute in realtime (reads from the translog). * Indicates that a request can execute in realtime (reads from the translog).
* All {@link ActionRequest} that are realtime should implement this interface. * All {@link ActionRequest} that are realtime should implement this interface.
*
* @opensearch.internal
*/ */
public interface RealtimeRequest { public interface RealtimeRequest {

View File

@ -38,6 +38,11 @@ import org.opensearch.index.Index;
import java.util.Collection; import java.util.Collection;
import java.util.Optional; import java.util.Optional;
/**
* Validates transport requests
*
* @opensearch.internal
*/
public class RequestValidators<T extends ActionRequest> { public class RequestValidators<T extends ActionRequest> {
private final Collection<RequestValidator<T>> validators; private final Collection<RequestValidator<T>> validators;

View File

@ -41,6 +41,11 @@ import org.opensearch.rest.RestStatus;
import java.io.IOException; import java.io.IOException;
import java.util.Objects; import java.util.Objects;
/**
* Base exception for a missing routing
*
* @opensearch.internal
*/
public class RoutingMissingException extends OpenSearchException { public class RoutingMissingException extends OpenSearchException {
private final String type; private final String type;

View File

@ -42,6 +42,7 @@ import java.util.Objects;
/** /**
* An exception indicating that a failure occurred performing an operation on the shard. * An exception indicating that a failure occurred performing an operation on the shard.
* *
* @opensearch.internal
*/ */
public abstract class ShardOperationFailedException implements Writeable, ToXContentObject { public abstract class ShardOperationFailedException implements Writeable, ToXContentObject {

View File

@ -61,6 +61,8 @@ import java.util.function.Consumer;
* }, flowListener::onFailure); * }, flowListener::onFailure);
* } * }
* }</pre> * }</pre>
*
* @opensearch.internal
*/ */
public final class StepListener<Response> extends NotifyOnceListener<Response> { public final class StepListener<Response> extends NotifyOnceListener<Response> {

View File

@ -52,6 +52,8 @@ import static org.opensearch.common.xcontent.ConstructingObjectParser.constructo
* Information about task operation failures * Information about task operation failures
* *
* The class is final due to serialization limitations * The class is final due to serialization limitations
*
* @opensearch.internal
*/ */
public final class TaskOperationFailure implements Writeable, ToXContentFragment { public final class TaskOperationFailure implements Writeable, ToXContentFragment {
private static final String TASK_ID = "task_id"; private static final String TASK_ID = "task_id";

View File

@ -32,6 +32,11 @@
package org.opensearch.action; package org.opensearch.action;
/**
* Threading model
*
* @opensearch.internal
*/
public enum ThreadingModel { public enum ThreadingModel {
NONE((byte) 0), NONE((byte) 0),
OPERATION((byte) 1), OPERATION((byte) 1),

View File

@ -38,6 +38,11 @@ import org.opensearch.common.io.stream.StreamOutput;
import java.io.IOException; import java.io.IOException;
/**
* Base exception for a failed timestamp parse
*
* @opensearch.internal
*/
public class TimestampParsingException extends OpenSearchException { public class TimestampParsingException extends OpenSearchException {
private final String timestamp; private final String timestamp;

View File

@ -39,6 +39,8 @@ import org.opensearch.transport.TransportService;
/** /**
* A generic proxy that will execute the given action against a specific node. * A generic proxy that will execute the given action against a specific node.
*
* @opensearch.internal
*/ */
public class TransportActionNodeProxy<Request extends ActionRequest, Response extends ActionResponse> { public class TransportActionNodeProxy<Request extends ActionRequest, Response extends ActionResponse> {

View File

@ -40,6 +40,11 @@ import org.opensearch.rest.RestStatus;
import java.io.IOException; import java.io.IOException;
/**
* Base exception for shards unavailable
*
* @opensearch.internal
*/
public class UnavailableShardsException extends OpenSearchException { public class UnavailableShardsException extends OpenSearchException {
public UnavailableShardsException(@Nullable ShardId shardId, String message, Object... args) { public UnavailableShardsException(@Nullable ShardId shardId, String message, Object... args) {

View File

@ -32,6 +32,11 @@
package org.opensearch.action; package org.opensearch.action;
/**
* Validates transport actions
*
* @opensearch.internal
*/
public class ValidateActions { public class ValidateActions {
public static ActionRequestValidationException addValidationError(String error, ActionRequestValidationException validationException) { public static ActionRequestValidationException addValidationError(String error, ActionRequestValidationException validationException) {

View File

@ -53,6 +53,8 @@ import java.util.NoSuchElementException;
* </ul> * </ul>
* *
* Note that backoff policies are exposed as <code>Iterables</code> in order to be consumed multiple times. * Note that backoff policies are exposed as <code>Iterables</code> in order to be consumed multiple times.
*
* @opensearch.internal
*/ */
public abstract class BackoffPolicy implements Iterable<TimeValue> { public abstract class BackoffPolicy implements Iterable<TimeValue> {
private static final BackoffPolicy NO_BACKOFF = new NoBackoff(); private static final BackoffPolicy NO_BACKOFF = new NoBackoff();

View File

@ -36,6 +36,11 @@ import org.opensearch.action.ActionType;
import org.opensearch.common.settings.Settings; import org.opensearch.common.settings.Settings;
import org.opensearch.transport.TransportRequestOptions; import org.opensearch.transport.TransportRequestOptions;
/**
* Transport action for bulk indexing
*
* @opensearch.internal
*/
public class BulkAction extends ActionType<BulkResponse> { public class BulkAction extends ActionType<BulkResponse> {
public static final BulkAction INSTANCE = new BulkAction(); public static final BulkAction INSTANCE = new BulkAction();

View File

@ -45,6 +45,11 @@ import org.opensearch.index.shard.ShardId;
import java.io.IOException; import java.io.IOException;
import java.util.Objects; import java.util.Objects;
/**
* Transport request for a Single bulk item
*
* @opensearch.internal
*/
public class BulkItemRequest implements Writeable, Accountable { public class BulkItemRequest implements Writeable, Accountable {
private static final long SHALLOW_SIZE = RamUsageEstimator.shallowSizeOfInstance(BulkItemRequest.class); private static final long SHALLOW_SIZE = RamUsageEstimator.shallowSizeOfInstance(BulkItemRequest.class);

View File

@ -67,6 +67,8 @@ import static org.opensearch.common.xcontent.XContentParserUtils.throwUnknownFie
/** /**
* Represents a single item response for an action executed as part of the bulk API. Holds the index/type/id * Represents a single item response for an action executed as part of the bulk API. Holds the index/type/id
* of the relevant action, and if it has failed or not (with the failure message in case it failed). * of the relevant action, and if it has failed or not (with the failure message in case it failed).
*
* @opensearch.internal
*/ */
public class BulkItemResponse implements Writeable, StatusToXContentObject { public class BulkItemResponse implements Writeable, StatusToXContentObject {

View File

@ -48,6 +48,8 @@ import java.util.Arrays;
* This is a utility class that holds the per request state needed to perform bulk operations on the primary. * This is a utility class that holds the per request state needed to perform bulk operations on the primary.
* More specifically, it maintains an index to the current executing bulk item, which allows execution * More specifically, it maintains an index to the current executing bulk item, which allows execution
* to stop and wait for external events such as mapping updates. * to stop and wait for external events such as mapping updates.
*
* @opensearch.internal
*/ */
class BulkPrimaryExecutionContext { class BulkPrimaryExecutionContext {

View File

@ -63,6 +63,8 @@ import java.util.function.Supplier;
* requests allowed to be executed in parallel. * requests allowed to be executed in parallel.
* <p> * <p>
* In order to create a new bulk processor, use the {@link Builder}. * In order to create a new bulk processor, use the {@link Builder}.
*
* @opensearch.internal
*/ */
public class BulkProcessor implements Closeable { public class BulkProcessor implements Closeable {

View File

@ -70,6 +70,8 @@ import static org.opensearch.action.ValidateActions.addValidationError;
* *
* Note that we only support refresh on the bulk request not per item. * Note that we only support refresh on the bulk request not per item.
* @see org.opensearch.client.Client#bulk(BulkRequest) * @see org.opensearch.client.Client#bulk(BulkRequest)
*
* @opensearch.internal
*/ */
public class BulkRequest extends ActionRequest implements CompositeIndicesRequest, WriteRequest<BulkRequest>, Accountable { public class BulkRequest extends ActionRequest implements CompositeIndicesRequest, WriteRequest<BulkRequest>, Accountable {

View File

@ -50,6 +50,8 @@ import org.opensearch.common.xcontent.XContentType;
/** /**
* A bulk request holds an ordered {@link IndexRequest}s and {@link DeleteRequest}s and allows to executes * A bulk request holds an ordered {@link IndexRequest}s and {@link DeleteRequest}s and allows to executes
* it in a single batch. * it in a single batch.
*
* @opensearch.internal
*/ */
public class BulkRequestBuilder extends ActionRequestBuilder<BulkRequest, BulkResponse> implements WriteRequestBuilder<BulkRequestBuilder> { public class BulkRequestBuilder extends ActionRequestBuilder<BulkRequest, BulkResponse> implements WriteRequestBuilder<BulkRequestBuilder> {

View File

@ -44,6 +44,8 @@ import java.util.function.BiConsumer;
/** /**
* Implements the low-level details of bulk request handling * Implements the low-level details of bulk request handling
*
* @opensearch.internal
*/ */
public final class BulkRequestHandler { public final class BulkRequestHandler {
private final Logger logger; private final Logger logger;

View File

@ -61,6 +61,8 @@ import static org.opensearch.index.seqno.SequenceNumbers.UNASSIGNED_PRIMARY_TERM
/** /**
* Helper to parse bulk requests. This should be considered an internal class. * Helper to parse bulk requests. This should be considered an internal class.
*
* @opensearch.internal
*/ */
public final class BulkRequestParser { public final class BulkRequestParser {

View File

@ -55,6 +55,8 @@ import static org.opensearch.common.xcontent.XContentParserUtils.throwUnknownTok
* A response of a bulk execution. Holding a response for each item responding (in order) of the * A response of a bulk execution. Holding a response for each item responding (in order) of the
* bulk requests. Each item holds the index/type/id is operated on, and if it failed or not (with the * bulk requests. Each item holds the index/type/id is operated on, and if it failed or not (with the
* failure message). * failure message).
*
* @opensearch.internal
*/ */
public class BulkResponse extends ActionResponse implements Iterable<BulkItemResponse>, StatusToXContentObject { public class BulkResponse extends ActionResponse implements Iterable<BulkItemResponse>, StatusToXContentObject {

View File

@ -47,6 +47,11 @@ import java.util.HashSet;
import java.util.Set; import java.util.Set;
import java.util.stream.Stream; import java.util.stream.Stream;
/**
* A bulk shard request targeting a specific shard ID
*
* @opensearch.internal
*/
public class BulkShardRequest extends ReplicatedWriteRequest<BulkShardRequest> implements Accountable { public class BulkShardRequest extends ReplicatedWriteRequest<BulkShardRequest> implements Accountable {
public static final Version COMPACT_SHARD_ID_VERSION = LegacyESVersion.V_7_9_0; public static final Version COMPACT_SHARD_ID_VERSION = LegacyESVersion.V_7_9_0;

View File

@ -43,6 +43,11 @@ import org.opensearch.index.shard.ShardId;
import java.io.IOException; import java.io.IOException;
/**
* Transport response for a bulk shard request
*
* @opensearch.internal
*/
public class BulkShardResponse extends ReplicationResponse implements WriteResponse { public class BulkShardResponse extends ReplicationResponse implements WriteResponse {
private static final Version COMPACT_SHARD_ID_VERSION = LegacyESVersion.V_7_9_0; private static final Version COMPACT_SHARD_ID_VERSION = LegacyESVersion.V_7_9_0;

View File

@ -36,6 +36,11 @@ import org.opensearch.action.ActionListener;
import org.opensearch.index.mapper.Mapping; import org.opensearch.index.mapper.Mapping;
import org.opensearch.index.shard.ShardId; import org.opensearch.index.shard.ShardId;
/**
* Updates the mappings on the cluster manager
*
* @opensearch.internal
*/
public interface MappingUpdatePerformer { public interface MappingUpdatePerformer {
/** /**

View File

@ -49,6 +49,8 @@ import java.util.function.Predicate;
/** /**
* Encapsulates synchronous and asynchronous retry logic. * Encapsulates synchronous and asynchronous retry logic.
*
* @opensearch.internal
*/ */
public class Retry { public class Retry {
private final BackoffPolicy backoffPolicy; private final BackoffPolicy backoffPolicy;

View File

@ -112,6 +112,8 @@ import static org.opensearch.index.seqno.SequenceNumbers.UNASSIGNED_SEQ_NO;
/** /**
* Groups bulk request items by shard, optionally creating non-existent indices and * Groups bulk request items by shard, optionally creating non-existent indices and
* delegates to {@link TransportShardBulkAction} for shard-level bulk execution * delegates to {@link TransportShardBulkAction} for shard-level bulk execution
*
* @opensearch.internal
*/ */
public class TransportBulkAction extends HandledTransportAction<BulkRequest, BulkResponse> { public class TransportBulkAction extends HandledTransportAction<BulkRequest, BulkResponse> {

View File

@ -94,7 +94,11 @@ import java.util.function.Consumer;
import java.util.function.Function; import java.util.function.Function;
import java.util.function.LongSupplier; import java.util.function.LongSupplier;
/** Performs shard-level bulk (index, delete or update) operations */ /**
* Performs shard-level bulk (index, delete or update) operations
*
* @opensearch.internal
*/
public class TransportShardBulkAction extends TransportWriteAction<BulkShardRequest, BulkShardRequest, BulkShardResponse> { public class TransportShardBulkAction extends TransportWriteAction<BulkShardRequest, BulkShardRequest, BulkShardResponse> {
public static final String ACTION_NAME = BulkAction.NAME + "[s]"; public static final String ACTION_NAME = BulkAction.NAME + "[s]";

View File

@ -45,7 +45,11 @@ import org.opensearch.common.io.stream.Writeable;
import org.opensearch.tasks.Task; import org.opensearch.tasks.Task;
import org.opensearch.transport.TransportService; import org.opensearch.transport.TransportService;
/** use transport bulk action directly */ /**
* use transport bulk action directly
*
* @opensearch.internal
*/
@Deprecated @Deprecated
public abstract class TransportSingleItemBulkWriteAction< public abstract class TransportSingleItemBulkWriteAction<
Request extends ReplicatedWriteRequest<Request>, Request extends ReplicatedWriteRequest<Request>,

View File

@ -34,6 +34,11 @@ package org.opensearch.action.delete;
import org.opensearch.action.ActionType; import org.opensearch.action.ActionType;
/**
* Transport action to delete a document from an index
*
* @opensearch.internal
*/
public class DeleteAction extends ActionType<DeleteResponse> { public class DeleteAction extends ActionType<DeleteResponse> {
public static final DeleteAction INSTANCE = new DeleteAction(); public static final DeleteAction INSTANCE = new DeleteAction();

View File

@ -64,6 +64,8 @@ import static org.opensearch.index.seqno.SequenceNumbers.UNASSIGNED_SEQ_NO;
* @see DeleteResponse * @see DeleteResponse
* @see org.opensearch.client.Client#delete(DeleteRequest) * @see org.opensearch.client.Client#delete(DeleteRequest)
* @see org.opensearch.client.Requests#deleteRequest(String) * @see org.opensearch.client.Requests#deleteRequest(String)
*
* @opensearch.internal
*/ */
public class DeleteRequest extends ReplicatedWriteRequest<DeleteRequest> public class DeleteRequest extends ReplicatedWriteRequest<DeleteRequest>
implements implements

View File

@ -40,6 +40,8 @@ import org.opensearch.index.VersionType;
/** /**
* A delete document action request builder. * A delete document action request builder.
*
* @opensearch.internal
*/ */
public class DeleteRequestBuilder extends ReplicationRequestBuilder<DeleteRequest, DeleteResponse, DeleteRequestBuilder> public class DeleteRequestBuilder extends ReplicationRequestBuilder<DeleteRequest, DeleteResponse, DeleteRequestBuilder>
implements implements

View File

@ -47,6 +47,8 @@ import static org.opensearch.common.xcontent.XContentParserUtils.ensureExpectedT
* *
* @see org.opensearch.action.delete.DeleteRequest * @see org.opensearch.action.delete.DeleteRequest
* @see org.opensearch.client.Client#delete(DeleteRequest) * @see org.opensearch.client.Client#delete(DeleteRequest)
*
* @opensearch.internal
*/ */
public class DeleteResponse extends DocWriteResponse { public class DeleteResponse extends DocWriteResponse {

View File

@ -42,6 +42,8 @@ import org.opensearch.transport.TransportService;
* Performs the delete operation. * Performs the delete operation.
* *
* Deprecated use TransportBulkAction with a single item instead * Deprecated use TransportBulkAction with a single item instead
*
* @opensearch.internal
*/ */
@Deprecated @Deprecated
public class TransportDeleteAction extends TransportSingleItemBulkWriteAction<DeleteRequest, DeleteResponse> { public class TransportDeleteAction extends TransportSingleItemBulkWriteAction<DeleteRequest, DeleteResponse> {

View File

@ -36,6 +36,8 @@ import org.opensearch.action.ActionType;
/** /**
* Entry point for the explain feature. * Entry point for the explain feature.
*
* @opensearch.internal
*/ */
public class ExplainAction extends ActionType<ExplainResponse> { public class ExplainAction extends ActionType<ExplainResponse> {

View File

@ -53,6 +53,8 @@ import static org.opensearch.action.ValidateActions.addValidationError;
/** /**
* Explain request encapsulating the explain query and document identifier to get an explanation for. * Explain request encapsulating the explain query and document identifier to get an explanation for.
*
* @opensearch.internal
*/ */
public class ExplainRequest extends SingleShardRequest<ExplainRequest> implements ToXContentObject { public class ExplainRequest extends SingleShardRequest<ExplainRequest> implements ToXContentObject {

View File

@ -41,6 +41,8 @@ import org.opensearch.search.fetch.subphase.FetchSourceContext;
/** /**
* A builder for {@link ExplainRequest}. * A builder for {@link ExplainRequest}.
*
* @opensearch.internal
*/ */
public class ExplainRequestBuilder extends SingleShardOperationRequestBuilder<ExplainRequest, ExplainResponse, ExplainRequestBuilder> { public class ExplainRequestBuilder extends SingleShardOperationRequestBuilder<ExplainRequest, ExplainResponse, ExplainRequestBuilder> {

View File

@ -55,6 +55,8 @@ import static org.opensearch.common.lucene.Lucene.writeExplanation;
/** /**
* Response containing the score explanation. * Response containing the score explanation.
*
* @opensearch.internal
*/ */
public class ExplainResponse extends ActionResponse implements StatusToXContentObject { public class ExplainResponse extends ActionResponse implements StatusToXContentObject {

View File

@ -68,6 +68,8 @@ import java.util.Set;
/** /**
* Explain transport action. Computes the explain on the targeted shard. * Explain transport action. Computes the explain on the targeted shard.
*
* @opensearch.internal
*/ */
// TODO: AggregatedDfs. Currently the idf can be different then when executing a normal search with explain. // TODO: AggregatedDfs. Currently the idf can be different then when executing a normal search with explain.
public class TransportExplainAction extends TransportSingleShardAction<ExplainRequest, ExplainResponse> { public class TransportExplainAction extends TransportSingleShardAction<ExplainRequest, ExplainResponse> {

View File

@ -59,6 +59,8 @@ import java.util.stream.Collectors;
/** /**
* Describes the capabilities of a field optionally merged across multiple indices. * Describes the capabilities of a field optionally merged across multiple indices.
*
* @opensearch.internal
*/ */
public class FieldCapabilities implements Writeable, ToXContentObject { public class FieldCapabilities implements Writeable, ToXContentObject {

View File

@ -34,6 +34,11 @@ package org.opensearch.action.fieldcaps;
import org.opensearch.action.ActionType; import org.opensearch.action.ActionType;
/**
* Transport action for a field capabilities request
*
* @opensearch.internal
*/
public class FieldCapabilitiesAction extends ActionType<FieldCapabilitiesResponse> { public class FieldCapabilitiesAction extends ActionType<FieldCapabilitiesResponse> {
public static final FieldCapabilitiesAction INSTANCE = new FieldCapabilitiesAction(); public static final FieldCapabilitiesAction INSTANCE = new FieldCapabilitiesAction();

View File

@ -46,6 +46,11 @@ import org.opensearch.index.shard.ShardId;
import java.io.IOException; import java.io.IOException;
import java.util.Objects; import java.util.Objects;
/**
* Transport Request for Retrieving Field Capabilities for an Index
*
* @opensearch.internal
*/
public class FieldCapabilitiesIndexRequest extends ActionRequest implements IndicesRequest { public class FieldCapabilitiesIndexRequest extends ActionRequest implements IndicesRequest {
public static final IndicesOptions INDICES_OPTIONS = IndicesOptions.strictSingleIndexNoExpandForbidClosed(); public static final IndicesOptions INDICES_OPTIONS = IndicesOptions.strictSingleIndexNoExpandForbidClosed();

View File

@ -44,6 +44,8 @@ import java.util.Objects;
/** /**
* Response for {@link TransportFieldCapabilitiesIndexAction}. * Response for {@link TransportFieldCapabilitiesIndexAction}.
*
* @opensearch.internal
*/ */
public class FieldCapabilitiesIndexResponse extends ActionResponse implements Writeable { public class FieldCapabilitiesIndexResponse extends ActionResponse implements Writeable {
private final String indexName; private final String indexName;

View File

@ -51,6 +51,9 @@ import java.util.HashSet;
import java.util.Objects; import java.util.Objects;
import java.util.Set; import java.util.Set;
/**
* Transport request for retrieving field capabilities for an explicit list of fields
*/
public final class FieldCapabilitiesRequest extends ActionRequest implements IndicesRequest.Replaceable, ToXContentObject { public final class FieldCapabilitiesRequest extends ActionRequest implements IndicesRequest.Replaceable, ToXContentObject {
public static final String NAME = "field_caps_request"; public static final String NAME = "field_caps_request";

View File

@ -36,6 +36,11 @@ import org.opensearch.action.ActionRequestBuilder;
import org.opensearch.client.OpenSearchClient; import org.opensearch.client.OpenSearchClient;
import org.opensearch.index.query.QueryBuilder; import org.opensearch.index.query.QueryBuilder;
/**
* Transport request builder for retrieving field capabilities
*
* @opensearch.internal
*/
public class FieldCapabilitiesRequestBuilder extends ActionRequestBuilder<FieldCapabilitiesRequest, FieldCapabilitiesResponse> { public class FieldCapabilitiesRequestBuilder extends ActionRequestBuilder<FieldCapabilitiesRequest, FieldCapabilitiesResponse> {
public FieldCapabilitiesRequestBuilder(OpenSearchClient client, FieldCapabilitiesAction action, String... indices) { public FieldCapabilitiesRequestBuilder(OpenSearchClient client, FieldCapabilitiesAction action, String... indices) {
super(client, action, new FieldCapabilitiesRequest().indices(indices)); super(client, action, new FieldCapabilitiesRequest().indices(indices));

View File

@ -56,6 +56,8 @@ import java.util.stream.Collectors;
/** /**
* Response for {@link FieldCapabilitiesRequest} requests. * Response for {@link FieldCapabilitiesRequest} requests.
*
* @opensearch.internal
*/ */
public class FieldCapabilitiesResponse extends ActionResponse implements ToXContentObject { public class FieldCapabilitiesResponse extends ActionResponse implements ToXContentObject {
private static final ParseField INDICES_FIELD = new ParseField("indices"); private static final ParseField INDICES_FIELD = new ParseField("indices");

View File

@ -46,6 +46,8 @@ import java.util.stream.Collectors;
/** /**
* Describes the capabilities of a field in a single index. * Describes the capabilities of a field in a single index.
*
* @opensearch.internal
*/ */
public class IndexFieldCapabilities implements Writeable { public class IndexFieldCapabilities implements Writeable {

View File

@ -58,6 +58,11 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
/**
* Transport action for field capabilities requests
*
* @opensearch.internal
*/
public class TransportFieldCapabilitiesAction extends HandledTransportAction<FieldCapabilitiesRequest, FieldCapabilitiesResponse> { public class TransportFieldCapabilitiesAction extends HandledTransportAction<FieldCapabilitiesRequest, FieldCapabilitiesResponse> {
private final ThreadPool threadPool; private final ThreadPool threadPool;
private final ClusterService clusterService; private final ClusterService clusterService;

View File

@ -85,6 +85,11 @@ import java.util.function.Predicate;
import static org.opensearch.action.support.TransportActions.isShardNotAvailableException; import static org.opensearch.action.support.TransportActions.isShardNotAvailableException;
/**
* Transport action for field capabilities request in an index
*
* @opensearch.internal
*/
public class TransportFieldCapabilitiesIndexAction extends HandledTransportAction< public class TransportFieldCapabilitiesIndexAction extends HandledTransportAction<
FieldCapabilitiesIndexRequest, FieldCapabilitiesIndexRequest,
FieldCapabilitiesIndexResponse> { FieldCapabilitiesIndexResponse> {

View File

@ -34,6 +34,11 @@ package org.opensearch.action.get;
import org.opensearch.action.ActionType; import org.opensearch.action.ActionType;
/**
* Transport action to get a document
*
* @opensearch.internal
*/
public class GetAction extends ActionType<GetResponse> { public class GetAction extends ActionType<GetResponse> {
public static final GetAction INSTANCE = new GetAction(); public static final GetAction INSTANCE = new GetAction();

View File

@ -60,6 +60,8 @@ import static org.opensearch.action.ValidateActions.addValidationError;
* @see GetResponse * @see GetResponse
* @see org.opensearch.client.Requests#getRequest(String) * @see org.opensearch.client.Requests#getRequest(String)
* @see org.opensearch.client.Client#get(GetRequest) * @see org.opensearch.client.Client#get(GetRequest)
*
* @opensearch.internal
*/ */
public class GetRequest extends SingleShardRequest<GetRequest> implements RealtimeRequest { public class GetRequest extends SingleShardRequest<GetRequest> implements RealtimeRequest {

View File

@ -41,6 +41,8 @@ import org.opensearch.search.fetch.subphase.FetchSourceContext;
/** /**
* A get document action request builder. * A get document action request builder.
*
* @opensearch.internal
*/ */
public class GetRequestBuilder extends SingleShardOperationRequestBuilder<GetRequest, GetResponse, GetRequestBuilder> { public class GetRequestBuilder extends SingleShardOperationRequestBuilder<GetRequest, GetResponse, GetRequestBuilder> {

View File

@ -56,6 +56,8 @@ import java.util.Objects;
* *
* @see GetRequest * @see GetRequest
* @see org.opensearch.client.Client#get(GetRequest) * @see org.opensearch.client.Client#get(GetRequest)
*
* @opensearch.internal
*/ */
public class GetResponse extends ActionResponse implements Iterable<DocumentField>, ToXContentObject { public class GetResponse extends ActionResponse implements Iterable<DocumentField>, ToXContentObject {

View File

@ -34,6 +34,11 @@ package org.opensearch.action.get;
import org.opensearch.action.ActionType; import org.opensearch.action.ActionType;
/**
* Transport action for a multi get
*
* @opensearch.internal
*/
public class MultiGetAction extends ActionType<MultiGetResponse> { public class MultiGetAction extends ActionType<MultiGetResponse> {
public static final MultiGetAction INSTANCE = new MultiGetAction(); public static final MultiGetAction INSTANCE = new MultiGetAction();

View File

@ -40,6 +40,8 @@ import java.io.IOException;
/** /**
* A single multi get response. * A single multi get response.
*
* @opensearch.internal
*/ */
public class MultiGetItemResponse implements Writeable { public class MultiGetItemResponse implements Writeable {

View File

@ -66,6 +66,11 @@ import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
/**
* Transport request for a multi get.
*
* @opensearch.internal
*/
public class MultiGetRequest extends ActionRequest public class MultiGetRequest extends ActionRequest
implements implements
Iterable<MultiGetRequest.Item>, Iterable<MultiGetRequest.Item>,

View File

@ -37,6 +37,8 @@ import org.opensearch.client.OpenSearchClient;
/** /**
* A multi get document action request builder. * A multi get document action request builder.
*
* @opensearch.internal
*/ */
public class MultiGetRequestBuilder extends ActionRequestBuilder<MultiGetRequest, MultiGetResponse> { public class MultiGetRequestBuilder extends ActionRequestBuilder<MultiGetRequest, MultiGetResponse> {

View File

@ -52,6 +52,11 @@ import java.util.Arrays;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
/**
* Transport response for a multi get.
*
* @opensearch.internal
*/
public class MultiGetResponse extends ActionResponse implements Iterable<MultiGetItemResponse>, ToXContentObject { public class MultiGetResponse extends ActionResponse implements Iterable<MultiGetItemResponse>, ToXContentObject {
private static final ParseField INDEX = new ParseField("_index"); private static final ParseField INDEX = new ParseField("_index");

View File

@ -42,6 +42,11 @@ import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/**
* Multi get shards.
*
* @opensearch.internal
*/
public class MultiGetShardRequest extends SingleShardRequest<MultiGetShardRequest> { public class MultiGetShardRequest extends SingleShardRequest<MultiGetShardRequest> {
private int shardId; private int shardId;

View File

@ -41,6 +41,11 @@ import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/**
* Transport response for multi get shards.
*
* @opensearch.internal
*/
public class MultiGetShardResponse extends ActionResponse { public class MultiGetShardResponse extends ActionResponse {
final IntArrayList locations; final IntArrayList locations;

View File

@ -54,6 +54,8 @@ import java.io.IOException;
/** /**
* Performs the get operation. * Performs the get operation.
*
* @opensearch.internal
*/ */
public class TransportGetAction extends TransportSingleShardAction<GetRequest, GetResponse> { public class TransportGetAction extends TransportSingleShardAction<GetRequest, GetResponse> {

View File

@ -50,6 +50,11 @@ import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
/**
* Perform the multi get action.
*
* @opensearch.internal
*/
public class TransportMultiGetAction extends HandledTransportAction<MultiGetRequest, MultiGetResponse> { public class TransportMultiGetAction extends HandledTransportAction<MultiGetRequest, MultiGetResponse> {
private final ClusterService clusterService; private final ClusterService clusterService;

View File

@ -53,6 +53,11 @@ import org.opensearch.transport.TransportService;
import java.io.IOException; import java.io.IOException;
/**
* Perform the shard multi get action
*
* @opensearch.internal
*/
public class TransportShardMultiGetAction extends TransportSingleShardAction<MultiGetShardRequest, MultiGetShardResponse> { public class TransportShardMultiGetAction extends TransportSingleShardAction<MultiGetShardRequest, MultiGetShardResponse> {
private static final String ACTION_NAME = MultiGetAction.NAME + "[shard]"; private static final String ACTION_NAME = MultiGetAction.NAME + "[shard]";

View File

@ -34,6 +34,11 @@ package org.opensearch.action.index;
import org.opensearch.action.ActionType; import org.opensearch.action.ActionType;
/**
* Transport action for indexing a document.
*
* @opensearch.internal
*/
public class IndexAction extends ActionType<IndexResponse> { public class IndexAction extends ActionType<IndexResponse> {
public static final IndexAction INSTANCE = new IndexAction(); public static final IndexAction INSTANCE = new IndexAction();

View File

@ -88,6 +88,8 @@ import static org.opensearch.index.seqno.SequenceNumbers.UNASSIGNED_SEQ_NO;
* @see IndexResponse * @see IndexResponse
* @see org.opensearch.client.Requests#indexRequest(String) * @see org.opensearch.client.Requests#indexRequest(String)
* @see org.opensearch.client.Client#index(IndexRequest) * @see org.opensearch.client.Client#index(IndexRequest)
*
* @opensearch.internal
*/ */
public class IndexRequest extends ReplicatedWriteRequest<IndexRequest> implements DocWriteRequest<IndexRequest>, CompositeIndicesRequest { public class IndexRequest extends ReplicatedWriteRequest<IndexRequest> implements DocWriteRequest<IndexRequest>, CompositeIndicesRequest {

View File

@ -46,6 +46,8 @@ import java.util.Map;
/** /**
* An index document action request builder. * An index document action request builder.
*
* @opensearch.internal
*/ */
public class IndexRequestBuilder extends ReplicationRequestBuilder<IndexRequest, IndexResponse, IndexRequestBuilder> public class IndexRequestBuilder extends ReplicationRequestBuilder<IndexRequest, IndexResponse, IndexRequestBuilder>
implements implements

View File

@ -48,6 +48,8 @@ import static org.opensearch.common.xcontent.XContentParserUtils.ensureExpectedT
* *
* @see IndexRequest * @see IndexRequest
* @see org.opensearch.client.Client#index(IndexRequest) * @see org.opensearch.client.Client#index(IndexRequest)
*
* @opensearch.internal
*/ */
public class IndexResponse extends DocWriteResponse { public class IndexResponse extends DocWriteResponse {

View File

@ -49,6 +49,8 @@ import org.opensearch.transport.TransportService;
* </ul> * </ul>
* *
* Deprecated use TransportBulkAction with a single item instead * Deprecated use TransportBulkAction with a single item instead
*
* @opensearch.internal
*/ */
@Deprecated @Deprecated
public class TransportIndexAction extends TransportSingleItemBulkWriteAction<IndexRequest, IndexResponse> { public class TransportIndexAction extends TransportSingleItemBulkWriteAction<IndexRequest, IndexResponse> {

View File

@ -35,6 +35,11 @@ package org.opensearch.action.ingest;
import org.opensearch.action.ActionType; import org.opensearch.action.ActionType;
import org.opensearch.action.support.master.AcknowledgedResponse; import org.opensearch.action.support.master.AcknowledgedResponse;
/**
* Transport action to delete a pipeline
*
* @opensearch.internal
*/
public class DeletePipelineAction extends ActionType<AcknowledgedResponse> { public class DeletePipelineAction extends ActionType<AcknowledgedResponse> {
public static final DeletePipelineAction INSTANCE = new DeletePipelineAction(); public static final DeletePipelineAction INSTANCE = new DeletePipelineAction();

View File

@ -40,6 +40,11 @@ import org.opensearch.common.io.stream.StreamOutput;
import java.io.IOException; import java.io.IOException;
import java.util.Objects; import java.util.Objects;
/**
* transport request to delete a pipeline
*
* @opensearch.internal
*/
public class DeletePipelineRequest extends AcknowledgedRequest<DeletePipelineRequest> { public class DeletePipelineRequest extends AcknowledgedRequest<DeletePipelineRequest> {
private String id; private String id;

View File

@ -36,6 +36,11 @@ import org.opensearch.action.ActionRequestBuilder;
import org.opensearch.action.support.master.AcknowledgedResponse; import org.opensearch.action.support.master.AcknowledgedResponse;
import org.opensearch.client.OpenSearchClient; import org.opensearch.client.OpenSearchClient;
/**
* Transport request builder to delete a pipeline
*
* @opensearch.internal
*/
public class DeletePipelineRequestBuilder extends ActionRequestBuilder<DeletePipelineRequest, AcknowledgedResponse> { public class DeletePipelineRequestBuilder extends ActionRequestBuilder<DeletePipelineRequest, AcknowledgedResponse> {
public DeletePipelineRequestBuilder(OpenSearchClient client, DeletePipelineAction action) { public DeletePipelineRequestBuilder(OpenSearchClient client, DeletePipelineAction action) {

View File

@ -48,6 +48,11 @@ import org.opensearch.transport.TransportService;
import java.io.IOException; import java.io.IOException;
/**
* Perform the action of deleting a pipeline
*
* @opensearch.internal
*/
public class DeletePipelineTransportAction extends TransportMasterNodeAction<DeletePipelineRequest, AcknowledgedResponse> { public class DeletePipelineTransportAction extends TransportMasterNodeAction<DeletePipelineRequest, AcknowledgedResponse> {
private final IngestService ingestService; private final IngestService ingestService;

View File

@ -34,6 +34,11 @@ package org.opensearch.action.ingest;
import org.opensearch.action.ActionType; import org.opensearch.action.ActionType;
/**
* Transport action to get a pipeline
*
* @opensearch.internal
*/
public class GetPipelineAction extends ActionType<GetPipelineResponse> { public class GetPipelineAction extends ActionType<GetPipelineResponse> {
public static final GetPipelineAction INSTANCE = new GetPipelineAction(); public static final GetPipelineAction INSTANCE = new GetPipelineAction();

View File

@ -40,6 +40,11 @@ import org.opensearch.common.io.stream.StreamOutput;
import java.io.IOException; import java.io.IOException;
/**
* transport request to get a pipeline
*
* @opensearch.internal
*/
public class GetPipelineRequest extends MasterNodeReadRequest<GetPipelineRequest> { public class GetPipelineRequest extends MasterNodeReadRequest<GetPipelineRequest> {
private String[] ids; private String[] ids;

View File

@ -35,6 +35,11 @@ package org.opensearch.action.ingest;
import org.opensearch.action.support.master.MasterNodeReadOperationRequestBuilder; import org.opensearch.action.support.master.MasterNodeReadOperationRequestBuilder;
import org.opensearch.client.OpenSearchClient; import org.opensearch.client.OpenSearchClient;
/**
* Transport request builder to get a pipeline
*
* @opensearch.internal
*/
public class GetPipelineRequestBuilder extends MasterNodeReadOperationRequestBuilder< public class GetPipelineRequestBuilder extends MasterNodeReadOperationRequestBuilder<
GetPipelineRequest, GetPipelineRequest,
GetPipelineResponse, GetPipelineResponse,

View File

@ -53,6 +53,11 @@ import java.util.Map;
import static org.opensearch.common.xcontent.XContentParserUtils.ensureExpectedToken; import static org.opensearch.common.xcontent.XContentParserUtils.ensureExpectedToken;
/**
* transport response for getting a pipeline
*
* @opensearch.internal
*/
public class GetPipelineResponse extends ActionResponse implements StatusToXContentObject { public class GetPipelineResponse extends ActionResponse implements StatusToXContentObject {
private List<PipelineConfiguration> pipelines; private List<PipelineConfiguration> pipelines;

View File

@ -48,6 +48,11 @@ import org.opensearch.transport.TransportService;
import java.io.IOException; import java.io.IOException;
/**
* Perform the action of getting a pipeline
*
* @opensearch.internal
*/
public class GetPipelineTransportAction extends TransportMasterNodeReadAction<GetPipelineRequest, GetPipelineResponse> { public class GetPipelineTransportAction extends TransportMasterNodeReadAction<GetPipelineRequest, GetPipelineResponse> {
@Inject @Inject

Some files were not shown because too many files have changed in this diff Show More