Class Build

java.lang.Object
org.elasticsearch.Build

public class Build
extends java.lang.Object
Information about a build of Elasticsearch.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  Build.Flavor  
    static class  Build.Type  
  • Field Summary

    Fields
    Modifier and Type Field Description
    static Build CURRENT
    The current build of Elasticsearch.
  • Constructor Summary

    Constructors
    Constructor Description
    Build​(Build.Flavor flavor, Build.Type type, java.lang.String hash, java.lang.String date, boolean isSnapshot, java.lang.String version)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String date()  
    boolean equals​(java.lang.Object o)  
    Build.Flavor flavor()  
    java.lang.String getQualifiedVersion()
    Get the version as considered at build time Offers a way to get the fully qualified version as configured by the build.
    java.lang.String hash()  
    int hashCode()  
    boolean isProductionRelease()
    Provides information about the intent of the build
    boolean isSnapshot()  
    static Build readBuild​(StreamInput in)  
    java.lang.String toString()  
    Build.Type type()  
    static void writeBuild​(Build build, StreamOutput out)  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • CURRENT

      public static final Build 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, java.lang.String hash, java.lang.String date, boolean isSnapshot, java.lang.String version)
  • Method Details

    • hash

      public java.lang.String hash()
    • date

      public java.lang.String date()
    • readBuild

      public static Build readBuild​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
    • writeBuild

      public static void writeBuild​(Build build, StreamOutput out) throws java.io.IOException
      Throws:
      java.io.IOException
    • getQualifiedVersion

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

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object