Class AsyncProcessingTask
java.lang.Object
com._1c.g5.v8.internal.derived.pipeline.AsyncProcessingTask
Async DD processing task definition. Contains an information for DD executor to perform computations.
Serves as a result desitination for the data exchange between the async. pipeline and DD executor.
Serves as a result desitination for the data exchange between the async. pipeline and DD executor.
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncProcessingTask
(String segmentId, Object objectId, boolean operation, boolean modal, DerivedDataSegmentBucket targetStage) Creates the task for the given segment and object. -
Method Summary
Modifier and TypeMethodDescriptionGets the identifier of the object associated with the task.Gets the DD segment associated with the task.Gets the current status of the task.Gets a target stage for this taskboolean
isModal()
Checks if the task is a modal taskboolean
Checks if the task is an orchestrated operationvoid
Sets the status for the task.
-
Constructor Details
-
AsyncProcessingTask
public AsyncProcessingTask(String segmentId, Object objectId, boolean operation, boolean modal, DerivedDataSegmentBucket targetStage) Creates the task for the given segment and object.- Parameters:
segmentId
- A target DD segment. May not benull
objectId
- An identifier of the target object. May not benull
operation
- True if this task is an operation computation taskmodal
- True if this task is a modal operation starting tasktargetStage
- A target pipeline stage for the task. May not benull
-
-
Method Details
-
getStatus
Gets the current status of the task.- Returns:
- The status of the task.
-
setStatus
Sets the status for the task.- Parameters:
The
- status to set.
-
getObjectId
Gets the identifier of the object associated with the task.- Returns:
- The identifier of the associated BM object.
-
getSegmentId
Gets the DD segment associated with the task.- Returns:
- The associated DD segment.
-
isModal
public boolean isModal()Checks if the task is a modal task- Returns:
- True if the task is a modal task
-
isOperation
public boolean isOperation()Checks if the task is an orchestrated operation- Returns:
- True if the task is an operation task
-
getTargetStage
Gets a target stage for this task- Returns:
- A target state for the task. May not be
null
-