Class StreamIntrospectionConverter
java.lang.Object
org.nuxeo.ecm.core.bulk.introspection.StreamIntrospectionConverter
- Since:
- 11.5
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.JsonNodegetActiveComputations(long atTimestamp) getActivity(long atTimestamp) protected com.fasterxml.jackson.databind.JsonNodegetClusterNodes(long atTimestamp) getConsumers(String stream) getD2()Gets the D2 diagram format with filtering options.getPuml()protected com.fasterxml.jackson.databind.JsonNodegetScaleMetrics(int workerCount, com.fasterxml.jackson.databind.node.ArrayNode computations) protected com.fasterxml.jackson.databind.node.ObjectNodeinitComputation(String key)
-
Field Details
-
OBJECT_MAPPER
protected static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER -
ACTIVE_THRESHOLD_SECONDS
protected static final long ACTIVE_THRESHOLD_SECONDS- See Also:
-
ETA_THRESHOLD_SECONDS
protected static final int ETA_THRESHOLD_SECONDS- See Also:
-
BEST_ETA_THRESHOLD_SECONDS
protected static final int BEST_ETA_THRESHOLD_SECONDS- See Also:
-
EMPTY_JSON_ARRAY
- See Also:
-
json
-
root
protected final com.fasterxml.jackson.databind.JsonNode root
-
-
Constructor Details
-
StreamIntrospectionConverter
-
-
Method Details
-
getStreams
-
getConsumers
-
getPuml
-
getD2
-
getD2
Gets the D2 diagram format with filtering options.- Parameters:
excludePatterns- list of patterns to exclude (e.g., Arrays.asList("work/", "bulk/"))excludeInactive- whether to exclude inactive computations (computation-idle class) and empty streams (stream-empty class)- Returns:
- the D2 diagram as a string
-
getActivity
-
getActivity
-
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) -
initComputation
-
getClusterNodes
protected com.fasterxml.jackson.databind.JsonNode getClusterNodes(long atTimestamp)
-