Class JsonUtils


  • public final class JsonUtils
    extends java.lang.Object
    • Field Detail

      • objectMapper

        public static final com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • Method Detail

      • setObjectMapper

        public static void setObjectMapper​(com.caplin.datasource.DataSource dataSource)
      • createJsonPublisher

        public static <S,​T extends SubjectInfo> void createJsonPublisher​(com.caplin.datasource.DataSource dataSource,
                                                                               java.lang.String namespace,
                                                                               SubjectParser<T> subjectParser,
                                                                               CachedObjectProvider<S,​T> provider)
      • createJsonPublisher

        public static <S,​T extends SubjectInfo> void createJsonPublisher​(com.caplin.datasource.DataSource dataSource,
                                                                               com.caplin.datasource.namespace.Namespace namespace,
                                                                               SubjectParser<T> subjectParser,
                                                                               CachedObjectProvider<S,​T> provider)
      • createJsonPublisher

        public static <S,​T extends SubjectInfo> void createJsonPublisher​(com.caplin.datasource.DataSource dataSource,
                                                                               com.caplin.datasource.namespace.Namespace namespace,
                                                                               SubjectParser<T> subjectParser,
                                                                               CachedObjectProvider<S,​T> provider,
                                                                               java.lang.String metricNamePrefix)