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 ConstructingObjectParser<DesiredNode, Void> static final TransportVersionFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionDesiredNode(Settings settings, double processors, ByteSizeValue memory, ByteSizeValue storage) DesiredNode(Settings settings, DesiredNode.ProcessorsRange processorsRange, ByteSizeValue memory, ByteSizeValue storage) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbooleanstatic DesiredNodefromXContent(XContentParser parser) getRoles()inthashCode()booleanmemory()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_SUPPORT_TRANSPORT_VERSION
-
PARSER
-
-
Constructor Details
-
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
-
equals
-
equalsWithProcessorsCloseTo
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<DesiredNode>
-
toString
-