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,ToXContent,ToXContentFragment
- Enclosing class:
- Decision
public static class Decision.Multi extends Decision implements ToXContentFragment
Simple class representing a list of decisions
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.cluster.routing.allocation.decider.Decision
Decision.Multi, Decision.Single, Decision.TypeNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
-
Constructor Summary
Constructors Constructor Description Multi() -
Method Summary
Modifier and Type Method Description Decision.Multiadd(Decision decision)Add a decision to thisDecision.Multidecision instancebooleanequals(java.lang.Object object)java.util.List<Decision>getDecisions()Return the list of all decisions that make up this decisionjava.lang.StringgetExplanation()Get the explanation for this decision.inthashCode()java.lang.Stringlabel()Get the description label for this decision.java.lang.StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)Decision.Typetype()Get theDecision.Typeof this decisionvoidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.cluster.routing.allocation.decider.Decision
readFrom, single
-
Constructor Details
-
Multi
public Multi()
-
-
Method Details
-
add
Add a decision to thisDecision.Multidecision instance- Parameters:
decision-Decisionto add- Returns:
Decision.Multidecision instance with the given decision added
-
type
Description copied from class:DecisionGet theDecision.Typeof this decision- Specified by:
typein classDecision- Returns:
Decision.Typeof this decision
-
label
Description copied from class:DecisionGet the description label for this decision. -
getExplanation
Description copied from class:DecisionGet the explanation for this decision.- Specified by:
getExplanationin classDecision
-
getDecisions
Description copied from class:DecisionReturn the list of all decisions that make up this decision- Specified by:
getDecisionsin classDecision
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.
-