Module org.elasticsearch.server
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
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.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
Fields inherited from class org.elasticsearch.cluster.routing.allocation.decider.Decision
ALWAYS, NO, THROTTLE, YESFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier 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()toXContent(XContentBuilder builder, 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.Decision
readFrom, singleMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
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
-
hashCode
public int hashCode() -
toString
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-