public interface BuildExtension
Allows plugging in current build info.
-
Method Summary
Modifier and TypeMethodDescriptionReturns theBuildVersionfor the running Elasticsearch code.default BuildVersionfromNodeMetadata(String version) Returns theBuildVersionas read from node metadataReads aBuildVersionfrom the given streamfromString(String version) Returns theBuildVersionfor a given version string.fromVersionId(int versionId) Returns theBuildVersionfor a given version identifier.Returns theBuildthat represents the running Elasticsearch code.default booleantrueif this build uses release versions.
-
Method Details
-
getCurrentBuild
Build getCurrentBuild()Returns theBuildthat represents the running Elasticsearch code. -
hasReleaseVersioning
default boolean hasReleaseVersioning()trueif this build uses release versions. -
currentBuildVersion
BuildVersion currentBuildVersion()Returns theBuildVersionfor the running Elasticsearch code. -
fromVersionId
Returns theBuildVersionfor a given version identifier. -
fromNodeMetadata
Returns theBuildVersionas read from node metadata -
fromString
Returns theBuildVersionfor a given version string. -
fromStream
Reads aBuildVersionfrom the given stream- Throws:
IOException
-