Class ConfigVersionSet

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ConfigVersionSet.Builder  
      • Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent

        org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.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 
      Modifier and Type Field Description
      static ConfigVersionSet EMPTY  
      • Fields inherited from interface org.elasticsearch.xcontent.ToXContent

        EMPTY_PARAMS
    • Constructor Detail

      • ConfigVersionSet

        public ConfigVersionSet​(Map<com.floragunn.searchguard.sgconf.impl.CType,​ConfigVersion> versionMap)
      • 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)
      • size

        public int size()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toXContent

        public org.elasticsearch.xcontent.XContentBuilder toXContent​(org.elasticsearch.xcontent.XContentBuilder builder,
                                                                     org.elasticsearch.xcontent.ToXContent.Params params)
                                                              throws IOException
        Specified by:
        toXContent in interface org.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:
        writeTo in interface org.elasticsearch.common.io.stream.Writeable
        Throws:
        IOException