FileDocCategorySizeDatePackage
StandaloneServerConfigFactory.javaAPI DocGlassfish v2 API4299Fri May 04 22:23:20 BST 2007com.sun.enterprise.management.config

StandaloneServerConfigFactory

public class StandaloneServerConfigFactory extends ConfigFactory

Fields Summary
private final com.sun.enterprise.management.support.oldconfig.OldServersMBean
mOldServersMBean
private final Set
LEGAL_OPTIONAL_KEYS
Constructors Summary
public StandaloneServerConfigFactory(ConfigFactoryCallback callbacks)

		super( callbacks );
		
		mOldServersMBean	= callbacks.getOldConfigProxies().getOldServersMBean();
	
Methods Summary
public javax.management.ObjectNamecreate(java.lang.String name, java.lang.String nodeAgentName, java.lang.String configName, java.util.Map optional)

	    debug( "create:\n" + (optional == null ? "null" : MapUtil.toString( optional )) );
	    
		final Map<String,String> all = initParams(name, null, optional );
		final Properties props = new Properties();
		final AttributeList attrList = new AttributeList();
		translateParams(all, attrList, props);

		//create the new server with the new config that was copied
		final ObjectName oldObjectName =
			mOldServersMBean.createServerInstance(nodeAgentName, name, configName, null, props);

		return syncNewAMXMBeanWithOld(oldObjectName);
	
protected java.util.SetgetLegalOptionalCreateKeys()

	
	     
	
	
		return( LEGAL_OPTIONAL_KEYS );
	
protected voidremoveByName(java.lang.String name)

		mOldServersMBean.deleteServerInstance(name);