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 static longACTIVE_THRESHOLD_SECONDSprotected static StringEMPTY_JSON_ARRAYprotected Stringjsonprotected static com.fasterxml.jackson.databind.ObjectMapperOBJECT_MAPPERprotected com.fasterxml.jackson.databind.JsonNoderoot
-
Constructor Summary
Constructors Constructor Description StreamIntrospectionConverter(String json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddumpComputation(String host, StringBuilder ret, com.fasterxml.jackson.databind.JsonNode item, Map<String,String> metrics, String created)protected voiddumpStream(StringBuilder ret, com.fasterxml.jackson.databind.JsonNode item, Map<String,String> metrics)protected com.fasterxml.jackson.databind.JsonNodegetActiveComputations(long atTimestamp)StringgetActivity()StringgetActivity(long atTimestamp)protected StringgetBatchInfo(com.fasterxml.jackson.databind.JsonNode item)protected com.fasterxml.jackson.databind.JsonNodegetClusterNodes(long atTimestamp)protected StringgetComputationMetrics(String host, String name, com.fasterxml.jackson.databind.JsonNode item, Map<String,String> metrics)StringgetConsumers(String stream)protected StringgetNiceDouble(Double number)protected StringgetNiceDouble3(Double number)StringgetPuml()protected StringgetPumlHeader(String title)protected StringgetPumlIdentifier(String name)protected StringgetPumlIdentifierForHost(String host, String id)protected com.fasterxml.jackson.databind.JsonNodegetScaleMetrics(int workerCount, com.fasterxml.jackson.databind.node.ArrayNode computations)protected StringgetStreamEnd(Map<String,String> metrics, String name)StringgetStreams()protected Map<String,String>parseMetrics()
-
-
-
Field Detail
-
OBJECT_MAPPER
protected static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
-
ACTIVE_THRESHOLD_SECONDS
protected static final long ACTIVE_THRESHOLD_SECONDS
- See Also:
- Constant Field Values
-
EMPTY_JSON_ARRAY
protected static final String EMPTY_JSON_ARRAY
- See Also:
- Constant Field Values
-
json
protected final String json
-
root
protected final com.fasterxml.jackson.databind.JsonNode root
-
-
Constructor Detail
-
StreamIntrospectionConverter
public StreamIntrospectionConverter(String json)
-
-
Method Detail
-
getStreams
public String getStreams()
-
getPuml
public String getPuml()
-
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, String created)
-
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)
-
getActivity
public String getActivity()
-
getActivity
public String getActivity(long atTimestamp)
-
getScaleMetrics
protected com.fasterxml.jackson.databind.JsonNode getScaleMetrics(int workerCount, com.fasterxml.jackson.databind.node.ArrayNode computations)
-
getActiveComputations
protected com.fasterxml.jackson.databind.JsonNode getActiveComputations(long atTimestamp)
-
getClusterNodes
protected com.fasterxml.jackson.databind.JsonNode getClusterNodes(long atTimestamp)
-
-