Package org.g4studio.system.admin.service

Examples of org.g4studio.system.admin.service.MonitorService


      String msg = userInfo.getUsername() + "[" + userInfo.getAccount() + "]调用了Action方法["
          + request.getParameter("reqCode") + "]";
      dto.put("description", msg);
      log.info(msg + ";请求路径[" + request.getRequestURI() + "]");
    }
    MonitorService monitorService = (MonitorService) SpringBeanLoader.getSpringBean("monitorService");
    monitorService.saveEvent(dto);

  }
View Full Code Here


    } catch (Exception e) {
      success = false;
      e.printStackTrace();
    }
    if (success) {
      MonitorService monitorService = (MonitorService) SpringBeanLoader.getSpringBean("monitorService");
      monitorService.deleteHttpSession(new BaseDto());
      try {
        initDbType();
      } catch (SQLException e) {
        e.printStackTrace();
      }
View Full Code Here

    if (session == null) return;
    SessionContainer sessionContainer =  (SessionContainer)session.getAttribute("SessionContainer");
    if (sessionContainer == null) return;
    sessionContainer.setUserInfo(null); //配合RequestFilter进行拦截
    sessionContainer.cleanUp();
    MonitorService monitorService = (MonitorService)SpringBeanLoader.getSpringBean("monitorService");
    Dto dto = new BaseDto();
    dto.put("sessionid", session.getId());
    monitorService.deleteHttpSession(dto);
    ht.remove(session.getId());
    log.info("销毁了一个Session连接:" + session.getId() + " " + G4Utils.getCurrentTime());
  }
View Full Code Here

   * @param session
   */
  static public void addSession(HttpSession session, UserInfoVo userInfo) {
    ht.put(session.getId(), session);
    Reader g4Reader = (Reader)SpringBeanLoader.getSpringBean("g4Reader");
    MonitorService monitorService = (MonitorService)SpringBeanLoader.getSpringBean("monitorService");
    UserInfoVo usInfo = (UserInfoVo)g4Reader.queryForObject("Monitor.queryHttpSessionsByID", session.getId());
    if(G4Utils.isEmpty(usInfo)){
      monitorService.saveHttpSession(userInfo);
    }
  }
View Full Code Here

TOP

Related Classes of org.g4studio.system.admin.service.MonitorService

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.