Class Build


  • public class Build
    extends Object
    Information about a build of Elasticsearch.
    • Field Detail

      • CURRENT

        public static final Build CURRENT
        The current build of Elasticsearch. Filled with information scanned at startup from the jar.
    • Method Detail

      • getQualifiedVersion

        public String 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 as Version for production releases, but may include on of the qualifier ( e.x alpha1 ) or -SNAPSHOT for others.
        Returns:
        the fully qualified build
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object