public interface BuildExtension
Allows plugging in current build info.
-
Method Summary
Modifier and TypeMethodDescriptionReturns theBuildVersion
for the running Elasticsearch code.default BuildVersion
fromNodeMetadata
(String version) Returns theBuildVersion
as read from node metadataReads aBuildVersion
from the given streamfromString
(String version) Returns theBuildVersion
for a given version string.fromVersionId
(int versionId) Returns theBuildVersion
for a given version identifier.Returns theBuild
that represents the running Elasticsearch code.default boolean
true
if this build uses release versions.
-
Method Details
-
getCurrentBuild
Build getCurrentBuild()Returns theBuild
that represents the running Elasticsearch code. -
hasReleaseVersioning
default boolean hasReleaseVersioning()true
if this build uses release versions. -
currentBuildVersion
BuildVersion currentBuildVersion()Returns theBuildVersion
for the running Elasticsearch code. -
fromVersionId
Returns theBuildVersion
for a given version identifier. -
fromNodeMetadata
Returns theBuildVersion
as read from node metadata -
fromString
Returns theBuildVersion
for a given version string. -
fromStream
Reads aBuildVersion
from the given stream- Throws:
IOException
-