Class ConfigVersionSet
- java.lang.Object
-
- com.floragunn.searchguard.sgconf.history.ConfigVersionSet
-
- All Implemented Interfaces:
Serializable,Iterable<ConfigVersion>,org.elasticsearch.common.io.stream.Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class ConfigVersionSet extends Object implements Iterable<ConfigVersion>, org.elasticsearch.xcontent.ToXContentObject, org.elasticsearch.common.io.stream.Writeable, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfigVersionSet.Builder
-
Field Summary
Fields Modifier and Type Field Description static ConfigVersionSetEMPTY
-
Constructor Summary
Constructors Constructor Description ConfigVersionSet(Collection<ConfigVersion> versions)ConfigVersionSet(Map<com.floragunn.searchguard.sgconf.impl.CType,ConfigVersion> versionMap)ConfigVersionSet(org.elasticsearch.common.io.stream.StreamInput in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)static ConfigVersionSetfrom(Map<com.floragunn.searchguard.sgconf.impl.CType,com.floragunn.searchguard.sgconf.impl.SgDynamicConfiguration<?>> configByType)ConfigVersionget(com.floragunn.searchguard.sgconf.impl.CType configurationType)inthashCode()Iterator<ConfigVersion>iterator()static ConfigVersionSetparse(com.fasterxml.jackson.databind.JsonNode jsonNode)intsize()org.elasticsearch.xcontent.XContentBuildertoCompactXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)StringtoString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)static ConfigVersionSet.Builderwith(com.floragunn.searchguard.sgconf.impl.CType configurationType, long version)voidwriteTo(org.elasticsearch.common.io.stream.StreamOutput out)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
EMPTY
public static final ConfigVersionSet EMPTY
-
-
Constructor Detail
-
ConfigVersionSet
public ConfigVersionSet(Map<com.floragunn.searchguard.sgconf.impl.CType,ConfigVersion> versionMap)
-
ConfigVersionSet
public ConfigVersionSet(Collection<ConfigVersion> versions)
-
ConfigVersionSet
public ConfigVersionSet(org.elasticsearch.common.io.stream.StreamInput in) throws IOException- Throws:
IOException
-
-
Method Detail
-
with
public static ConfigVersionSet.Builder with(com.floragunn.searchguard.sgconf.impl.CType configurationType, long version)
-
from
public static ConfigVersionSet from(Map<com.floragunn.searchguard.sgconf.impl.CType,com.floragunn.searchguard.sgconf.impl.SgDynamicConfiguration<?>> configByType)
-
get
public ConfigVersion get(com.floragunn.searchguard.sgconf.impl.CType configurationType)
-
iterator
public Iterator<ConfigVersion> iterator()
- Specified by:
iteratorin interfaceIterable<ConfigVersion>
-
size
public int size()
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
toCompactXContent
public org.elasticsearch.xcontent.XContentBuilder toCompactXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException- Throws:
IOException
-
parse
public static ConfigVersionSet parse(com.fasterxml.jackson.databind.JsonNode jsonNode) throws com.floragunn.searchsupport.config.validation.ConfigValidationException
- Throws:
com.floragunn.searchsupport.config.validation.ConfigValidationException
-
writeTo
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws IOException- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Throws:
IOException
-
-