public final class LiteJobFacade extends Object implements org.apache.shardingsphere.elasticjob.executor.JobFacade
| Constructor and Description |
|---|
LiteJobFacade(CoordinatorRegistryCenter regCenter,
String jobName,
Collection<ElasticJobListener> elasticJobListeners,
org.apache.shardingsphere.elasticjob.tracing.api.TracingConfiguration<?> tracingConfig) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface org.apache.shardingsphere.elasticjob.executor.JobFacadepublic void checkJobExecutionEnvironment()
throws JobExecutionEnvironmentException
checkJobExecutionEnvironment in interface org.apache.shardingsphere.elasticjob.executor.JobFacadeJobExecutionEnvironmentExceptionpublic void failoverIfNecessary()
failoverIfNecessary in interface org.apache.shardingsphere.elasticjob.executor.JobFacadepublic void registerJobBegin(ShardingContexts shardingContexts)
registerJobBegin in interface org.apache.shardingsphere.elasticjob.executor.JobFacadepublic void registerJobCompleted(ShardingContexts shardingContexts)
registerJobCompleted in interface org.apache.shardingsphere.elasticjob.executor.JobFacadepublic ShardingContexts getShardingContexts()
getShardingContexts in interface org.apache.shardingsphere.elasticjob.executor.JobFacadepublic boolean misfireIfRunning(Collection<Integer> shardingItems)
misfireIfRunning in interface org.apache.shardingsphere.elasticjob.executor.JobFacadepublic void clearMisfire(Collection<Integer> shardingItems)
clearMisfire in interface org.apache.shardingsphere.elasticjob.executor.JobFacadepublic boolean isExecuteMisfired(Collection<Integer> shardingItems)
isExecuteMisfired in interface org.apache.shardingsphere.elasticjob.executor.JobFacadepublic boolean isNeedSharding()
isNeedSharding in interface org.apache.shardingsphere.elasticjob.executor.JobFacadepublic void beforeJobExecuted(ShardingContexts shardingContexts)
beforeJobExecuted in interface org.apache.shardingsphere.elasticjob.executor.JobFacadepublic void afterJobExecuted(ShardingContexts shardingContexts)
afterJobExecuted in interface org.apache.shardingsphere.elasticjob.executor.JobFacadepublic void postJobExecutionEvent(org.apache.shardingsphere.elasticjob.tracing.event.JobExecutionEvent jobExecutionEvent)
postJobExecutionEvent in interface org.apache.shardingsphere.elasticjob.executor.JobFacadeCopyright © 2021 The Apache Software Foundation. All rights reserved.