Class Build

java.lang.Object
org.elasticsearch.Build

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

    • CURRENT

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

  • Method Details

    • hash

      public String hash()
    • date

      public String date()
    • readBuild

      public static Build readBuild(StreamInput in) throws IOException
      Throws:
      IOException
    • writeBuild

      public static void writeBuild(Build build, StreamOutput out) throws IOException
      Throws:
      IOException
    • 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
    • flavor

      public Build.Flavor flavor()
    • type

      public Build.Type 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 String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object