java.lang.Object
org.elasticsearch.env.NodeMetadata
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 -
Constructor Summary
ConstructorsConstructorDescriptionNodeMetadata
(String nodeId, Version nodeVersion, Version oldestIndexVersion) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
nodeId()
When a node starts we read the existing node metadata from disk (see NodeEnvironment@loadNodeMetadata), store a reference to the node version that we read from there inpreviousNodeVersion
and then proceed to upgrade the version to the current version of the node (upgradeToCurrentVersion()
before storing the node metadata again on disk.toString()
void
-
Field Details
-
FORMAT
-
-
Constructor Details
-
NodeMetadata
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
nodeId
-
nodeVersion
-
previousNodeVersion
When a node starts we read the existing node metadata from disk (see NodeEnvironment@loadNodeMetadata), store a reference to the node version that we read from there inpreviousNodeVersion
and then proceed to upgrade the version to the current version of the node (upgradeToCurrentVersion()
before storing the node metadata again on disk. In doing so,previousNodeVersion
refers to the previously last known version that this node was started on. -
oldestIndexVersion
-
verifyUpgradeToCurrentVersion
public void verifyUpgradeToCurrentVersion() -
upgradeToCurrentVersion
-