package com.cloud.device.service;
|
|
import com.alibaba.fastjson.JSONObject;
|
import com.cloud.device.model.Device;
|
import com.cloud.device.model.Node;
|
import com.cloud.device.vo.MapDeviceVo;
|
import com.cloud.device.vo.MenuTreeVo;
|
import com.cloud.model.common.Page;
|
|
import java.io.IOException;
|
import java.util.List;
|
import java.util.Map;
|
|
public interface DeviceService {
|
/**
|
* 根据条件查找设备列表(分页)
|
* @param param
|
* @return
|
*/
|
Page<Device> findPlatDeviceList(Map<String,Object> param);
|
|
/**
|
* 查找所有非集群的监控设备,不分页
|
* @param param
|
* @return
|
*/
|
List<Device> findAllPlatDeviceList(Map<String, Object> param);
|
|
Device selectById(String id);
|
/**
|
* save
|
* @param model
|
* @return
|
*/
|
int saveDevice(Device model);
|
|
int deleteById(String id);
|
|
List<MenuTreeVo> getOrgDeviceTree(Map<String, Object> param);
|
|
|
List<Device> findByOrgId(Long id);
|
|
Device findByIp(String ip);
|
|
/**
|
* 获取未描点的设备
|
* @return
|
*/
|
MapDeviceVo findAllDevices();
|
|
int updatePosById(Map<String,Object> param);
|
|
/**
|
* 更新设备的公网ip和端口
|
* @param param
|
* @return
|
*/
|
int updatePublicIpPort(Map<String, Object> param);
|
|
int updateOrg(String id, Integer orgId);
|
|
/**
|
* 通过区域(组织机构)下的所有集群和非集群设备
|
* @param map
|
* @return
|
*/
|
List<MenuTreeVo> findByArea(Map<String,Object> map);
|
|
List<Device> findAllDeviceByArea(Map<String, Object> param);
|
|
Node getNodeByDevId(String devId);
|
|
/**
|
* wp 获取视频实时截图
|
* @param devId
|
* @return
|
*/
|
JSONObject getDevSnapshot(String devId) throws IOException;
|
}
|