FileDocCategorySizeDatePackage
NodeAgentConfigTest.javaAPI DocGlassfish v2 API3110Fri May 04 22:23:56 BST 2007com.sun.enterprise.management.config

NodeAgentConfigTest

public final class NodeAgentConfigTest extends com.sun.enterprise.management.AMXTestBase

Fields Summary
Constructors Summary
public NodeAgentConfigTest()

    
Methods Summary
private voidsanityCheck(com.sun.appserv.management.config.NodeAgentConfig na)

	    final JMXConnectorConfig    jmx = na.getJMXConnectorConfig();
	    
	    final boolean   startServers    = na.getStartServersInStartup();
	    na.setStartServersInStartup( startServers );
	    
	    final String name    = na.getSystemJMXConnectorName();
	    na.setSystemJMXConnectorName( name );
	
public voidtestGetters()

	    final Map<String,NodeAgentConfig> m = getDomainConfig().getNodeAgentConfigMap();
	    
	    if ( m.size() == 0 )
	    {
	        warning( "NodeAgentConfigTest: no NodeAgentConfigs to test" );
	    }
	    else
	    {
    	    for( final NodeAgentConfig na : m.values() )
    	    {
    	        sanityCheck( na );
    	    }
	    }