Package com.sun.enterprise.management.support

Examples of com.sun.enterprise.management.support.AMXDebugStuff


      final long  start   = now();
      final Set<AMX>  all = getAllAMX();
     
      for( final AMX amx : all )
      {
          final AMXDebugStuff  debug  = getTestUtil().asAMXDebugStuff( amx );
         
          if ( debug != null )
          {
              final String s  = debug.getImplString( true );
              assert( s.length() != 0 );
          }
      }
     
      printElapsed( "testToString", all.size(), start );
View Full Code Here


  {
      mDomainRoot   = domainRoot;
      mQueryMgr     = domainRoot.getQueryMgr();
      mTestUtil     = new TestUtil( domainRoot );
     
      final AMXDebugStuff debugRoot   = mTestUtil.asAMXDebugStuff( mDomainRoot );
      if ( debugRoot == null )
      {
          throw new RuntimeException( "AMX-DEBUG/CoverageInfo is not enabled" );
      }
     
      final CoverageInfo coverageInfo = debugRoot.getCoverageInfo();
     
      if ( coverageInfo instanceof CoverageInfoDummy )
      {
          throw new IllegalArgumentException( "Coverage disabled--add system property " +
          "'-DAMX-DEBUG=true', then restart server" );
View Full Code Here

  {
      final Map<String,CoverageInfo>  coverageMap    = new HashMap<String,CoverageInfo>();
     
      for( final AMX amx: candidates )
      {
          final AMXDebugStuff debug   = mTestUtil.asAMXDebugStuff( amx );
          final CoverageInfo  coverageInfo = debug.getCoverageInfo();
          assert( coverageInfo != null );
          handleSpecialCases( coverageInfo );
         
          final String j2eeType   = amx.getJ2EEType();
          final CoverageInfo  existing    = coverageMap.get( j2eeType );
View Full Code Here

      public AMXDebugStuff
  asAMXDebugStuff( final AMX amx )
  {
      final String[] attrNames   = Util.getExtra( amx ).getAttributeNames();
     
      AMXDebugStuff   result  = null;
      if ( GSetUtil.newUnmodifiableStringSet( attrNames ).contains( "AMXDebug" ) )
      {
          final ProxyFactory  factory = Util.getExtra( amx ).getProxyFactory();
             
            try
View Full Code Here

      debug.setDefaultDebug( true );
      debug.getOutputIDs();
     
      for( final AMX amx : all )
      {
          final AMXDebugStuff debugStuff  = getTestUtil().asAMXDebugStuff( amx );
         
          if ( debugStuff == null )
          {
              continue;
          }
         
          try
          {
                debugStuff.enableAMXDebug( true );
            }
            catch( Throwable t )
            {
                warning( "Couldn't enableAMXDebug() for " + amx.getJ2EEType() );
            }
           
          try
          {
                debugStuff.enableCoverageInfo( true );
                debugStuff.clearCoverageInfo();
            }
            catch( Throwable t )
            {
                warning( "Couldn't enableCoverageInfo for " + amx.getJ2EEType() );
            }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.management.support.AMXDebugStuff

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.