Methods Summary |
---|
public com.sun.appserv.management.config.ConfigConfig | createConfig(java.lang.String name)
final Map<String,String> options = new HashMap<String,String>();
final ConfigConfig config =
getDomainConfig().createConfigConfig( name, options );
return config;
|
public com.sun.appserv.management.config.StandaloneServerConfig | createServer(java.lang.String name, int basePort, java.lang.String nodeAgentName, java.lang.String configName)
final Map<String,String> options = new HashMap<String,String>();
setupServerPorts( options, basePort );
final StandaloneServerConfig server =
getDomainConfig().createStandaloneServerConfig(
name, nodeAgentName, configName, options );
return server;
|
public com.sun.appserv.management.config.DomainConfig | getDomainConfig()
return mDomainRoot.getDomainConfig();
|
public boolean | removeConfig(java.lang.String name)
boolean exists = getDomainConfig().getConfigConfigMap().get( name ) != null;
if ( exists )
{
getDomainConfig().removeConfigConfig( name );
}
return exists;
|
public boolean | removeServer(java.lang.String name)
boolean exists = getDomainConfig().getStandaloneServerConfigMap().get( name ) != null;
if ( exists )
{
getDomainConfig().removeStandaloneServerConfig( name );
}
return exists;
|
public void | setupServerPorts(java.util.Map options, int basePort)
if ( basePort > 0 )
{
options.put( ServerConfigKeys.HTTP_LISTENER_1_PORT_KEY, "" + (basePort + 0) );
options.put( ServerConfigKeys.HTTP_LISTENER_2_PORT_KEY, "" + (basePort + 1) );
options.put( ServerConfigKeys.ORB_LISTENER_1_PORT_KEY, "" + (basePort + 2) );
options.put( ServerConfigKeys.SSL_PORT_KEY, "" + (basePort + 3) );
options.put( ServerConfigKeys.SSL_MUTUALAUTH_PORT_KEY, "" + (basePort + 4) );
options.put( ServerConfigKeys.JMX_SYSTEM_CONNECTOR_PORT_KEY, "" + (basePort + 5) );
options.put( ServerConfigKeys.JMS_PROVIDER_PORT_KEY, "" + (basePort + 6) );
options.put( ServerConfigKeys.ADMIN_LISTENER_PORT_KEY, "" + (basePort + 7) );
}
|