Package org.elasticsearch
Class Build
java.lang.Object
org.elasticsearch.Build
Information about a build of Elasticsearch.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBuild(Build.Flavor flavor, Build.Type type, String hash, String date, boolean isSnapshot, String version) -
Method Summary
Modifier and TypeMethodDescriptiondate()booleanflavor()Get the version as considered at build time Offers a way to get the fully qualified version as configured by the build.hash()inthashCode()booleanProvides information about the intent of the buildbooleanstatic BuildreadBuild(StreamInput in)toString()type()static voidwriteBuild(Build build, StreamOutput out)
-
Field Details
-
CURRENT
The current build of Elasticsearch. Filled with information scanned at startup from the jar.
-
-
Constructor Details
-
Build
public Build(Build.Flavor flavor, Build.Type type, String hash, String date, boolean isSnapshot, String version)
-
-
Method Details
-
hash
-
date
-
readBuild
- Throws:
IOException
-
writeBuild
- Throws:
IOException
-
getQualifiedVersion
Get the version as considered at build time Offers a way to get the fully qualified version as configured by the build. This will be the same asVersionfor production releases, but may include on of the qualifier ( e.x alpha1 ) or -SNAPSHOT for others.- Returns:
- the fully qualified build
-
flavor
-
type
-
isSnapshot
public boolean isSnapshot() -
isProductionRelease
public boolean isProductionRelease()Provides information about the intent of the build- Returns:
- true if the build is intended for production use
-
toString
-
equals
-
hashCode
public int hashCode()
-