public class RepositoriesMetaData extends AbstractNamedDiffable<MetaData.Custom> implements MetaData.Custom
Writeable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE |
EMPTY_PARAMS| Constructor and Description |
|---|
RepositoriesMetaData(RepositoryMetaData... repositories)
Constructs new repository metadata
|
RepositoriesMetaData(StreamInput in) |
| Modifier and Type | Method and Description |
|---|---|
java.util.EnumSet<MetaData.XContentContext> |
context() |
boolean |
equals(java.lang.Object o) |
static RepositoriesMetaData |
fromXContent(XContentParser parser) |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
int |
hashCode() |
static NamedDiff<MetaData.Custom> |
readDiffFrom(StreamInput in) |
java.util.List<RepositoryMetaData> |
repositories()
Returns list of currently registered repositories
|
RepositoryMetaData |
repository(java.lang.String name)
Returns a repository with a given name or null if such repository doesn't exist
|
static void |
toXContent(RepositoryMetaData repository,
XContentBuilder builder,
ToXContent.Params params)
Serializes information about a single repository
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
diff, get, readDiffFromclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetMinimalSupportedVersionisFragmentpublic static final java.lang.String TYPE
public RepositoriesMetaData(RepositoryMetaData... repositories)
repositories - list of repositoriespublic RepositoriesMetaData(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic java.util.List<RepositoryMetaData> repositories()
public RepositoryMetaData repository(java.lang.String name)
name - name of repositorypublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getWriteableName()
getWriteableName in interface NamedWriteablepublic static NamedDiff<MetaData.Custom> readDiffFrom(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
public static RepositoriesMetaData fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic java.util.EnumSet<MetaData.XContentContext> context()
context in interface MetaData.Custompublic static void toXContent(RepositoryMetaData repository, XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
repository - repository metadatabuilder - XContent builderparams - serialization parametersjava.io.IOException