Package com._1c.g5.v8.derived.pipeline
Class DerivedDataSegmentDefinition
java.lang.Object
com._1c.g5.v8.derived.pipeline.DerivedDataSegmentDefinition
Standard definition of the async derived data segment. Provides metainformation for configuration of DD pipeline and
the process of calculation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionDerivedDataSegmentDefinition
(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
Modifier and TypeMethodDescriptionint
boolean
isLazy()
boolean
void
setBucket
(DerivedDataSegmentBucket bucket) void
setConcurrency
(DerivedDataSegmentConcurrencyStrategy concurrency) void
setLazy
(boolean lazy) void
setPriority
(int priority) void
setSegmentId
(String segmentId)
-
Field Details
-
ORCHESTRATED
public static final int ORCHESTRATED- See Also:
-
TOP_PRIORITY
public static final int TOP_PRIORITY- See Also:
-
HIGH_PRIORITY
public static final int HIGH_PRIORITY- See Also:
-
NORMAL_PRIORITY
public static final int NORMAL_PRIORITY- See Also:
-
LOW_PRIORITY
public static final int LOW_PRIORITY- See Also:
-
-
Constructor Details
-
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 Details
-
getBucket
- Returns:
- the bucket
-
getComputationPolicy
- Returns:
- the computationPolicy
-
getConcurrency
- Returns:
- the concurrency
-
getPriority
public int getPriority()- Returns:
- the priority
-
getSegmentId
- Returns:
- the segmentId
-
getSegmentName
- Returns:
- the segmentName
-
getSegmentStatusTemplate
- Returns:
- the segmentStatusTemplate
-
isLazy
public boolean isLazy()- Returns:
- the lazy
-
isLongRunningSegment
public boolean isLongRunningSegment()- Returns:
- the longRunningSegment
-
setBucket
- Parameters:
bucket
- the bucket to set
-
setConcurrency
- 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
- Parameters:
segmentId
- the segmentId to set
-