Class Decision.Multi
java.lang.Object
org.elasticsearch.cluster.routing.allocation.decider.Decision
org.elasticsearch.cluster.routing.allocation.decider.Decision.Multi
- All Implemented Interfaces:
- Writeable,- org.elasticsearch.common.xcontent.ToXContent,- org.elasticsearch.common.xcontent.ToXContentFragment
- Enclosing class:
- Decision
public static class Decision.Multi
extends Decision
implements org.elasticsearch.common.xcontent.ToXContentFragment
Simple class representing a list of decisions
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.cluster.routing.allocation.decider.DecisionDecision.Multi, Decision.Single, Decision.TypeNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContentorg.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from class org.elasticsearch.cluster.routing.allocation.decider.DecisionALWAYS, NO, THROTTLE, YESFields inherited from interface org.elasticsearch.common.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionAdd a decision to thisDecision.Multidecision instancebooleanReturn the list of all decisions that make up this decisionGet the explanation for this decision.inthashCode()label()Get the description label for this decision.toString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)type()Get theDecision.Typeof this decisionvoidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.cluster.routing.allocation.decider.DecisionreadFrom, singleMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragmentisFragment
- 
Constructor Details- 
Multipublic Multi()
 
- 
- 
Method Details- 
addAdd a decision to thisDecision.Multidecision instance- Parameters:
- decision-- Decisionto add
- Returns:
- Decision.Multidecision instance with the given decision added
 
- 
typeDescription copied from class:DecisionGet theDecision.Typeof this decision- Specified by:
- typein class- Decision
- Returns:
- Decision.Typeof this decision
 
- 
labelDescription copied from class:DecisionGet the description label for this decision.
- 
getExplanationDescription copied from class:DecisionGet the explanation for this decision.- Specified by:
- getExplanationin class- Decision
 
- 
getDecisionsDescription copied from class:DecisionReturn the list of all decisions that make up this decision- Specified by:
- getDecisionsin class- Decision
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
- 
toXContentpublic org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
- toXContentin interface- org.elasticsearch.common.xcontent.ToXContent
- Throws:
- IOException
 
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
 
-