public abstract class AbstractJobManager extends java.lang.Object implements IJobManager
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
isStarted |
protected java.util.List<RankEntity<JobInterceptor>> |
jobInterceptorNodes |
protected java.util.Map<java.lang.String,JobHolder> |
jobMap |
构造器和说明 |
---|
AbstractJobManager() |
限定符和类型 | 方法和说明 |
---|---|
void |
addJobInterceptor(int index,
JobInterceptor jobInterceptor)
添加拦截器
|
java.util.List<RankEntity<JobInterceptor>> |
getJobInterceptors()
拦截器
|
boolean |
hasJobInterceptor()
是否有任务拦截器
|
boolean |
isStarted()
是否已启动
|
JobHolder |
jobAdd(java.lang.String name,
Scheduled scheduled,
JobHandler handler)
任务添加
|
protected void |
jobAddCheckDo(java.lang.String name,
Scheduled scheduled)
任务添加检测
|
boolean |
jobExists(java.lang.String name)
任务是否存在
|
JobHolder |
jobGet(java.lang.String name)
任务获取
|
java.util.Map<java.lang.String,JobHolder> |
jobGetAll()
任务获取全部
|
void |
jobRemove(java.lang.String name)
任务移除
|
protected JobHolder |
jobWrapDo(java.lang.String name,
Scheduled scheduled,
JobHandler handler)
任务包装
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
jobStart, jobStop
protected final java.util.Map<java.lang.String,JobHolder> jobMap
protected final java.util.List<RankEntity<JobInterceptor>> jobInterceptorNodes
protected boolean isStarted
public void addJobInterceptor(int index, JobInterceptor jobInterceptor)
addJobInterceptor
在接口中 IJobManager
public boolean hasJobInterceptor()
hasJobInterceptor
在接口中 IJobManager
public java.util.List<RankEntity<JobInterceptor>> getJobInterceptors()
getJobInterceptors
在接口中 IJobManager
public JobHolder jobAdd(java.lang.String name, Scheduled scheduled, JobHandler handler)
jobAdd
在接口中 IJobManager
protected JobHolder jobWrapDo(java.lang.String name, Scheduled scheduled, JobHandler handler)
protected void jobAddCheckDo(java.lang.String name, Scheduled scheduled)
public boolean jobExists(java.lang.String name)
jobExists
在接口中 IJobManager
public JobHolder jobGet(java.lang.String name)
jobGet
在接口中 IJobManager
public java.util.Map<java.lang.String,JobHolder> jobGetAll()
jobGetAll
在接口中 IJobManager
public void jobRemove(java.lang.String name) throws ScheduledException
jobRemove
在接口中 IJobManager
ScheduledException
public boolean isStarted()
isStarted
在接口中 IJobManager