Package com.lanyuan.entity

Examples of com.lanyuan.entity.ServerInfo


        + "</td><td>使用率超出  " + jvm + "%,,发送邮箱提示 </td></tr>" + "</tbody>" + "</table>";
    if (!Common.isEmpty(cpubool) || !Common.isEmpty(jvmbool) || !Common.isEmpty(rambool)) {
      try {
        EmailUtils.sendMail(prop.getProperty("fromEmail"), email, prop.getProperty("emailName"), prop.getProperty("emailPassword"), title, centent);
        // 保存预警信息
        ServerInfo vo = new ServerInfo();
        vo.setCpuUsage(cpuUsage);
        vo.setSetCpuUsage(cpu);
        vo.setJvmUsage(JvmUsage);
        vo.setSetJvmUsage(jvm);
        vo.setRamUsage(serverUsage);
        vo.setSetRamUsage(ram);
        vo.setEmail(email);
        vo.setOperTime(new Date());
        vo.setMark(mark);
        serverInfoService.add(vo);
        System.err.println("发送邮件!");
      } catch (Exception e) {
        System.err.println("发送邮件失败!");
      }
View Full Code Here

TOP

Related Classes of com.lanyuan.entity.ServerInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.