public static class IndicesShardStoresResponse.StoreStatus extends Object implements Streamable, ToXContent, Comparable<IndicesShardStoresResponse.StoreStatus>
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
IndicesShardStoresResponse.StoreStatus.Allocation
The status of the shard store with respect to the cluster
|
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| コンストラクタと説明 |
|---|
StoreStatus(DiscoveryNode node,
long version,
IndicesShardStoresResponse.StoreStatus.Allocation allocation,
Throwable storeException) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 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 インタフェース内 StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent インタフェース内 ToXContentIOExceptionpublic int compareTo(IndicesShardStoresResponse.StoreStatus other)
compareTo インタフェース内 Comparable<IndicesShardStoresResponse.StoreStatus>Copyright © 2009–2016. All rights reserved.