Skip to content

Commit

Permalink
[Javadocs] add to o.o.action, index, and transport (#3277)
Browse files Browse the repository at this point in the history
Adds javadocs to internal classes in org.opensearch.action, index, and transport
packages.

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
  • Loading branch information
nknize authored May 10, 2022
1 parent a3030b5 commit b78176a
Show file tree
Hide file tree
Showing 270 changed files with 2,736 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ protected static void parseInnerToXContent(XContentParser parser, Builder contex
* Base class of all {@link DocWriteResponse} builders. These {@link DocWriteResponse.Builder} are used during
* xcontent parsing to temporarily store the parsed values, then the {@link Builder#build()} method is called to
* instantiate the appropriate {@link DocWriteResponse} with the parsed values.
*
* @opensearch.internal
*/
public abstract static class Builder {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ protected NodeHotThreads nodeOperation(NodeRequest request) {
}
}

/**
* Inner node request
*
* @opensearch.internal
*/
public static class NodeRequest extends BaseNodeRequest {

NodesHotThreadsRequest request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ protected NodeInfo nodeOperation(NodeInfoRequest nodeRequest) {
);
}

/**
* Inner Node Info Request
*
* @opensearch.internal
*/
public static class NodeInfoRequest extends BaseNodeRequest {

NodesInfoRequest request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ public String toString() {
}
}

/**
* Inner Node Response
*
* @opensearch.internal
*/
public static class NodeResponse extends BaseNodeResponse {

private Exception reloadException = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ protected NodesReloadSecureSettingsResponse.NodeResponse nodeOperation(NodeReque
}
}

/**
* Inner Node Request
*
* @opensearch.internal
*/
public static class NodeRequest extends BaseNodeRequest {

NodesReloadSecureSettingsRequest request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ protected NodeStats nodeOperation(NodeStatsRequest nodeStatsRequest) {
);
}

/**
* Inner Node Stats Request
*
* @opensearch.internal
*/
public static class NodeStatsRequest extends BaseNodeRequest {

NodesStatsRequest request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ public static Builder builder(TaskInfo taskInfo) {
return new Builder(taskInfo);
}

/**
* Builder for the Task Group
*
* @opensearch.internal
*/
public static class Builder {
private TaskInfo taskInfo;
private List<Builder> childTasks;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ protected NodeUsage nodeOperation(NodeUsageRequest nodeUsageRequest) {
return new NodeUsage(clusterService.localNode(), System.currentTimeMillis(), sinceTime, restUsage, aggsUsage);
}

/**
* Inner Node Usage Request
*
* @opensearch.internal
*/
public static class NodeUsageRequest extends BaseNodeRequest {

NodesUsageRequest request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ public class VerifyRepositoryResponse extends ActionResponse implements ToXConte
static final String NODES = "nodes";
static final String NAME = "name";

/**
* Inner Node View
*
* @opensearch.internal
*/
public static class NodeView implements Writeable, ToXContentObject {
private static final ObjectParser.NamedObjectParser<NodeView, Void> PARSER;
static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ private void submitStateUpdate(final ClusterRerouteRequest request, final Action
);
}

/**
* Inner Reroute Response Acknowledged the Cluster State Update
*
* @opensearch.internal
*/
static class ClusterRerouteResponseAckedClusterStateUpdateTask extends AckedClusterStateUpdateTask<ClusterRerouteResponse> {

private final ClusterRerouteRequest request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeOptionalString(failure);
}

/**
* Inner Fields used for creating XContent and parsing
*
* @opensearch.internal
*/
static final class Fields {
static final String STAGE = "stage";
static final String REASON = "reason";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ public Iterator<SnapshotIndexShardStatus> iterator() {
return indexShards.values().iterator();
}

/**
* Inner Fields used for creating XContent and parsing
*
* @opensearch.internal
*/
static final class Fields {
static final String SHARDS = "shards";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ public int getTotalShards() {
return totalShards;
}

/**
* Inner Fields used for creating XContent and parsing
*
* @opensearch.internal
*/
static final class Fields {
static final String SHARDS_STATS = "shards_stats";
static final String INITIALIZING = "initializing";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeVLong(totalSize);
}

/**
* Inner Fields used for creating XContent and parsing
*
* @opensearch.internal
*/
static final class Fields {
static final String STATS = "stats";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ protected NodeSnapshotStatus nodeOperation(NodeRequest request) {
}
}

/**
* Inner Request
*
* @opensearch.internal
*/
public static class Request extends BaseNodesRequest<Request> {

private Snapshot[] snapshots;
Expand All @@ -171,6 +176,11 @@ public void writeTo(StreamOutput out) throws IOException {
}
}

/**
* Inner Node Snapshot Status
*
* @opensearch.internal
*/
public static class NodesSnapshotStatus extends BaseNodesResponse<NodeSnapshotStatus> {

public NodesSnapshotStatus(StreamInput in) throws IOException {
Expand All @@ -192,6 +202,11 @@ protected void writeNodesTo(StreamOutput out, List<NodeSnapshotStatus> nodes) th
}
}

/**
* Inner Node Request
*
* @opensearch.internal
*/
public static class NodeRequest extends BaseNodeRequest {

private final List<Snapshot> snapshots;
Expand All @@ -212,6 +227,11 @@ public void writeTo(StreamOutput out) throws IOException {
}
}

/**
* Inner Node Shapshot Status
*
* @opensearch.internal
*/
public static class NodeSnapshotStatus extends BaseNodeResponse {

private final Map<Snapshot, Map<ShardId, SnapshotIndexShardStatus>> status;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ public AnalysisStats getAnalysis() {
return analysis;
}

/**
* Inner Fields used for creating XContent and parsing
*
* @opensearch.internal
*/
static final class Fields {
static final String COUNT = "count";
}
Expand All @@ -172,6 +177,11 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
return builder;
}

/**
* Inner Shard Stats
*
* @opensearch.internal
*/
public static class ShardStats implements ToXContentFragment {

int indices;
Expand Down Expand Up @@ -316,6 +326,11 @@ public void addIndexShardCount(ShardStats indexShardCount) {
}
}

/**
* Inner Fields used for creating XContent and parsing
*
* @opensearch.internal
*/
static final class Fields {
static final String SHARDS = "shards";
static final String TOTAL = "total";
Expand Down
Loading

0 comments on commit b78176a

Please sign in to comment.