Class XPackInfoResponse

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class XPackInfoResponse extends ActionResponse implements org.elasticsearch.xcontent.ToXContentObject
  • Field Details

    • BASIC_SELF_GENERATED_LICENSE_EXPIRATION_MILLIS

      public static final long BASIC_SELF_GENERATED_LICENSE_EXPIRATION_MILLIS
      Value of the license's expiration time if it should never expire.
  • Constructor Details

  • Method Details

    • getBuildInfo

      public XPackInfoResponse.BuildInfo getBuildInfo()
      Returns:
      The build info (incl. build hash and timestamp)
    • getLicenseInfo

      public XPackInfoResponse.LicenseInfo getLicenseInfo()
      Returns:
      The current license info (incl. UID, type/mode. status and expiry date). May return null when no license is currently installed.
    • getFeatureSetsInfo

      public XPackInfoResponse.FeatureSetsInfo getFeatureSetsInfo()
      Returns:
      The current status of the feature sets in X-Pack. Feature sets describe the features available/enabled in X-Pack.
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

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

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException