Package com.caplin.motif.utility
Class JsonUtils
java.lang.Object
com.caplin.motif.utility.JsonUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.fasterxml.jackson.databind.ObjectMapper
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S,
T extends SubjectInfo>
voidcreateJsonPublisher
(com.caplin.datasource.DataSource dataSource, com.caplin.datasource.namespace.Namespace namespace, SubjectParser<T> subjectParser, CachedObjectProvider<S, T> provider) static <S,
T extends SubjectInfo>
voidcreateJsonPublisher
(com.caplin.datasource.DataSource dataSource, com.caplin.datasource.namespace.Namespace namespace, SubjectParser<T> subjectParser, CachedObjectProvider<S, T> provider, String metricNamePrefix) static <S,
T extends SubjectInfo>
voidcreateJsonPublisher
(com.caplin.datasource.DataSource dataSource, String namespace, SubjectParser<T> subjectParser, CachedObjectProvider<S, T> provider) static void
setObjectMapper
(com.caplin.datasource.DataSource dataSource)
-
Field Details
-
objectMapper
public static final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Method Details
-
setObjectMapper
public static void setObjectMapper(com.caplin.datasource.DataSource dataSource) -
createJsonPublisher
public static <S,T extends SubjectInfo> void createJsonPublisher(com.caplin.datasource.DataSource dataSource, 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, String metricNamePrefix)
-