Package org.elasticsearch.env
Class NodeMetaData
java.lang.Object
org.elasticsearch.env.NodeMetaData
public final class NodeMetaData
extends java.lang.Object
Metadata associated with this node: its persistent node ID and its version.
The metadata is persisted in the data folder of this node and is reused across restarts.
-
Field Summary
Fields Modifier and Type Field Description static MetaDataStateFormat<NodeMetaData>FORMAT -
Constructor Summary
Constructors Constructor Description NodeMetaData(java.lang.String nodeId, Version nodeVersion) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()java.lang.StringnodeId()VersionnodeVersion()java.lang.StringtoString()NodeMetaDataupgradeToCurrentVersion()
-
Field Details
-
Constructor Details
-
Method Details
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
nodeId
public java.lang.String nodeId() -
nodeVersion
-
upgradeToCurrentVersion
-