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);
|
|
}
|