Package org.elasticsearch.test
Class TestClusterCustomMetadata
java.lang.Object
org.elasticsearch.cluster.AbstractNamedDiffable<Metadata.ClusterCustom>
org.elasticsearch.test.TestClusterCustomMetadata
- All Implemented Interfaces:
Diffable<Metadata.ClusterCustom>,Metadata.ClusterCustom,Metadata.MetadataCustom<Metadata.ClusterCustom>,NamedDiffable<Metadata.ClusterCustom>,NamedWriteable,VersionedNamedWriteable,Writeable,ChunkedToXContent
public abstract class TestClusterCustomMetadata
extends AbstractNamedDiffable<Metadata.ClusterCustom>
implements Metadata.ClusterCustom
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic <T extends Metadata.ClusterCustom>
TfromXContent(Function<String, T> supplier, org.elasticsearch.xcontent.XContentParser parser) getData()inthashCode()static NamedDiff<Metadata.ClusterCustom> readDiffFrom(String name, StreamInput in) static <T extends TestClusterCustomMetadata>
TreadFrom(Function<String, T> supplier, StreamInput in) toString()Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params ignored) voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.cluster.AbstractNamedDiffable
diff, get, readDiffFromMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
isFragment, toXContentChunked, toXContentChunkedV8Methods inherited from interface org.elasticsearch.cluster.metadata.Metadata.MetadataCustom
context, isRestorableMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getMinimalSupportedVersion, getWriteableName, supportsVersion
-
Constructor Details
-
TestClusterCustomMetadata
-
-
Method Details
-
getData
-
equals
-
hashCode
public int hashCode() -
readFrom
public static <T extends TestClusterCustomMetadata> T readFrom(Function<String, T> supplier, StreamInput in) throws IOException- Throws:
IOException
-
readDiffFrom
public static NamedDiff<Metadata.ClusterCustom> readDiffFrom(String name, StreamInput in) throws IOException - Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
fromXContent
public static <T extends Metadata.ClusterCustom> T fromXContent(Function<String, T> supplier, org.elasticsearch.xcontent.XContentParser parser) throws IOException- Throws:
IOException
-
toXContentChunked
public Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params ignored) - Specified by:
toXContentChunkedin interfaceChunkedToXContent
-
toString
-