Class RuleAlteredJobProgressDetector
java.lang.Object
org.apache.shardingsphere.data.pipeline.scenario.rulealtered.RuleAlteredJobProgressDetector
Rule altered job progress detector.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanallInventoryTasksFinished(Collection<InventoryTask> inventoryTasks) All inventory tasks is finished.static booleanisJobCompleted(int jobShardingCount, Collection<JobProgress> jobProgresses) Whether job is completed (successful or failed).static booleanisJobSuccessful(int jobShardingCount, Collection<JobProgress> jobProgresses) Whether job is successful.
-
Constructor Details
-
RuleAlteredJobProgressDetector
public RuleAlteredJobProgressDetector()
-
-
Method Details
-
allInventoryTasksFinished
All inventory tasks is finished.- Parameters:
inventoryTasks- to check inventory tasks- Returns:
- is finished
-
isJobCompleted
Whether job is completed (successful or failed).- Parameters:
jobShardingCount- job sharding countjobProgresses- job progresses- Returns:
- completed or not
-
isJobSuccessful
Whether job is successful.- Parameters:
jobShardingCount- job sharding countjobProgresses- job progresses- Returns:
- completed or not
-