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 long
ACTIVE_THRESHOLD_SECONDS
protected static String
EMPTY_JSON_ARRAY
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, String created)
protected void
dumpStream(StringBuilder ret, com.fasterxml.jackson.databind.JsonNode item, Map<String,String> metrics)
protected com.fasterxml.jackson.databind.JsonNode
getActiveComputations(long atTimestamp)
String
getActivity()
String
getActivity(long atTimestamp)
protected String
getBatchInfo(com.fasterxml.jackson.databind.JsonNode item)
protected com.fasterxml.jackson.databind.JsonNode
getClusterNodes(long atTimestamp)
protected String
getComputationMetrics(String host, String name, com.fasterxml.jackson.databind.JsonNode item, Map<String,String> metrics)
String
getConsumers(String stream)
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 com.fasterxml.jackson.databind.JsonNode
getScaleMetrics(int workerCount, com.fasterxml.jackson.databind.node.ArrayNode computations)
protected String
getStreamEnd(Map<String,String> metrics, String name)
String
getStreams()
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)
-
-