Class XPackFeatureUsage

java.lang.Object
org.elasticsearch.xpack.core.XPackFeatureUsage
All Implemented Interfaces:
NamedWriteable, VersionedNamedWriteable, Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject
Direct Known Subclasses:
AggregateMetricFeatureSetUsage, AnalyticsFeatureSetUsage, ArchiveFeatureSetUsage, DataStreamFeatureSetUsage, DataStreamLifecycleFeatureSetUsage, DataTiersFeatureSetUsage, EnrichFeatureSetUsage, EnterpriseSearchFeatureSetUsage, EqlFeatureSetUsage, EsqlFeatureSetUsage, FrozenIndicesFeatureSetUsage, GraphFeatureSetUsage, HealthApiFeatureSetUsage, IndexLifecycleFeatureSetUsage, InferenceFeatureSetUsage, LogsDBFeatureSetUsage, LogstashFeatureSetUsage, MachineLearningFeatureSetUsage, MonitoringFeatureSetUsage, ProfilingUsage, RemoteClusterFeatureSetUsage, RollupFeatureSetUsage, SearchableSnapshotFeatureSetUsage, SecurityFeatureSetUsage, SLMFeatureSetUsage, SpatialFeatureSetUsage, SqlFeatureSetUsage, TransformFeatureSetUsage, VotingOnlyNodeFeatureSetUsage, WatcherFeatureSetUsage

public abstract class XPackFeatureUsage extends Object implements org.elasticsearch.xcontent.ToXContentObject, VersionedNamedWriteable
  • Field Details

    • name

      protected final String name
    • available

      protected final boolean available
    • enabled

      protected final boolean enabled
  • Constructor Details

    • XPackFeatureUsage

      public XPackFeatureUsage(StreamInput input) throws IOException
      Throws:
      IOException
    • XPackFeatureUsage

      public XPackFeatureUsage(String name, boolean available, boolean enabled)
  • Method Details

    • name

      public String name()
    • available

      public boolean available()
    • enabled

      public boolean enabled()
    • getWriteableName

      public String getWriteableName()
      Specified by:
      getWriteableName in interface NamedWriteable
      Specified by:
      getWriteableName in interface VersionedNamedWriteable
    • writeTo

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

      public final 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
    • innerXContent

      protected void innerXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Throws:
      IOException