public class AllocationExplanation extends Object implements Streamable
AllocationExplanation consists of a set of per node explanations.
Since AllocationExplanation.NodeExplanations are related to shards an AllocationExplanation maps
a shards id to a set of AllocationExplanation.NodeExplanations.| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
AllocationExplanation.NodeExplanation
Instances of this class keep messages and informations about nodes of an allocation
|
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static AllocationExplanation |
EMPTY |
| コンストラクタと説明 |
|---|
AllocationExplanation() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
AllocationExplanation |
add(ShardId shardId,
AllocationExplanation.NodeExplanation nodeExplanation)
Create and add a node explanation to this explanation referencing a shard
|
Map<ShardId,List<AllocationExplanation.NodeExplanation>> |
explanations()
List of explanations involved by this AllocationExplanation
|
static AllocationExplanation |
readAllocationExplanation(StreamInput in)
Read an
AllocationExplanation from an StreamInput |
void |
readFrom(StreamInput in) |
void |
writeTo(StreamOutput out) |
public static final AllocationExplanation EMPTY
public AllocationExplanation add(ShardId shardId, AllocationExplanation.NodeExplanation nodeExplanation)
shardId - id the of the referenced shardnodeExplanation - Explanation itselfpublic Map<ShardId,List<AllocationExplanation.NodeExplanation>> explanations()
public static AllocationExplanation readAllocationExplanation(StreamInput in) throws IOException
AllocationExplanation from an StreamInputin - StreamInput to read fromAllocationExplanation read from the streamIOException - if something bad happened while readingpublic void readFrom(StreamInput in) throws IOException
readFrom インタフェース内 StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamableIOExceptionCopyright © 2009–2016. All rights reserved.