TBScheduleManagerDynamic.java
1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.taobao.pamirs.schedule.taskmanager;
import java.util.List;
import com.taobao.pamirs.schedule.TaskItemDefine;
import com.taobao.pamirs.schedule.strategy.TBScheduleManagerFactory;
public class TBScheduleManagerDynamic extends TBScheduleManager {
//private static transient Log log = LogFactory.getLog(TBScheduleManagerDynamic.class);
TBScheduleManagerDynamic(TBScheduleManagerFactory aFactory,
String baseTaskType, String ownSign, int managerPort,
String jxmUrl, IScheduleDataManager aScheduleCenter) throws Exception {
super(aFactory, baseTaskType, ownSign,aScheduleCenter);
}
public void initial() throws Exception{
if (scheduleCenter.isLeader(this.currenScheduleServer.getUuid(),
scheduleCenter.loadScheduleServerNames(this.currenScheduleServer.getTaskType()))) {
// 是第一次启动,检查对应的zk目录是否存在
this.scheduleCenter.initialRunningInfo4Dynamic( this.currenScheduleServer.getBaseTaskType(),
this.currenScheduleServer.getOwnSign());
}
computerStart();
}
public void refreshScheduleServerInfo() throws Exception {
throw new Exception("没有实现");
}
public boolean isNeedReLoadTaskItemList() throws Exception {
throw new Exception("没有实现");
}
public void assignScheduleTask() throws Exception {
throw new Exception("没有实现");
}
public List<TaskItemDefine> getCurrentScheduleTaskItemList() {
throw new RuntimeException("没有实现");
}
public int getTaskItemCount() {
throw new RuntimeException("没有实现");
}
}