public static class IndicesShardStoresResponse.StoreStatus extends java.lang.Object implements Streamable, ToXContentFragment, java.lang.Comparable<IndicesShardStoresResponse.StoreStatus>
Modifier and Type | Class and Description |
---|---|
static class |
IndicesShardStoresResponse.StoreStatus.AllocationStatus
The status of the shard store with respect to the cluster
|
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
StoreStatus(DiscoveryNode node,
java.lang.String allocationId,
IndicesShardStoresResponse.StoreStatus.AllocationStatus allocationStatus,
java.lang.Exception storeException) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IndicesShardStoresResponse.StoreStatus other) |
java.lang.String |
getAllocationId()
AllocationStatus id of the store, used to select the store that will be
used as a primary.
|
IndicesShardStoresResponse.StoreStatus.AllocationStatus |
getAllocationStatus()
The allocationStatus status of the store.
|
DiscoveryNode |
getNode()
Node the store belongs to
|
java.lang.Exception |
getStoreException()
Exception while trying to open the
shard index or from when the shard failed
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static IndicesShardStoresResponse.StoreStatus |
readStoreStatus(StreamInput in) |
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, toString, wait, wait, wait
isFragment
public StoreStatus(DiscoveryNode node, java.lang.String allocationId, IndicesShardStoresResponse.StoreStatus.AllocationStatus allocationStatus, java.lang.Exception storeException)
public DiscoveryNode getNode()
public java.lang.String getAllocationId()
public java.lang.Exception getStoreException()
public IndicesShardStoresResponse.StoreStatus.AllocationStatus getAllocationStatus()
IndicesShardStoresResponse.StoreStatus.AllocationStatus.PRIMARY
indicates a primary shard copy
IndicesShardStoresResponse.StoreStatus.AllocationStatus.REPLICA
indicates a replica shard copy
IndicesShardStoresResponse.StoreStatus.AllocationStatus.UNUSED
indicates an unused shard copypublic static IndicesShardStoresResponse.StoreStatus readStoreStatus(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public int compareTo(IndicesShardStoresResponse.StoreStatus other)
compareTo
in interface java.lang.Comparable<IndicesShardStoresResponse.StoreStatus>