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, readDiffFrom
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getMinimalSupportedVersion
isFragment
public static final java.lang.String TYPE
public RepositoriesMetaData(RepositoryMetaData... repositories)
repositories
- list of repositoriespublic RepositoriesMetaData(StreamInput in) throws java.io.IOException
java.io.IOException
public 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getWriteableName()
getWriteableName
in interface NamedWriteable
public static NamedDiff<MetaData.Custom> readDiffFrom(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
public static RepositoriesMetaData fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public java.util.EnumSet<MetaData.XContentContext> context()
context
in interface MetaData.Custom
public static void toXContent(RepositoryMetaData repository, XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
repository
- repository metadatabuilder
- XContent builderparams
- serialization parametersjava.io.IOException