Class DerivedDataStatus

java.lang.Object
com._1c.g5.v8.derived.DerivedDataStatus

public class DerivedDataStatus extends Object
Integral status of derived data for a particular BM. Used by the IDerivedDataStatusListener to report DD status changes to external consumers.
  • 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 be null
      pipelineStatus - The current pipeline status. Cannot be null
      modelSyncActive - The model synchronization phase activity flag
  • Method Details

    • getActivePipelineSegments

      public Map<String,PipelineSegmentStatus> getActivePipelineSegments()
      Gets active DD segments. All segments belong to the same bucket.
      Returns:
      the activePipelineSegments
    • getPipelineStatus

      public PipelineStatus getPipelineStatus()
      Gets the current pipeline status
      Returns:
      The current pipeline status. Never null
    • getReadySegments

      public Set<String> 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

      public DerivedDataSegmentBucket getActiveStage()
      Gets an active stage of a pipeline
      Returns:
      The active stage of a pipeline. Never null