Class ElasticsearchDistribution

java.lang.Object
org.elasticsearch.gradle.ElasticsearchDistribution
All Implemented Interfaces:
Iterable<File>, org.gradle.api.Buildable

public class ElasticsearchDistribution extends Object implements org.gradle.api.Buildable, Iterable<File>
  • Field Details

  • Method Details

    • getName

      public String getName()
    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String version)
    • isDetachedVersion

      public boolean isDetachedVersion()
      Informs if the version is not tied to any Elasticsearch release and is a custom build. This is true when the distribution is not from HEAD but also not any known released version. In that case the detached source build needs to be prepared by `usedBwcDistributionFromRef(ref, version)`.
    • setDetachedVersion

      public void setDetachedVersion(boolean detachedVersion)
    • getPlatform

      public ElasticsearchDistribution.Platform getPlatform()
    • setPlatform

      public void setPlatform(ElasticsearchDistribution.Platform platform)
    • getType

    • setType

      public void setType(ElasticsearchDistributionType type)
    • setType

      public void setType(String type)
      For simplicity only public distribution types are supported here
    • getBundledJdk

      public boolean getBundledJdk()
    • isDocker

      public boolean isDocker()
    • setBundledJdk

      public void setBundledJdk(Boolean bundledJdk)
    • getFailIfUnavailable

      public boolean getFailIfUnavailable()
    • setFailIfUnavailable

      public void setFailIfUnavailable(boolean failIfUnavailable)
    • getPreferArchive

      public boolean getPreferArchive()
    • setPreferArchive

      public void setPreferArchive(boolean preferArchive)
    • setArchitecture

      public void setArchitecture(Architecture architecture)
    • getArchitecture

      public Architecture getArchitecture()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • maybeFreeze

      public ElasticsearchDistribution maybeFreeze()
      if not executed before, this freezes the distribution configuration and runs distribution finalizer logic.
    • getFilepath

      public String getFilepath()
    • getExtracted

      public org.gradle.api.file.ConfigurableFileCollection getExtracted()
    • getBuildDependencies

      public org.gradle.api.tasks.TaskDependency getBuildDependencies()
      Specified by:
      getBuildDependencies in interface org.gradle.api.Buildable
    • iterator

      public Iterator<File> iterator()
      Specified by:
      iterator in interface Iterable<File>