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 int
HIGH_PRIORITY
static int
LOW_PRIORITY
static int
NORMAL_PRIORITY
static int
TOP_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 DerivedDataSegmentBucket
getBucket()
MultithreadingComputationPolicy
getComputationPolicy()
DerivedDataSegmentConcurrencyStrategy
getConcurrency()
int
getPriority()
String
getSegmentId()
String
getSegmentName()
String
getSegmentStatusTemplate()
boolean
isLazy()
boolean
isLongRunningSegment()
void
setBucket(DerivedDataSegmentBucket bucket)
void
setConcurrency(DerivedDataSegmentConcurrencyStrategy concurrency)
void
setLazy(boolean lazy)
void
setPriority(int priority)
void
setSegmentId(String segmentId)
-
-
-
Field Detail
-
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
-
-