public interface JobFacade
| Modifier and Type | Method and Description |
|---|---|
void |
afterJobExecuted(ShardingContexts shardingContexts)
Call after job executed.
|
void |
beforeJobExecuted(ShardingContexts shardingContexts)
Call before job executed.
|
void |
checkJobExecutionEnvironment()
Check job execution environment.
|
void |
clearMisfire(Collection<Integer> shardingItems)
Clear misfire flag.
|
void |
failoverIfNecessary()
Failover If necessary.
|
ShardingContexts |
getShardingContexts()
Get sharding contexts.
|
boolean |
isExecuteMisfired(Collection<Integer> shardingItems)
Judge job whether need to execute misfire tasks.
|
boolean |
isNeedSharding()
Judge job whether need resharding.
|
JobConfiguration |
loadJobConfiguration(boolean fromCache)
Load job configuration.
|
boolean |
misfireIfRunning(Collection<Integer> shardingItems)
Set task misfire flag.
|
void |
postJobExecutionEvent(JobExecutionEvent jobExecutionEvent)
Post job execution event.
|
void |
postJobStatusTraceEvent(String taskId,
JobStatusTraceEvent.State state,
String message)
Post job status trace event.
|
void |
registerJobBegin(ShardingContexts shardingContexts)
Register job begin.
|
void |
registerJobCompleted(ShardingContexts shardingContexts)
Register job completed.
|
JobConfiguration loadJobConfiguration(boolean fromCache)
fromCache - load from cache or notvoid checkJobExecutionEnvironment()
throws JobExecutionEnvironmentException
JobExecutionEnvironmentException - job execution environment exceptionvoid failoverIfNecessary()
void registerJobBegin(ShardingContexts shardingContexts)
shardingContexts - sharding contextsvoid registerJobCompleted(ShardingContexts shardingContexts)
shardingContexts - sharding contextsShardingContexts getShardingContexts()
boolean misfireIfRunning(Collection<Integer> shardingItems)
shardingItems - sharding items to be set misfire flagvoid clearMisfire(Collection<Integer> shardingItems)
shardingItems - sharding items to be cleared misfire flagboolean isExecuteMisfired(Collection<Integer> shardingItems)
shardingItems - sharding itemsboolean isNeedSharding()
void beforeJobExecuted(ShardingContexts shardingContexts)
shardingContexts - sharding contextsvoid afterJobExecuted(ShardingContexts shardingContexts)
shardingContexts - sharding contextsvoid postJobExecutionEvent(JobExecutionEvent jobExecutionEvent)
jobExecutionEvent - job execution eventvoid postJobStatusTraceEvent(String taskId, JobStatusTraceEvent.State state, String message)
taskId - task Idstate - job statemessage - job messageCopyright © 2021 The Apache Software Foundation. All rights reserved.