Package com.sun.appserv.management.monitor

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


                    if (msgMap.get("PrincipalName") == null) {
                        msgMap.put("PrincipalName", "");
                    }
                                       
                    if (msgs[i].isCallFlowEnabled()) {
                        CallFlowMonitor cfm = CallFlowHandlers.getCallFlowMonitor(server);
                        List list = cfm.queryCallStackForRequest(msgs[i].getMessageID());
                        if (list == null || list.isEmpty()) {
                            msgMap.put("IsCallFlowAvailable", Boolean.FALSE);
                        } else {
                            msgMap.put("IsCallFlowAvailable", Boolean.TRUE);
                        }
View Full Code Here


       
        //Set the Enabled Attribute
        try
        {
            verifyTargetInstance(mbsc, instanceName);
            CallFlowMonitor cfm = getCallFlowMonitor(mbsc, instanceName);
            setCallFlowConfig(cfm);
        }
        catch(Exception e)
        {
            displayExceptionMessage(e);
View Full Code Here

                domainRoot.getMonitoringRoot().getServerRootMonitorMap();
        ServerRootMonitor serverRootMonitor = serverRootMonitorMap.get(instanceName);
        //IF the instance is not running or when no monitoring on, just return;
        if (serverRootMonitor == null)
            return null;
        CallFlowMonitor cfm = serverRootMonitor.getCallFlowMonitor();
        return cfm;
    }
View Full Code Here

  {
  }
 
  public void testCallFlowOn()
  {
        final CallFlowMonitor cfm = getCallFlowMonitor();
        try
        {
            cfm.setEnabled ( true );
            assertTrue( cfm.getEnabled() );
        }
        catch( Throwable t )
        {
            warning( "testCallFlowOn: " +
                "Can't enable callflow...has the callflow database been started?" );
View Full Code Here

                "Can't enable callflow...has the callflow database been started?" );
        }
     }
 
  public void testIPFilter () {
            final CallFlowMonitor cfm = getCallFlowMonitor();           
            cfm.setCallerIPFilter(IP_FILTER_NAME);
            final String filter = cfm.getCallerIPFilter();
            boolean val = filter.equals(IP_FILTER_NAME);
            assertTrue(val);
  }
View Full Code Here

            boolean val = filter.equals(IP_FILTER_NAME);
            assertTrue(val);
  }
       
  public void testPrincipalFilter () {
            final CallFlowMonitor cfm = getCallFlowMonitor();           
            cfm.setCallerPrincipalFilter(PRINCIPAL_FILTER_NAME);
            final String filter = cfm.getCallerPrincipalFilter();
            boolean val = filter.equals(PRINCIPAL_FILTER_NAME);
            assertTrue(val);
  }
View Full Code Here

       
    /*
     * Disable CallFlow
     */
    public void testCallFlowOff() {
        final CallFlowMonitor cfm = getCallFlowMonitor();           
        cfm.setEnabled( false );
        assertFalse( cfm.getEnabled() );
    }
View Full Code Here

        cfm.setEnabled( false );
        assertFalse( cfm.getEnabled() );
    }

    public void testQueryRequestInformation (){
        final CallFlowMonitor cfm = getCallFlowMonitor();           
        final List<Map<String, String>> list = cfm.queryRequestInformation ();
        if(list == null)
    //            int resultSize = list.size ();
    //            int CORRECT_RESULT_SIZE = 0;
    //            if (resultSize == CORRECT_RESULT_SIZE)
            assertTrue (true);                   
View Full Code Here

    //            int CORRECT_RESULT_SIZE = 0;
    //            if (resultSize == CORRECT_RESULT_SIZE)
            assertTrue (true);                   
    }
    public void testQueryCallStackInformation(){
        final CallFlowMonitor cfm = getCallFlowMonitor();           
        final List<Map<String, String>> list = cfm.queryCallStackForRequest ("RequestID_1");           
        if(list == null)
    //            int resultSize = list.size ();
    //            int CORRECT_RESULT_SIZE = 0;
    //            if (resultSize == CORRECT_RESULT_SIZE)
            assertTrue (true);                               
View Full Code Here

    //            int CORRECT_RESULT_SIZE = 0;
    //            if (resultSize == CORRECT_RESULT_SIZE)
            assertTrue (true);                               
    }
      public void testQueryPieInformation(){
        final CallFlowMonitor cfm = getCallFlowMonitor();           
        final Map<String, String> map = cfm.queryPieInformation ("RequestID_1");           
        if(map != null)
    //            int resultSize = list.size ();
    //            int CORRECT_RESULT_SIZE = 0;
    //            if (resultSize == CORRECT_RESULT_SIZE)
            assertTrue (true);                               
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.