Methods Summary |
---|
public javax.management.ObjectName | create(java.lang.String name, java.lang.String hosts, java.util.Map optional)Parameters:
- CONFIG_NAME_KEY
- HOSTS_KEY
- HTTP_LISTENERS_KEY
- DEFAULT_WEB_MODULE_KEY
- STATE_KEY
- LOG_FILE_KEY
- DOC_ROOT_KEY
- ACCESS_LOG_KEY
final String[] requiredParams = new String[]
{
HOSTS_KEY, hosts,
};
// special prefix
if ( ! WebModuleSupport.isLegalVirtualServerName( name ) )
{
throw new IllegalArgumentException( name );
}
final Map<String,String> params = initParams( name, requiredParams, optional );
final ObjectName amxName = createNamedChild( name, params );
return( amxName );
|
protected javax.management.ObjectName | createOldChildConfig(javax.management.AttributeList translatedAttrs, java.util.Properties props)The caller is responsible for dealing with any Properties.
final String target = getConfigName();
final OldConfigsMBean oldConfigsMBean =
getOldConfigProxies().getOldConfigsMBean();
trace( "VirtualServerConfigFactory.createOldChildConfig: creating using: " +
stringify( translatedAttrs ) );
final ObjectName objectName =
oldConfigsMBean.createVirtualServer( translatedAttrs, props, target );
return( objectName );
|
protected java.util.Set | getLegalOptionalCreateKeys()
return( LEGAL_OPTIONAL_KEYS );
|
protected java.util.Map | getParamNameOverrides()
return( MapUtil.newMap( CONFIG_NAME_KEY, "id" ) );
|
public void | internalRemove(javax.management.ObjectName objectName)
// now - obtain Old HTTPService proxy
final OldHTTPServiceMBean oldHTTPServer =
getOldConfigProxies().getOldHTTPServiceMBean( getConfigName() );
// and ask it to remove VirtualServer
final String name = Util.getName( objectName );
oldHTTPServer.removeVirtualServerById( name );
|