public final class ExecutionService extends Object
| 构造器和说明 |
|---|
ExecutionService(CoordinatorRegistryCenter regCenter,
String jobName) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearAllRunningInfo()
Clear all running info.
|
void |
clearMisfire(Collection<Integer> items)
Clear misfire flag.
|
void |
clearRunningInfo(List<Integer> items)
Clear running info.
|
List<Integer> |
getDisabledItems(List<Integer> items)
Get disabled sharding items.
|
List<Integer> |
getMisfiredJobItems(Collection<Integer> items)
Get misfired job sharding items.
|
boolean |
hasRunningItems()
Judge has running items or not.
|
boolean |
hasRunningItems(Collection<Integer> items)
Judge has running items or not.
|
boolean |
misfireIfHasRunningItems(Collection<Integer> items)
Set misfire flag if sharding items still running.
|
void |
registerJobBegin(ShardingContexts shardingContexts)
Register job begin.
|
void |
registerJobCompleted(ShardingContexts shardingContexts)
Register job completed.
|
void |
setMisfire(Collection<Integer> items)
Set misfire flag if sharding items still running.
|
public ExecutionService(CoordinatorRegistryCenter regCenter, String jobName)
public void registerJobBegin(ShardingContexts shardingContexts)
shardingContexts - sharding contextspublic void registerJobCompleted(ShardingContexts shardingContexts)
shardingContexts - sharding contextspublic void clearAllRunningInfo()
public void clearRunningInfo(List<Integer> items)
items - sharding items which need to be clearedpublic boolean hasRunningItems(Collection<Integer> items)
items - sharding items need to be judgedpublic boolean hasRunningItems()
public boolean misfireIfHasRunningItems(Collection<Integer> items)
items - sharding items need to be set misfire flagpublic void setMisfire(Collection<Integer> items)
items - sharding items need to be set misfire flagpublic List<Integer> getMisfiredJobItems(Collection<Integer> items)
items - sharding items need to be judgedpublic void clearMisfire(Collection<Integer> items)
items - sharding items need to be clearedCopyright © 2020 The Apache Software Foundation. All rights reserved.