Class DerivedDataSegmentDefinitionV2
java.lang.Object
com._1c.g5.v8.derived.v2.pipeline.DerivedDataSegmentDefinitionV2
Derived data segment definition which uses segment dependencies to define its placement in the pipeline
-
Constructor Summary
ConstructorsConstructorDescriptionDerivedDataSegmentDefinitionV2
(String segmentId, DerivedDataSegmentBucket preferredSegment, DerivedDataSegmentConcurrencyStrategy concurrency, boolean operationSegment, String segmentName, String segmentStatusTemplate, boolean longRunningSegment, Set<String> dependsOn) Creates an instance of the DD pipeline segment definition.DerivedDataSegmentDefinitionV2
(String segmentId, DerivedDataSegmentBucket preferredSegment, DerivedDataSegmentConcurrencyStrategy concurrency, String segmentName, String segmentStatusTemplate, Set<String> dependsOn) Creates an instance of the DD pipeline data segment definition -
Method Summary
Modifier and TypeMethodDescriptionGets the concurrency policy for the segmentGets the set of dependencies for this segmentGets the preferred async. pipeline execution stage for this segmentGets the segment identifier for this segment.Gets a human-readable name of the segmentGets the human-readable template which is used to display the progress of the segment data computation.boolean
Checks if this segment is a long-running one.boolean
Checks if this segment is an operation one
-
Constructor Details
-
DerivedDataSegmentDefinitionV2
public DerivedDataSegmentDefinitionV2(String segmentId, DerivedDataSegmentBucket preferredSegment, DerivedDataSegmentConcurrencyStrategy concurrency, boolean operationSegment, String segmentName, String segmentStatusTemplate, boolean longRunningSegment, Set<String> dependsOn) Creates an instance of the DD pipeline segment definition.- Parameters:
segmentId
- The identifier of the segment. Cannot benull
. Must be globally uniquepreferredSegment
- The preferred DD pipeline segment. Non-priority tasks will be placed in this bucket. Cannot benull
concurrency
- The concurrency policy of the computation. Cannot benull
operationSegment
- The managed operation segment flagsegmentName
- The user-readable segment name. Cannot benull
segmentStatusTemplate
- The computation status template for the rendering. Cannot benull
longRunningSegment
- Designates that the segment is long-running one so it needs special indicationdependsOn
- The set of segments the current segments depends on. Cannot benull
-
DerivedDataSegmentDefinitionV2
public DerivedDataSegmentDefinitionV2(String segmentId, DerivedDataSegmentBucket preferredSegment, DerivedDataSegmentConcurrencyStrategy concurrency, String segmentName, String segmentStatusTemplate, Set<String> dependsOn) Creates an instance of the DD pipeline data segment definition- Parameters:
segmentId
- The identifier of the segment. Cannot benull
. Must be globally uniquepreferredSegment
- The preferred DD pipeline segment. Non-priority tasks will be placed in this bucket. Cannot benull
concurrency
- The concurrency policy of the computation. Cannot benull
segmentName
- The user-readable segment name. Cannot benull
segmentStatusTemplate
- The computation status template for the rendering. Cannot benull
dependsOn
- The set of segments the current segments depends on. Cannot benull
-
-
Method Details
-
getPreferredStage
Gets the preferred async. pipeline execution stage for this segment- Returns:
- The pipeline stage. Cannot be
null
-
getConcurrency
Gets the concurrency policy for the segment- Returns:
- The concurrency policy. Cannot be
null
-
getSegmentId
Gets the segment identifier for this segment. Must be globally unique- Returns:
- The segment unique identifier. Cannot be
null
-
getSegmentName
Gets a human-readable name of the segment- Returns:
- The name of the segment. Cannot be
null
-
getSegmentStatusTemplate
Gets the human-readable template which is used to display the progress of the segment data computation. During the status displaying the async. computation subsystem supplies two parameters which may be used in this template - current number of computed units and the total number of registered computation units- Returns:
- The segment status template. Cannot be
null
-
isLongRunningSegment
public boolean isLongRunningSegment()Checks if this segment is a long-running one. Long-running segments have no exact progress indicator and their progress is being displayed as a cycling indicator- Returns:
- True if the segmet is a long-runnig one
-
getDependsOn
Gets the set of dependencies for this segment- Returns:
- The set of segments the current segment depends on. Cannot be
null
-
isOperationSegment
public boolean isOperationSegment()Checks if this segment is an operation one- Returns:
- True if the segment is an operation segment
-