Methods Summary |
---|
protected final javax.management.ObjectName | create(java.lang.String name)
return Util.getObjectName( createProgeny( name, null ) );
|
protected final com.sun.appserv.management.config.AMXConfig | createProgeny(java.lang.String name, java.util.Map options)
final Map<String,String> allOptions = MapUtil.newMap( options, OPTIONAL );
final int port = (name.hashCode() % 32000) + 32000;
allOptions.put( IIOPListenerConfigKeys.PORT_KEY, "" + port );
return getIIOPService().createIIOPListenerConfig(name, ADDRESS, allOptions );
|
protected final com.sun.appserv.management.config.IIOPServiceConfig | getIIOPService()
return getConfigConfig().getIIOPServiceConfig();
|
protected com.sun.appserv.management.base.Container | getProgenyContainer()
return getIIOPService();
|
protected java.lang.String | getProgenyJ2EEType()
return XTypes.IIOP_LISTENER_CONFIG;
|
protected void | removeProgeny(java.lang.String name)
getIIOPService().removeIIOPListenerConfig( name );
|
public void | testCreateSSL()
if ( ! checkNotOffline( "testCreateSSL" ) )
{
return;
}
final String NAME = "IIOPListenerConfigMgr-testCreateSSL";
removeEx( NAME );
final IIOPListenerConfig newListener =
(IIOPListenerConfig)createProgeny( NAME, null );
try
{
final Map<String,IIOPListenerConfig> listeners =
getIIOPService().getIIOPListenerConfigMap();
final IIOPListenerConfig listener =
(IIOPListenerConfig)listeners.get( NAME );
assert listener != null;
assert listener == newListener;
final String CERT_NICKNAME = NAME + "Cert";
final SSLConfig ssl = listener.createSSLConfig( CERT_NICKNAME, null);
assert ssl != null;
assert ssl.getCertNickname().equals( CERT_NICKNAME );
listener.removeSSLConfig();
}
finally
{
remove( NAME );
}
|