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)
    • 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>