Streamable, ToXContent, ToXContentObjectpublic static class ReplicationResponse.ShardInfo extends java.lang.Object implements Streamable, ToXContentObject
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ReplicationResponse.ShardInfo.Failure |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor | Description |
|---|---|
ShardInfo() |
|
ShardInfo(int total,
int successful,
ReplicationResponse.ShardInfo.Failure... failures) |
| Modifier and Type | Method | Description |
|---|---|---|
static ReplicationResponse.ShardInfo |
fromXContent(XContentParser parser) |
|
int |
getFailed() |
|
ReplicationResponse.ShardInfo.Failure[] |
getFailures() |
|
int |
getSuccessful() |
|
int |
getTotal() |
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
static ReplicationResponse.ShardInfo |
readShardInfo(StreamInput in) |
|
RestStatus |
status() |
|
java.lang.String |
toString() |
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewWriteableReaderisFragmentpublic ShardInfo()
public ShardInfo(int total,
int successful,
ReplicationResponse.ShardInfo.Failure... failures)
public int getTotal()
public int getSuccessful()
public int getFailed()
public ReplicationResponse.ShardInfo.Failure[] getFailures()
public RestStatus status()
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic static ReplicationResponse.ShardInfo fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic static ReplicationResponse.ShardInfo readShardInfo(StreamInput in) throws java.io.IOException
java.io.IOException