FileDocCategorySizeDatePackage
NonDASLoader.javaAPI DocGlassfish v2 API4352Fri May 04 22:23:42 BST 2007com.sun.enterprise.management.support

NonDASLoader

public final class NonDASLoader extends LoaderBase implements NonDASLoaderMBean
Implements loading of all MBean API MBeans in non-DAS instances.

Fields Summary
Constructors Summary
public NonDASLoader()

	    debug( "NonDASLoader" );
	
Methods Summary
public voidadminServiceReady()

Override

	    debug( "adminServiceReady" );
	    loadSpecialtyMBeans();
	
protected java.lang.ObjectcreateDomainRoot()

Override

	    debug( "createDomainRoot" );
        return null;
    
public booleanisDAS()

Override

	    return false;
	
private voidloadCallFlowMonitor()

	    try
	    {
	        final CallFlowMonitorImpl   callFlow    = new CallFlowMonitorImpl();
	        
	        final String serverName = BootUtil.getInstance().getServerName();
	        String props  = Util.makeRequiredProps( XTypes.CALL_FLOW_MONITOR, serverName );
	        props   = Util.concatenateProps( props,
	                    Util.makeProp( XTypes.SERVER_ROOT_MONITOR, serverName ) );
	        
	        final ObjectName  proposedName  = Util.newObjectName(
	                            BootUtil.getInstance().getAMXJMXDomainName(), props );
	                            
			final ObjectName objectName =
			    getMBeanServer().registerMBean( callFlow, proposedName ).getObjectName();
			debug( "Loaded CallFlowMonitor as " + JMXUtil.toString( objectName ) );
			
	    }
	    catch( Exception e )
	    {
	        final Throwable rootCause   = ExceptionUtil.getRootCause(e);
	        final String msg = "Exception creating/loading CallFlowMonitor: " +
	             rootCause + ", msg=" + rootCause.getMessage();
	        debug( msg );
	        getMBeanLogger().log( Level.WARNING, msg, rootCause );
	    }
	
private voidloadSpecialtyMBeans()

	    debug( "loadSpecialtyMBeans" );
	    loadCallFlowMonitor();
	
protected voidstartHook()

Override

	    debug( "startHook" );
	
public voidwaitAll()