Package org.opensearch
Class Build
java.lang.Object
org.opensearch.Build
Information about a build of OpenSearch.
- Opensearch.internal:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CURRENT
The current build of OpenSearch. Filled with information scanned at startup from the jar.
-
-
Constructor Details
-
Build
public Build(Build.Type type, String hash, String date, boolean isSnapshot, String version, String distribution)
-
-
Method Details
-
hash
-
date
-
getDistribution
Get the distribution name (expected to be OpenSearch; empty if legacy; something else if forked)- Returns:
- distribution name as a string
-
getQualifiedVersion
Get the version as considered at build timeOffers a way to get the fully qualified version as configured by the build. This will be the same as
Versionfor production releases, but may include on of the qualifier ( e.x alpha1 ) or -SNAPSHOT for others.- Returns:
- the fully qualified build
-
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()
-