Package org.elasticsearch
Class Build
org.elasticsearch.Build
public class Build
extends
Information about a build of Elasticsearch.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBuild(Build.Flavor flavor, Build.Type type, hash, date, boolean isSnapshot, version)
-
Method Summary
Modifier and TypeMethodDescriptiondate()
boolean
o)
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)
Methods inherited from class java.lang.
, , , , , , ,
-
Field Details
-
CURRENT
The current build of Elasticsearch. Filled with information scanned at startup from the jar.
-
-
Constructor Details
-
Build
-
-
Method Details
-
hash
public hash() -
date
public date() -
readBuild
- Throws:
-
writeBuild
- Throws:
-
getQualifiedVersion
public 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
public toString()- Overrides:
in class
-
equals
public boolean equals( o)- Overrides:
in class
-
hashCode
public int hashCode()- Overrides:
in class
-