Class StreamIntrospectionConverter
- java.lang.Object
-
- org.nuxeo.ecm.core.bulk.introspection.StreamIntrospectionConverter
-
public class StreamIntrospectionConverter extends Object
- Since:
- 11.5
-
-
Field Summary
Fields Modifier and Type Field Description protected String
json
protected static com.fasterxml.jackson.databind.ObjectMapper
OBJECT_MAPPER
protected com.fasterxml.jackson.databind.JsonNode
root
-
Constructor Summary
Constructors Constructor Description StreamIntrospectionConverter(String json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dumpComputation(String host, StringBuilder ret, com.fasterxml.jackson.databind.JsonNode item, Map<String,String> metrics)
protected void
dumpStream(StringBuilder ret, com.fasterxml.jackson.databind.JsonNode item, Map<String,String> metrics)
protected String
getBatchInfo(com.fasterxml.jackson.databind.JsonNode item)
protected String
getComputationMetrics(String host, String name, com.fasterxml.jackson.databind.JsonNode item, Map<String,String> metrics)
protected String
getNiceDouble(Double number)
protected String
getNiceDouble3(Double number)
String
getPuml()
protected String
getPumlHeader(String title)
protected String
getPumlIdentifier(String name)
protected String
getPumlIdentifierForHost(String host, String id)
protected String
getStreamEnd(Map<String,String> metrics, String name)
protected Map<String,String>
parseMetrics()
-
-
-
Field Detail
-
OBJECT_MAPPER
protected static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
-
root
protected final com.fasterxml.jackson.databind.JsonNode root
-
-
Constructor Detail
-
StreamIntrospectionConverter
public StreamIntrospectionConverter(String json)
-
-
Method Detail
-
parseMetrics
protected Map<String,String> parseMetrics()
-
getNiceDouble
protected String getNiceDouble(Double number)
-
getNiceDouble3
protected String getNiceDouble3(Double number)
-
getPumlHeader
protected String getPumlHeader(String title)
-
getPumlIdentifierForHost
protected String getPumlIdentifierForHost(String host, String id)
-
dumpStream
protected void dumpStream(StringBuilder ret, com.fasterxml.jackson.databind.JsonNode item, Map<String,String> metrics)
-
dumpComputation
protected void dumpComputation(String host, StringBuilder ret, com.fasterxml.jackson.databind.JsonNode item, Map<String,String> metrics)
-
getComputationMetrics
protected String getComputationMetrics(String host, String name, com.fasterxml.jackson.databind.JsonNode item, Map<String,String> metrics)
-
getBatchInfo
protected String getBatchInfo(com.fasterxml.jackson.databind.JsonNode item)
-
getPumlIdentifier
protected String getPumlIdentifier(String name)
-
-