liuxiaolong
2019-05-06 71af9c46c24b562acc00a71ec6c97c04eb048d9c
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package com.cloud.device.service;
 
import com.cloud.device.model.Cluster;
import com.cloud.device.vo.ClusterNodeVo;
import com.cloud.device.vo.MenuTreeVo;
import com.cloud.device.vo.NodeVo;
import com.cloud.device.vo.SharePersonParamVo;
 
import java.util.List;
import java.util.Map;
 
public interface ClusterService {
 
    /**
     * 添加Cluster
     * @return
     */
    int save(String address, String cookie);
 
    boolean deleteById(String id, String cookie);
 
    Cluster selectById(String id);
 
    List<Cluster> findAllClusterList();
 
    List<Cluster> findClusters(Map<String,Object> params);
 
    /**
     * 获取所有的设备信息,包括节点和库
     * @param params
     * @return
     */
    List<Cluster> findAllNode(Map<String,Object> params);
 
    /**
     * 根据节点查询节点信息及所属集群信息
     * @param nodeIds
     * @return
     */
    List<ClusterNodeVo> findNodesByIds(String nodeIds);
 
    List<ClusterNodeVo> findByCLuster(String address);
 
    List<Map> findClusterNodesByClusterIds(String clusterIds);
 
    /**
     * 获取所有集群和节点信息,到设备级别
     * @return
     */
    List<Map> getAllCluListData();
 
    /**
     * 获取集群节点及底库信息
     * @return
     */
    List<Map> getAllCluDataBaseList();
 
    /**
     * 获取集群设备树
     * @return
     */
    Map getClusterTreeData();
 
    /**
     * 将人员分享到 集群节点
     * @param sharePersonParamVo
     * @return
     */
    List<String> sharePersonToCluster(SharePersonParamVo sharePersonParamVo);
 
    ClusterNodeVo findClusteInfoByNodeIp(Map<String, Object> params);
 
    List<MenuTreeVo> getClusterDeviceTree();
 
    MenuTreeVo refreshCluster(String clusterIp, String type, String id);
 
    List<MenuTreeVo> getAllClusterMenuInfo(String condition);
 
    /**
     * 验证C端集群密码
     * @param address
     * @param pwd
     * @return
     */
    boolean verifyClusterPwdByCServer(String address, String pwd);
 
}