Class ConfigVersion
- java.lang.Object
-
- com.floragunn.searchguard.sgconf.history.ConfigVersion
-
- All Implemented Interfaces:
Serializable,org.elasticsearch.common.io.stream.Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class ConfigVersion extends Object implements org.elasticsearch.common.xcontent.ToXContentObject, org.elasticsearch.common.io.stream.Writeable, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConfigVersion(com.floragunn.searchguard.sgconf.impl.CType configurationType, long version)ConfigVersion(org.elasticsearch.common.io.stream.StreamInput in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static ConfigVersionfromId(String id)com.floragunn.searchguard.sgconf.impl.CTypegetConfigurationType()longgetVersion()inthashCode()static ConfigVersionparse(com.fasterxml.jackson.databind.JsonNode jsonNode)StringtoId()StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(org.elasticsearch.common.io.stream.StreamOutput out)
-
-
-
Constructor Detail
-
ConfigVersion
public ConfigVersion(com.floragunn.searchguard.sgconf.impl.CType configurationType, long version)
-
ConfigVersion
public ConfigVersion(org.elasticsearch.common.io.stream.StreamInput in) throws IOException- Throws:
IOException
-
-
Method Detail
-
getConfigurationType
public com.floragunn.searchguard.sgconf.impl.CType getConfigurationType()
-
getVersion
public long getVersion()
-
toId
public String toId()
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
fromId
public static ConfigVersion fromId(String id)
-
parse
public static ConfigVersion 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
-
-