java.lang.Object
org.elasticsearch.cluster.metadata.DesiredNode
- All Implemented Interfaces:
Comparable<DesiredNode>,Writeable,ToXContent,ToXContentObject
public final class DesiredNode
extends Object
implements Writeable, ToXContentObject, Comparable<DesiredNode>
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier and TypeFieldDescriptionstatic final NodeFeaturestatic final NodeFeaturestatic final ConstructingObjectParser<DesiredNode, Void> static final TransportVersionstatic final NodeFeatureFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionDesiredNode(Settings settings, double processors, ByteSizeValue memory, ByteSizeValue storage) DesiredNode(Settings settings, double processors, ByteSizeValue memory, ByteSizeValue storage, String version) Deprecated.DesiredNode(Settings settings, DesiredNode.ProcessorsRange processorsRange, ByteSizeValue memory, ByteSizeValue storage) DesiredNode(Settings settings, DesiredNode.ProcessorsRange processorsRange, ByteSizeValue memory, ByteSizeValue storage, String version) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanclusterHasRequiredFeatures(Predicate<NodeFeature> clusterHasFeature) intbooleanbooleanstatic DesiredNodefromXContent(XContentParser parser) getRoles()inthashCode()booleanbooleanmemory()static DesiredNodereadFrom(StreamInput in) intsettings()storage()voidtoInnerXContent(XContentBuilder builder, ToXContent.Params params) toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
RANGE_FLOAT_PROCESSORS_SUPPORTED
-
DOUBLE_PROCESSORS_SUPPORTED
-
DESIRED_NODE_VERSION_DEPRECATED
-
RANGE_FLOAT_PROCESSORS_SUPPORT_TRANSPORT_VERSION
-
PARSER
-
-
Constructor Details
-
DesiredNode
@Deprecated public DesiredNode(Settings settings, DesiredNode.ProcessorsRange processorsRange, ByteSizeValue memory, ByteSizeValue storage, String version) Deprecated. -
DesiredNode
@Deprecated public DesiredNode(Settings settings, double processors, ByteSizeValue memory, ByteSizeValue storage, String version) Deprecated. -
DesiredNode
public DesiredNode(Settings settings, DesiredNode.ProcessorsRange processorsRange, ByteSizeValue memory, ByteSizeValue storage) -
DesiredNode
public DesiredNode(Settings settings, double processors, ByteSizeValue memory, ByteSizeValue storage)
-
-
Method Details
-
readFrom
- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
fromXContent
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
toInnerXContent
- Throws:
IOException
-
hasMasterRole
public boolean hasMasterRole() -
settings
-
minProcessors
-
roundedDownMinProcessors
public int roundedDownMinProcessors() -
maxProcessors
-
roundedUpMaxProcessors
-
memory
-
storage
-
externalId
-
getRoles
-
clusterHasRequiredFeatures
-
equals
-
equalsWithProcessorsCloseTo
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<DesiredNode>
-
toString
-
hasVersion
public boolean hasVersion()
-