Module org.elasticsearch.server
Package org.elasticsearch.cluster.node
Record Class VersionInformation
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.node.VersionInformation
- Record Components:
buildVersion- The nodeBuildVersionminIndexVersion- The minimumIndexVersionsupported by this nodeminReadOnlyIndexVersion- The minimumIndexVersionfor read-only indices supported by this nodemaxIndexVersion- The maximumIndexVersionsupported by this node
public record VersionInformation(BuildVersion buildVersion, Version nodeVersion, IndexVersion minIndexVersion, IndexVersion minReadOnlyIndexVersion, IndexVersion maxIndexVersion)
extends Record
Represents the versions of various aspects of an Elasticsearch node.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVersionInformation(BuildVersion version, IndexVersion minIndexVersion, IndexVersion minReadOnlyIndexVersion, IndexVersion maxIndexVersion) VersionInformation(BuildVersion buildVersion, Version nodeVersion, IndexVersion minIndexVersion, IndexVersion minReadOnlyIndexVersion, IndexVersion maxIndexVersion) Creates an instance of aVersionInformationrecord class.VersionInformation(Version version, IndexVersion minIndexVersion, IndexVersion maxIndexVersion) Deprecated.VersionInformation(Version version, IndexVersion minIndexVersion, IndexVersion minReadOnlyIndexVersion, IndexVersion maxIndexVersion) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebuildVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static VersionInformationinferVersions(Version nodeVersion) Deprecated.Returns the value of themaxIndexVersionrecord component.Returns the value of theminIndexVersionrecord component.Returns the value of theminReadOnlyIndexVersionrecord component.Returns the value of thenodeVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CURRENT
-
-
Constructor Details
-
VersionInformation
public VersionInformation(BuildVersion buildVersion, Version nodeVersion, IndexVersion minIndexVersion, IndexVersion minReadOnlyIndexVersion, IndexVersion maxIndexVersion) Creates an instance of aVersionInformationrecord class.- Parameters:
buildVersion- the value for thebuildVersionrecord componentnodeVersion- the value for thenodeVersionrecord componentminIndexVersion- the value for theminIndexVersionrecord componentminReadOnlyIndexVersion- the value for theminReadOnlyIndexVersionrecord componentmaxIndexVersion- the value for themaxIndexVersionrecord component
-
VersionInformation
public VersionInformation(BuildVersion version, IndexVersion minIndexVersion, IndexVersion minReadOnlyIndexVersion, IndexVersion maxIndexVersion) -
VersionInformation
@Deprecated public VersionInformation(Version version, IndexVersion minIndexVersion, IndexVersion maxIndexVersion) Deprecated. -
VersionInformation
@Deprecated public VersionInformation(Version version, IndexVersion minIndexVersion, IndexVersion minReadOnlyIndexVersion, IndexVersion maxIndexVersion) Deprecated.
-
-
Method Details
-
inferVersions
Deprecated. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
buildVersion
Returns the value of thebuildVersionrecord component.- Returns:
- the value of the
buildVersionrecord component
-
nodeVersion
Returns the value of thenodeVersionrecord component.- Returns:
- the value of the
nodeVersionrecord component
-
minIndexVersion
Returns the value of theminIndexVersionrecord component.- Returns:
- the value of the
minIndexVersionrecord component
-
minReadOnlyIndexVersion
Returns the value of theminReadOnlyIndexVersionrecord component.- Returns:
- the value of the
minReadOnlyIndexVersionrecord component
-
maxIndexVersion
Returns the value of themaxIndexVersionrecord component.- Returns:
- the value of the
maxIndexVersionrecord component
-