public class AllocationExplanation extends Objectimplements 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.
| Modifier and Type | Class and Description |
|---|---|
static class |
AllocationExplanation
Instances of this class keep messages and informations about nodes of an allocation
|
| Modifier and Type | Field and Description |
|---|---|
static AllocationExplanation |
EMPTY
|
| Constructor and Description |
|---|
AllocationExplanation()
|
| Modifier and Type | Method and Description |
|---|---|
AllocationExplanation |
add(ShardId
Create and add a node explanation to this explanation referencing a shard
|
Map |
explanations()
List of explanations involved by this AllocationExplanation
|
static AllocationExplanation |
readAllocationExplanation(StreamInput
Read an
AllocationExplanation from an
StreamInput
|
void |
readFrom(StreamInput
|
void |
writeTo(StreamOutput
|
public static final AllocationExplanationEMPTY
public AllocationExplanationadd(ShardId shardId, AllocationExplanation .NodeExplanation nodeExplanation)
shardId - id the of the referenced shard
nodeExplanation - Explanation itself
public Map<ShardId ,List <AllocationExplanation .NodeExplanation >> explanations()
public static AllocationExplanationreadAllocationExplanation(StreamInput in) throws IOException
AllocationExplanation from an
StreamInput
in -
StreamInput to read from
AllocationExplanation read from the stream
IOException - if something bad happened while reading
public void readFrom(StreamInputin) throws IOException
readFrom in interface
Streamable
IOException
public void writeTo(StreamOutputout) throws IOException
writeTo in interface
Streamable
IOException