Package com.sun.appserv.management.monitor

Examples of com.sun.appserv.management.monitor.CallFlowMonitor


   
    public static CallFlowMonitor getCallFlowMonitor(String instanceName){
        ServerRootMonitor serverRootMonitor = AMXUtil.getServerRootMonitor(instanceName);
        if (serverRootMonitor == null)
            return null;
        CallFlowMonitor cfm = serverRootMonitor.getCallFlowMonitor();
        return cfm;
   }
View Full Code Here


  String requestId = (String) handlerCtx.getInputValue("requestId");
  String instanceName = (String) handlerCtx.getInputValue("instanceName");
        Boolean demo = (Boolean) handlerCtx.getInputValue("demo");

  CallFlowMonitor cfm = getCallFlowMonitor(instanceName);
  if (cfm == null) {
      return;
  }
  try {
            List listOfMap = null;
            if (demo != null && demo){
                listOfMap = getDemoCallFlowStack(requestId);
            }else{
                listOfMap = cfm.queryCallStackForRequest(requestId);
            }
      handlerCtx.setOutputValue("callStackMap", listOfMap);
  } catch (Exception ex) {
      GuiUtil.handleException(handlerCtx, ex);
            ex.printStackTrace();
View Full Code Here

        HashMap infoMap = new HashMap((Map)handlerCtx.getInputValue("infoMap"));
        String requestId = (String) handlerCtx.getInputValue("requestId");
        String instanceName = (String) handlerCtx.getInputValue("instanceName");

        CallFlowMonitor cfm = CallFlowHandlers.getCallFlowMonitor(instanceName);
        float total = 0;
        MessageUtil msgUtil = MessageUtil.getInstance();
        Map<String, String> timeSpendMap = null;
        timeSpendMap = (Map<String,String>) cfm.queryPieInformation(requestId);

        for(String key : timeSpendMap.keySet()){
            total += Float.parseFloat(timeSpendMap.get(key));
        }
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.monitor.CallFlowMonitor

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.