public final class LiteJobFacade extends Object implements org.apache.shardingsphere.elasticjob.executor.JobFacade
| 构造器和说明 |
|---|
LiteJobFacade(CoordinatorRegistryCenter regCenter,
String jobName,
Collection<ElasticJobListener> elasticJobListeners,
org.apache.shardingsphere.elasticjob.tracing.api.TracingConfiguration<?> tracingConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterJobExecuted(ShardingContexts shardingContexts) |
void |
beforeJobExecuted(ShardingContexts shardingContexts) |
void |
checkJobExecutionEnvironment() |
void |
clearMisfire(Collection<Integer> shardingItems) |
void |
failoverIfNecessary() |
ShardingContexts |
getShardingContexts() |
boolean |
isExecuteMisfired(Collection<Integer> shardingItems) |
boolean |
isNeedSharding() |
JobConfiguration |
loadJobConfiguration(boolean fromCache) |
boolean |
misfireIfRunning(Collection<Integer> shardingItems) |
void |
postJobExecutionEvent(org.apache.shardingsphere.elasticjob.tracing.event.JobExecutionEvent jobExecutionEvent) |
void |
postJobStatusTraceEvent(String taskId,
org.apache.shardingsphere.elasticjob.tracing.event.JobStatusTraceEvent.State state,
String message) |
void |
registerJobBegin(ShardingContexts shardingContexts) |
void |
registerJobCompleted(ShardingContexts shardingContexts) |
public LiteJobFacade(CoordinatorRegistryCenter regCenter, String jobName, Collection<ElasticJobListener> elasticJobListeners, org.apache.shardingsphere.elasticjob.tracing.api.TracingConfiguration<?> tracingConfig)
public JobConfiguration loadJobConfiguration(boolean fromCache)
loadJobConfiguration 在接口中 org.apache.shardingsphere.elasticjob.executor.JobFacadepublic void checkJobExecutionEnvironment()
throws JobExecutionEnvironmentException
checkJobExecutionEnvironment 在接口中 org.apache.shardingsphere.elasticjob.executor.JobFacadeJobExecutionEnvironmentExceptionpublic void failoverIfNecessary()
failoverIfNecessary 在接口中 org.apache.shardingsphere.elasticjob.executor.JobFacadepublic void registerJobBegin(ShardingContexts shardingContexts)
registerJobBegin 在接口中 org.apache.shardingsphere.elasticjob.executor.JobFacadepublic void registerJobCompleted(ShardingContexts shardingContexts)
registerJobCompleted 在接口中 org.apache.shardingsphere.elasticjob.executor.JobFacadepublic ShardingContexts getShardingContexts()
getShardingContexts 在接口中 org.apache.shardingsphere.elasticjob.executor.JobFacadepublic boolean misfireIfRunning(Collection<Integer> shardingItems)
misfireIfRunning 在接口中 org.apache.shardingsphere.elasticjob.executor.JobFacadepublic void clearMisfire(Collection<Integer> shardingItems)
clearMisfire 在接口中 org.apache.shardingsphere.elasticjob.executor.JobFacadepublic boolean isExecuteMisfired(Collection<Integer> shardingItems)
isExecuteMisfired 在接口中 org.apache.shardingsphere.elasticjob.executor.JobFacadepublic boolean isNeedSharding()
isNeedSharding 在接口中 org.apache.shardingsphere.elasticjob.executor.JobFacadepublic void beforeJobExecuted(ShardingContexts shardingContexts)
beforeJobExecuted 在接口中 org.apache.shardingsphere.elasticjob.executor.JobFacadepublic void afterJobExecuted(ShardingContexts shardingContexts)
afterJobExecuted 在接口中 org.apache.shardingsphere.elasticjob.executor.JobFacadepublic void postJobExecutionEvent(org.apache.shardingsphere.elasticjob.tracing.event.JobExecutionEvent jobExecutionEvent)
postJobExecutionEvent 在接口中 org.apache.shardingsphere.elasticjob.executor.JobFacadeCopyright © 2020 The Apache Software Foundation. All rights reserved.