Package com._1c.g5.v8.derived.pipeline
Class DerivedDataSegmentDefinition
- java.lang.Object
-
- com._1c.g5.v8.derived.pipeline.DerivedDataSegmentDefinition
-
public class DerivedDataSegmentDefinition extends Object
Standard definition of the async derived data segment. Provides metainformation for configuration of DD pipeline and the process of calculation.
-
-
Field Summary
Fields Modifier and Type Field Description static intHIGH_PRIORITYstatic intLOW_PRIORITYstatic intNORMAL_PRIORITYstatic intORCHESTRATEDstatic intTOP_PRIORITY
-
Constructor Summary
Constructors Constructor Description DerivedDataSegmentDefinition(String segmentId, DerivedDataSegmentBucket bucket, int priority, DerivedDataSegmentConcurrencyStrategy concurrency, MultithreadingComputationPolicy computationPolicy, String segmentName, String segmentStatusTemplate, boolean longRunningSegment)Creates an instance of the DD pipeline segment definition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DerivedDataSegmentBucketgetBucket()MultithreadingComputationPolicygetComputationPolicy()DerivedDataSegmentConcurrencyStrategygetConcurrency()intgetPriority()StringgetSegmentId()StringgetSegmentName()StringgetSegmentStatusTemplate()booleanisLazy()booleanisLongRunningSegment()voidsetBucket(DerivedDataSegmentBucket bucket)voidsetConcurrency(DerivedDataSegmentConcurrencyStrategy concurrency)voidsetLazy(boolean lazy)voidsetPriority(int priority)voidsetSegmentId(String segmentId)
-
-
-
Field Detail
-
ORCHESTRATED
public static final int ORCHESTRATED
- See Also:
- Constant Field Values
-
TOP_PRIORITY
public static final int TOP_PRIORITY
- See Also:
- Constant Field Values
-
HIGH_PRIORITY
public static final int HIGH_PRIORITY
- See Also:
- Constant Field Values
-
NORMAL_PRIORITY
public static final int NORMAL_PRIORITY
- See Also:
- Constant Field Values
-
LOW_PRIORITY
public static final int LOW_PRIORITY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DerivedDataSegmentDefinition
public DerivedDataSegmentDefinition(String segmentId, DerivedDataSegmentBucket bucket, int priority, DerivedDataSegmentConcurrencyStrategy concurrency, MultithreadingComputationPolicy computationPolicy, String segmentName, String segmentStatusTemplate, boolean longRunningSegment)
Creates an instance of the DD pipeline segment definition.- Parameters:
segmentId- The identifier of the segment.bucket- The DD pipeline bucket.priority- The priority of the computation.concurrency- The concurrency policy of the computation.computationPolicy- The meltithreading computation policy.segmentName- The user-readable segment name.segmentStatusTemplate- The computation status template for the rendering.longRunningSegment- Designates that the segment is long-running one so it needs special indication.
-
-
Method Detail
-
getBucket
public DerivedDataSegmentBucket getBucket()
- Returns:
- the bucket
-
getComputationPolicy
public MultithreadingComputationPolicy getComputationPolicy()
- Returns:
- the computationPolicy
-
getConcurrency
public DerivedDataSegmentConcurrencyStrategy getConcurrency()
- Returns:
- the concurrency
-
getPriority
public int getPriority()
- Returns:
- the priority
-
getSegmentId
public String getSegmentId()
- Returns:
- the segmentId
-
getSegmentName
public String getSegmentName()
- Returns:
- the segmentName
-
getSegmentStatusTemplate
public String getSegmentStatusTemplate()
- Returns:
- the segmentStatusTemplate
-
isLazy
public boolean isLazy()
- Returns:
- the lazy
-
isLongRunningSegment
public boolean isLongRunningSegment()
- Returns:
- the longRunningSegment
-
setBucket
public void setBucket(DerivedDataSegmentBucket bucket)
- Parameters:
bucket- the bucket to set
-
setConcurrency
public void setConcurrency(DerivedDataSegmentConcurrencyStrategy concurrency)
- Parameters:
concurrency- the concurrency to set
-
setLazy
public void setLazy(boolean lazy)
- Parameters:
lazy- the lazy to set
-
setPriority
public void setPriority(int priority)
- Parameters:
priority- the priority to set
-
setSegmentId
public void setSegmentId(String segmentId)
- Parameters:
segmentId- the segmentId to set
-
-