liuxiaolong
2019-05-06 1043e7be0b7503d7b0f488dc0d8d11a2b8079dee
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
package com.cloud.control.service;
 
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
 
import java.util.Date;
import java.util.List;
 
public interface TaskService {
 
    JSONObject queryTaskListByPage(Date startTime, Date endTime, String likeName, Integer status,
                                   String source, Integer from, Integer size, String sortName, String sortType);
 
    public JSONObject addTaskForIndevice(String uuid,String taskName,Integer threshold,Date startTime,Date endTime,
                                         List<String> devIds,boolean isUpdate,String enabled);
 
    public JSONObject updateSyncTaskForIndevice(String uuid, String taskName, Integer threshold, Date startTime, Date endTime,
                                             List<String> cluIps,boolean isUpdate, JSONArray scope, String enabled);
 
    public void addTaskForIndevice();
 
    JSONObject updateTask(String uuid, String taskName, Integer threshold, Date startTime, Date endTime,
                           List<String> devIds);
 
    JSONObject stopTask(String uuid);
 
    JSONObject delTask(String uuid);
    // 依据 集群或设备id 获取名称 或 ip 地址
    String getCluOrDevAndNameOrIpById(String id,String type,String valueType);
 
    JSONObject addTaskByNode(String uuid, String taskName, Integer threshold, Date startTime, Date endTime, String syncType, String enabled, String cluId, String devId);
 
    JSONObject querySoureList();
 
    JSONObject queryTaskById(String taskId);
 
    JSONArray queryTaskScopeDetailById(String taskId);
 
    JSONObject getAddToCtlTree();
}