Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent

        org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
      • Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

        org.elasticsearch.common.io.stream.Writeable.Reader<V extends Object>, org.elasticsearch.common.io.stream.Writeable.Writer<V extends Object>
    • Field Summary

      • Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

        EMPTY_PARAMS
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfigVersion​(com.floragunn.searchguard.sgconf.impl.CType configurationType, long version)  
      ConfigVersion​(org.elasticsearch.common.io.stream.StreamInput in)  
    • 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()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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:
        toXContent in interface org.elasticsearch.common.xcontent.ToXContent
        Throws:
        IOException
      • 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:
        writeTo in interface org.elasticsearch.common.io.stream.Writeable
        Throws:
        IOException