Package com._1c.g5.v8.derived
Class DerivedDataStatus
java.lang.Object
com._1c.g5.v8.derived.DerivedDataStatus
Integral status of derived data for a particular BM. Used by the
IDerivedDataStatusListener
to report
DD status changes to external consumers.-
Constructor Summary
ConstructorsConstructorDescriptionDerivedDataStatus
(DerivedDataSegmentBucket activeStage, PipelineStatus pipelineStatus, boolean modelSyncActive) Constructs a status instance -
Method Summary
Modifier and TypeMethodDescriptionGets active DD segments.Gets an active stage of a pipelineGets the current pipeline statusGets ready DD segments.boolean
Reports that BM model synchronization is under way, so DD processing is idle.
-
Constructor Details
-
DerivedDataStatus
public DerivedDataStatus(DerivedDataSegmentBucket activeStage, PipelineStatus pipelineStatus, boolean modelSyncActive) Constructs a status instance- Parameters:
activeStage
- The pipeline stage being active at the moment. Cannot benull
pipelineStatus
- The current pipeline status. Cannot benull
modelSyncActive
- The model synchronization phase activity flag
-
-
Method Details
-
getActivePipelineSegments
Gets active DD segments. All segments belong to the same bucket.- Returns:
- the activePipelineSegments
-
getPipelineStatus
Gets the current pipeline status- Returns:
- The current pipeline status. Never
null
-
getReadySegments
Gets ready DD segments. The segment ID is returned by this method in case if DD of this segment is calculated completely.- Returns:
- The set of DD segments ready to use. Never
null
-
isModelSyncActive
public boolean isModelSyncActive()Reports that BM model synchronization is under way, so DD processing is idle.- Returns:
- True in case if the model sync is active. False otherwise.
-
getActiveStage
Gets an active stage of a pipeline- Returns:
- The active stage of a pipeline. Never
null
-