Class AddIndexBlockResponse.AddBlockShardResult.Failure

java.lang.Object
org.opensearch.core.action.ShardOperationFailedException
org.opensearch.core.action.support.DefaultShardOperationFailedException
org.opensearch.action.admin.indices.readonly.AddIndexBlockResponse.AddBlockShardResult.Failure
All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentObject
Enclosing class:
AddIndexBlockResponse.AddBlockShardResult

@PublicApi(since="1.0.0") public static class AddIndexBlockResponse.AddBlockShardResult.Failure extends org.opensearch.core.action.support.DefaultShardOperationFailedException
Contains failure information
Opensearch.api:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent

    org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable

    org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
  • Field Summary

    Fields inherited from class org.opensearch.core.action.support.DefaultShardOperationFailedException

    PARSER

    Fields inherited from class org.opensearch.core.action.ShardOperationFailedException

    cause, index, reason, shardId, status

    Fields inherited from interface org.opensearch.core.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    Failure(String index, int shardId, Throwable reason)
     
    Failure(String index, int shardId, Throwable reason, String nodeId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.opensearch.core.xcontent.XContentBuilder
    innerToXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params)
     
     
    void
    writeTo(org.opensearch.core.common.io.stream.StreamOutput out)
     

    Methods inherited from class org.opensearch.core.action.support.DefaultShardOperationFailedException

    declareFields, fromXContent, readFrom, readShardOperationFailed, toXContent

    Methods inherited from class org.opensearch.core.action.ShardOperationFailedException

    getCause, index, reason, shardId, status

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.opensearch.core.xcontent.ToXContentObject

    isFragment
  • Constructor Details

  • Method Details

    • getNodeId

      public String getNodeId()
    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Overrides:
      writeTo in class org.opensearch.core.action.support.DefaultShardOperationFailedException
      Throws:
      IOException
    • innerToXContent

      public org.opensearch.core.xcontent.XContentBuilder innerToXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException
      Overrides:
      innerToXContent in class org.opensearch.core.action.support.DefaultShardOperationFailedException
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class org.opensearch.core.action.support.DefaultShardOperationFailedException