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 classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final NodeFeature
static final NodeFeature
static final ConstructingObjectParser<DesiredNode,
Void> static final TransportVersion
static final NodeFeature
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionDesiredNode
(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 TypeMethodDescriptionboolean
clusterHasRequiredFeatures
(Predicate<NodeFeature> clusterHasFeature) int
boolean
boolean
static DesiredNode
fromXContent
(XContentParser parser) getRoles()
int
hashCode()
boolean
boolean
memory()
static DesiredNode
readFrom
(StreamInput in) int
settings()
storage()
void
toInnerXContent
(XContentBuilder builder, ToXContent.Params params) toString()
toXContent
(XContentBuilder builder, ToXContent.Params params) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
fromXContent
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in 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:
compareTo
in interfaceComparable<DesiredNode>
-
toString
-
hasVersion
public boolean hasVersion()
-