Class AllocationExplainRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.cluster.AllocationExplainRequest
- All Implemented Interfaces:
ToJsonp
public final class AllocationExplainRequest extends RequestBase implements ToJsonp
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAllocationExplainRequest.BuilderBuilder forAllocationExplainRequest. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<AllocationExplainRequest>DESERIALIZERJson deserializer for AllocationExplainRequeststatic Endpoint<AllocationExplainRequest,AllocationExplainResponse,OpenSearchError>ENDPOINTEndpoint "cluster.allocation_explain". -
Constructor Summary
Constructors Modifier Constructor Description protectedAllocationExplainRequest(AllocationExplainRequest.Builder builder) -
Method Summary
Modifier and Type Method Description java.lang.StringcurrentNode()Specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node.java.lang.BooleanincludeDiskInfo()If true, returns information about disk usage and shard sizes.java.lang.BooleanincludeYesDecisions()If true, returns YES decisions in explanation.java.lang.Stringindex()Specifies the name of the index that you would like an explanation for.java.lang.Booleanprimary()If true, returns explanation for the primary shard for the given shard ID.protected static voidsetupAllocationExplainRequestDeserializer(DelegatingDeserializer<AllocationExplainRequest.Builder> op)java.lang.Numbershard()Specifies the ID of the shard that you would like an explanation for.voidtoJsonp(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidtoJsonpInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
Field Details
-
DESERIALIZER
Json deserializer for AllocationExplainRequest -
ENDPOINT
public static final Endpoint<AllocationExplainRequest,AllocationExplainResponse,OpenSearchError> ENDPOINTEndpoint "cluster.allocation_explain".
-
-
Constructor Details
-
Method Details
-
includeDiskInfo
@Nullable public java.lang.Boolean includeDiskInfo()If true, returns information about disk usage and shard sizes. API name:include_disk_info -
includeYesDecisions
@Nullable public java.lang.Boolean includeYesDecisions()If true, returns YES decisions in explanation. API name:include_yes_decisions -
currentNode
@Nullable public java.lang.String currentNode()Specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node. API name:current_node -
index
@Nullable public java.lang.String index()Specifies the name of the index that you would like an explanation for. API name:index -
primary
@Nullable public java.lang.Boolean primary()If true, returns explanation for the primary shard for the given shard ID. API name:primary -
shard
@Nullable public java.lang.Number shard()Specifies the ID of the shard that you would like an explanation for. API name:shard -
toJsonp
Serialize this object to JSON. -
toJsonpInternal
-
setupAllocationExplainRequestDeserializer
protected static void setupAllocationExplainRequestDeserializer(DelegatingDeserializer<AllocationExplainRequest.Builder> op)
-