public static class IndicesShardStoresResponse.StoreStatus extends java.lang.Object implements Streamable, ToXContent, 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.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
StoreStatus(DiscoveryNode node,
long legacyVersion,
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.
|
long |
getLegacyVersion()
Version of the store for pre-3.0 shards that have not yet been active
|
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, waitisFragmentpublic StoreStatus(DiscoveryNode node, long legacyVersion, java.lang.String allocationId, IndicesShardStoresResponse.StoreStatus.AllocationStatus allocationStatus, java.lang.Exception storeException)
public DiscoveryNode getNode()
public long getLegacyVersion()
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.IOExceptionpublic 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 int compareTo(IndicesShardStoresResponse.StoreStatus other)
compareTo in interface java.lang.Comparable<IndicesShardStoresResponse.StoreStatus>