Class StreamIntrospectionToScaleActivity
java.lang.Object
org.nuxeo.ecm.core.bulk.introspection.StreamIntrospectionToScaleActivity
- All Implemented Interfaces:
Function<StreamIntrospection,ScaleActivity>
public final class StreamIntrospectionToScaleActivity
extends Object
implements Function<StreamIntrospection,ScaleActivity>
- Since:
- 2025.12
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(StreamIntrospection streamIntrospection) protected ScaleActivity.ScalegetScaleMetrics(int workerCount, List<ScaleActivity.ActiveComputation> computations) toActiveComputation(StreamIntrospection streamIntrospection) protected ScaleActivity.ClusterNodetoClusterNode(StreamIntrospection.ProcessorMetadata processorMetadata, StreamIntrospection.Metrics metrics) protected List<ScaleActivity.ClusterNode>toClusterNodes(StreamIntrospection streamIntrospection)
-
Field Details
-
ACTIVE_THRESHOLD
-
ETA_THRESHOLD
-
BEST_ETA_THRESHOLD
-
activeInstant
-
-
Constructor Details
-
StreamIntrospectionToScaleActivity
public StreamIntrospectionToScaleActivity() -
StreamIntrospectionToScaleActivity
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<StreamIntrospection,ScaleActivity>
-
getScaleMetrics
protected ScaleActivity.Scale getScaleMetrics(int workerCount, List<ScaleActivity.ActiveComputation> computations) -
toClusterNodes
-
toClusterNode
protected ScaleActivity.ClusterNode toClusterNode(StreamIntrospection.ProcessorMetadata processorMetadata, StreamIntrospection.Metrics metrics) -
toActiveComputation
public List<ScaleActivity.ActiveComputation> toActiveComputation(StreamIntrospection streamIntrospection)
-