Package org.elasticsearch
Class Build
- java.lang.Object
-
- org.elasticsearch.Build
-
public class Build extends java.lang.ObjectInformation about a build of Elasticsearch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBuild.Flavorstatic classBuild.Type
-
Constructor Summary
Constructors Constructor Description Build(Build.Flavor flavor, Build.Type type, java.lang.String shortHash, java.lang.String date, boolean isSnapshot)
-
Method Summary
Modifier and Type Method Description java.lang.Stringdate()booleanequals(java.lang.Object o)Build.Flavorflavor()inthashCode()booleanisSnapshot()static BuildreadBuild(StreamInput in)java.lang.StringshortHash()java.lang.StringtoString()Build.Typetype()static voidwriteBuild(Build build, StreamOutput out)
-
-
-
Field Detail
-
CURRENT
public static final Build CURRENT
The current build of Elasticsearch. Filled with information scanned at startup from the jar.
-
-
Constructor Detail
-
Build
public Build(Build.Flavor flavor, Build.Type type, java.lang.String shortHash, java.lang.String date, boolean isSnapshot)
-
-
Method Detail
-
shortHash
public java.lang.String shortHash()
-
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
-
flavor
public Build.Flavor flavor()
-
type
public Build.Type type()
-
isSnapshot
public boolean isSnapshot()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-