Package org.elasticsearch
Class Build
java.lang.Object
org.elasticsearch.Build
Information about a build of Elasticsearch.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBuild(Build.Flavor flavor, Build.Type type, String hash, String date, boolean isSnapshot, String version)
-
Method Summary
Modifier and TypeMethodDescriptiondate()
boolean
flavor()
Get the version as considered at build time Offers a way to get the fully qualified version as configured by the build.hash()
int
hashCode()
boolean
Provides information about the intent of the buildboolean
static Build
readBuild(StreamInput in)
toString()
type()
static void
writeBuild(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 asVersion
for 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()
-