ClusterState.FeatureAware, Diffable<MetaData.Custom>, MetaData.Custom, NamedDiffable<MetaData.Custom>, NamedWriteable, VersionedNamedWriteable, Writeable, ToXContent, ToXContentFragmentpublic class RepositoriesMetaData extends AbstractNamedDiffable<MetaData.Custom> implements MetaData.Custom
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
TYPE |
EMPTY_PARAMS| Constructor | Description |
|---|---|
RepositoriesMetaData(RepositoryMetaData... repositories) |
Constructs new repository metadata
|
RepositoriesMetaData(StreamInput in) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.EnumSet<MetaData.XContentContext> |
context() |
|
boolean |
equals(java.lang.Object o) |
|
static RepositoriesMetaData |
fromXContent(XContentParser parser) |
|
Version |
getMinimalSupportedVersion() |
The minimal version of the recipient this object can be sent to
|
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, readDiffFromgetRequiredFeatureclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentpublic 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 NamedWriteablegetWriteableName in interface VersionedNamedWriteablepublic Version getMinimalSupportedVersion()
VersionedNamedWriteablegetMinimalSupportedVersion in interface VersionedNamedWriteablepublic 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