public class ClusterScheduleJobExecutor
extends java.lang.Object
构造器和说明 |
---|
ClusterScheduleJobExecutor() |
限定符和类型 | 方法和说明 |
---|---|
void |
addScheduleJob(java.lang.String jobName,
java.lang.String jobGroup,
java.lang.String jobDescription,
java.util.Date startDate,
int intervalMinutes,
java.lang.Class jobClass) |
static ClusterScheduleJobExecutor |
getInstance() |
void |
removeJob(java.lang.String jobName,
java.lang.String jobKey) |
void |
removeJobIfClusterQuit(java.lang.String jobName,
java.lang.String jobKey)
只有集群即将退出的时候调用。
|
public static ClusterScheduleJobExecutor getInstance()
public void addScheduleJob(java.lang.String jobName, java.lang.String jobGroup, java.lang.String jobDescription, java.util.Date startDate, int intervalMinutes, java.lang.Class jobClass)
public void removeJobIfClusterQuit(java.lang.String jobName, java.lang.String jobKey)
public void removeJob(java.lang.String jobName, java.lang.String jobKey)