Module org.elasticsearch.server
Class AddIndexBlockResponse.AddBlockResult
java.lang.Object
org.elasticsearch.action.admin.indices.readonly.AddIndexBlockResponse.AddBlockResult
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
- Enclosing class:
AddIndexBlockResponse
public static class AddIndexBlockResponse.AddBlockResult
extends Object
implements Writeable, ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionAddBlockResult(Index index) AddBlockResult(Index index, Exception failure) AddBlockResult(Index index, AddIndexBlockResponse.AddBlockShardResult[] shards) -
Method Summary
Modifier and TypeMethodDescriptiongetIndex()booleantoString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
AddBlockResult
-
AddBlockResult
-
AddBlockResult
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getIndex
-
getException
-
getShards
-
hasFailures
public boolean hasFailures() -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
toString
-