⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slaconfigtsbo.java

📁 sla性能采集
💻 JAVA
字号:
package com.asiainfo.ainx.slaconf.bo;

import java.util.ArrayList;

import com.asiainfo.ainx.slaconf.dao.SlaConfigTsDAO;

public class SlaConfigTsBO {
	/**
	 * @description: AutoCode 根据id们获取设备sla表单纪录的列表

	 * 
	 * 
	 * @return
	 * @throws java.lang.Exception
	 */
	public ArrayList getNodeResInfoById(String[] nodeid) throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		ArrayList col = nodedao.getNodeSlaInfoByNodeids(nodeid);
		return col;
	}

	/**
	 * 获取所有设备sla表单纪录的列表

	 * 
	 * @return
	 * @throws Exception
	 */
	public ArrayList getAllNodeResInfo(String userid) throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		ArrayList col = nodedao.getAllNodeSlaInfo(userid);
		return col;
	}
	/**
	 * 根据linkid集合,获取sla表单记录
	 * @param linkid
	 * @return
	 * @throws Exception
	 */
	public ArrayList getLinkResInfoById(String[] linkid) throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		ArrayList col = nodedao.getLinkASlaInfoByLink(linkid);
		return col;
	}
	public ArrayList getAllLinkResInfo(String userId) throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		ArrayList col = nodedao.getALLLinkSlaInfo(userId);
		return col;
	}
	public ArrayList getAllLinkName() throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		ArrayList col = nodedao.getAllLinkName();
		return col;
	}
	public ArrayList getAllNodeName() throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		ArrayList col = nodedao.getAllNodeName();
		return col;
	}
	public int getSlaCountForLink() throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		int count = nodedao.getSlaCountForLink();
		return count;
	}
	public int getSlaCountForNode() throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		int count = nodedao.getSlaCountForNode();
		return count;
	}
	public int updateSlaItems(String[] options,String type) throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		int count = nodedao.updateSlaItems(options,type);
		return count;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -