public static class IndicesShardStoresResponse.StoreStatus extends Object implements Streamable, ToXContent, Comparable<IndicesShardStoresResponse.StoreStatus>
| Modifier and Type | Class and Description |
|---|---|
static class |
IndicesShardStoresResponse.StoreStatus.Allocation
The status of the shard store with respect to the cluster
|
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
IndicesShardStoresResponse.StoreStatus(DiscoveryNode node,
long version,
IndicesShardStoresResponse.StoreStatus.Allocation allocation,
Throwable storeException) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(IndicesShardStoresResponse.StoreStatus other) |
IndicesShardStoresResponse.StoreStatus.Allocation |
getAllocation()
The allocation status of the store.
|
DiscoveryNode |
getNode()
Node the store belongs to
|
Throwable |
getStoreException()
Exception while trying to open the
shard index or from when the shard failed
|
long |
getVersion()
Version of the store, used to select the store that will be
used as a primary.
|
void |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public IndicesShardStoresResponse.StoreStatus(DiscoveryNode node, long version, IndicesShardStoresResponse.StoreStatus.Allocation allocation, Throwable storeException)
public DiscoveryNode getNode()
public long getVersion()
public Throwable getStoreException()
public IndicesShardStoresResponse.StoreStatus.Allocation getAllocation()
IndicesShardStoresResponse.StoreStatus.Allocation.PRIMARY indicates a primary shard copy
IndicesShardStoresResponse.StoreStatus.Allocation.REPLICA indicates a replica shard copy
IndicesShardStoresResponse.StoreStatus.Allocation.UNUSED indicates an unused shard copypublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic int compareTo(IndicesShardStoresResponse.StoreStatus other)
compareTo in interface Comparable<IndicesShardStoresResponse.StoreStatus>Copyright © 2009–2017. All rights reserved.