Class IndicesShardStoresResponse.StoreStatus
- java.lang.Object
-
- org.elasticsearch.action.admin.indices.shards.IndicesShardStoresResponse.StoreStatus
-
- All Implemented Interfaces:
Comparable<IndicesShardStoresResponse.StoreStatus>,Writeable,ToXContent,ToXContentFragment
- Enclosing class:
- IndicesShardStoresResponse
public static class IndicesShardStoresResponse.StoreStatus extends Object implements Writeable, ToXContentFragment, Comparable<IndicesShardStoresResponse.StoreStatus>
Shard store information from a node
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndicesShardStoresResponse.StoreStatus.AllocationStatusThe status of the shard store with respect to the cluster-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description StoreStatus(DiscoveryNode node, String allocationId, IndicesShardStoresResponse.StoreStatus.AllocationStatus allocationStatus, Exception storeException)StoreStatus(StreamInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(IndicesShardStoresResponse.StoreStatus other)StringgetAllocationId()AllocationStatus id of the store, used to select the store that will be used as a primary.IndicesShardStoresResponse.StoreStatus.AllocationStatusgetAllocationStatus()The allocationStatus status of the store.DiscoveryNodegetNode()Node the store belongs toExceptiongetStoreException()Exception while trying to open the shard index or from when the shard failedXContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
StoreStatus
public StoreStatus(StreamInput in) throws IOException
- Throws:
IOException
-
StoreStatus
public StoreStatus(DiscoveryNode node, String allocationId, IndicesShardStoresResponse.StoreStatus.AllocationStatus allocationStatus, Exception storeException)
-
-
Method Detail
-
getNode
public DiscoveryNode getNode()
Node the store belongs to
-
getAllocationId
public String getAllocationId()
AllocationStatus id of the store, used to select the store that will be used as a primary.
-
getStoreException
public Exception getStoreException()
Exception while trying to open the shard index or from when the shard failed
-
getAllocationStatus
public IndicesShardStoresResponse.StoreStatus.AllocationStatus getAllocationStatus()
The allocationStatus status of the store.IndicesShardStoresResponse.StoreStatus.AllocationStatus.PRIMARYindicates a primary shard copyIndicesShardStoresResponse.StoreStatus.AllocationStatus.REPLICAindicates a replica shard copyIndicesShardStoresResponse.StoreStatus.AllocationStatus.UNUSEDindicates an unused shard copy
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
compareTo
public int compareTo(IndicesShardStoresResponse.StoreStatus other)
- Specified by:
compareToin interfaceComparable<IndicesShardStoresResponse.StoreStatus>
-
-