Methods Summary |
---|
protected final com.sun.appserv.management.config.AMXConfig | createProgeny(java.lang.String name, java.util.Map options)
assert( name != null && name.length() >= 1 );
return getDomainConfig().createClusterConfig( name, null, options );
|
public static com.sun.appserv.management.config.ClusterConfig | ensureDefaultInstance(com.sun.appserv.management.config.DomainConfig domainConfig)
ClusterConfig result =
domainConfig.getClusterConfigMap().get( getDefaultInstanceName() );
if ( result == null )
{
result = domainConfig.createClusterConfig(
getDefaultInstanceName(), null, null );
}
return result;
|
public static java.lang.String | getDefaultInstanceName()
return getDefaultInstanceName( "test-cluster" );
|
protected com.sun.appserv.management.base.Container | getProgenyContainer()
return getDomainConfig();
|
protected java.lang.String | getProgenyJ2EEType()
return XTypes.CLUSTER_CONFIG;
|
protected void | removeProgeny(java.lang.String name)
getDomainConfig().removeClusterConfig( name );
|
public void | testCreateWithIllegalConfig()
try
{
getDomainConfig().createClusterConfig( "dummy-cluster-1", "no such config", null );
failure( "expecting failure creating cluster with illegal config name" );
getDomainConfig().createClusterConfig( "dummy-cluster-2", "server-config", null );
failure( "expecting failure creating cluster with name 'server-config'" );
getDomainConfig().createClusterConfig( "dummy-cluster-2", "default-config", null );
failure( "expecting failure creating name 'default-config'" );
}
catch( Exception e )
{
// good
}
|