public abstract class Decision extends Object implements ToXContent
Decision used during shard
allocation process.AllocationDecider| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
Decision.Multi
Simple class representing a list of decisions
|
static class |
Decision.Single
Simple class representing a single decision
|
static class |
Decision.Type
This enumeration defines the
possible types of decisions
|
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| 修飾子とタイプ | フィールドと説明 |
|---|---|
static Decision |
ALWAYS |
static Decision |
NO |
static Decision |
THROTTLE |
static Decision |
YES |
EMPTY_PARAMS| コンストラクタと説明 |
|---|
Decision() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
abstract String |
label() |
static Decision |
readFrom(StreamInput in) |
static Decision |
single(Decision.Type type,
String label,
String explanation,
Object... explanationParams)
Creates a simple decision
|
abstract Decision.Type |
type()
Get the
Decision.Type of this decision |
static void |
writeTo(Decision decision,
StreamOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoXContentpublic static final Decision ALWAYS
public static final Decision YES
public static final Decision NO
public static final Decision THROTTLE
public static Decision single(Decision.Type type, String label, String explanation, Object... explanationParams)
type - Decision.Type of the decisionlabel - label for the Decider that produced this decisionexplanation - explanation of the decisionexplanationParams - additional parameters for the decisionDecision instancepublic static void writeTo(Decision decision, StreamOutput out) throws IOException
IOExceptionpublic static Decision readFrom(StreamInput in) throws IOException
IOExceptionpublic abstract Decision.Type type()
Decision.Type of this decisionDecision.Type of this decisionpublic abstract String label()
Copyright © 2009–2016. All rights reserved.