Class TestCustomMetadata

java.lang.Object
org.elasticsearch.cluster.AbstractNamedDiffable<org.elasticsearch.cluster.metadata.Metadata.Custom>
org.elasticsearch.test.TestCustomMetadata
All Implemented Interfaces:
org.elasticsearch.cluster.ClusterState.FeatureAware, org.elasticsearch.cluster.Diffable<org.elasticsearch.cluster.metadata.Metadata.Custom>, org.elasticsearch.cluster.metadata.Metadata.Custom, org.elasticsearch.cluster.NamedDiffable<org.elasticsearch.cluster.metadata.Metadata.Custom>, org.elasticsearch.common.io.stream.NamedWriteable, org.elasticsearch.common.io.stream.VersionedNamedWriteable, org.elasticsearch.common.io.stream.Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public abstract class TestCustomMetadata extends org.elasticsearch.cluster.AbstractNamedDiffable<org.elasticsearch.cluster.metadata.Metadata.Custom> implements org.elasticsearch.cluster.metadata.Metadata.Custom
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent

    org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

    org.elasticsearch.common.io.stream.Writeable.Reader<V extends Object>, org.elasticsearch.common.io.stream.Writeable.Writer<V extends Object>
  • Field Summary

    Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals​(Object o)
     
    static <T extends org.elasticsearch.cluster.metadata.Metadata.Custom>
    T
    fromXContent​(Function<String,​org.elasticsearch.cluster.metadata.Metadata.Custom> supplier, org.elasticsearch.common.xcontent.XContentParser parser)
     
     
    int
     
    static org.elasticsearch.cluster.NamedDiff<org.elasticsearch.cluster.metadata.Metadata.Custom>
    readDiffFrom​(String name, org.elasticsearch.common.io.stream.StreamInput in)
     
    protected static <T extends TestCustomMetadata>
    T
    readFrom​(Function<String,​T> supplier, org.elasticsearch.common.io.stream.StreamInput in)
     
     
    org.elasticsearch.common.xcontent.XContentBuilder
    toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
     
    void
    writeTo​(org.elasticsearch.common.io.stream.StreamOutput out)
     

    Methods inherited from class org.elasticsearch.cluster.AbstractNamedDiffable

    diff, get, readDiffFrom

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.elasticsearch.cluster.ClusterState.FeatureAware

    getRequiredFeature

    Methods inherited from interface org.elasticsearch.cluster.Diffable

    diff

    Methods inherited from interface org.elasticsearch.cluster.metadata.Metadata.Custom

    context

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment

    isFragment

    Methods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable

    getMinimalSupportedVersion, getWriteableName
  • Constructor Details

    • TestCustomMetadata

      protected TestCustomMetadata(String data)
  • Method Details

    • getData

      public String getData()
    • equals

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

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

      protected static <T extends TestCustomMetadata> T readFrom(Function<String,​T> supplier, org.elasticsearch.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
    • readDiffFrom

      public static org.elasticsearch.cluster.NamedDiff<org.elasticsearch.cluster.metadata.Metadata.Custom> readDiffFrom(String name, org.elasticsearch.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
    • writeTo

      public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.elasticsearch.common.io.stream.Writeable
      Throws:
      IOException
    • fromXContent

      public static <T extends org.elasticsearch.cluster.metadata.Metadata.Custom> T fromXContent(Function<String,​org.elasticsearch.cluster.metadata.Metadata.Custom> supplier, org.elasticsearch.common.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • toXContent

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

      public String toString()
      Overrides:
      toString in class Object