FileDocCategorySizeDatePackage
ClusterRefConfigFactory.javaAPI DocGlassfish v2 API4456Fri May 04 22:23:18 BST 2007com.sun.enterprise.management.config

ClusterRefConfigFactory

public final class ClusterRefConfigFactory extends ConfigFactory

Fields Summary
private final com.sun.enterprise.management.support.oldconfig.OldLbConfig
mOldLbConfigMBean
private final Set
LEGAL_OPTIONAL_KEYS
Constructors Summary
public ClusterRefConfigFactory(ConfigFactoryCallback callbacks)

        super(callbacks);
        final String containerName = getFactoryContainer().getName();
        mOldLbConfigMBean = getOldConfigProxies().getOldLbConfig(containerName);
    
Methods Summary
public javax.management.ObjectNamecreate(java.lang.String referencedClusterName, java.util.Map optional)


        final String[] requiredParams = new String[] {};
        final Map<String,String> params = initParams(referencedClusterName, requiredParams, optional);
        final ObjectName amxName = createNamedChild(referencedClusterName, params);
        return(amxName);                
    
public javax.management.ObjectNamecreate(java.lang.String referencedClusterName, java.lang.String lbPolicy, java.lang.String lbPolicyModule)


        final Map<String,String> optionalParams = new java.util.HashMap<String,String>();
        if (lbPolicy != null)
            optionalParams.put(ClusterRefConfigCR.LB_POLICY_KEY,lbPolicy); 
        if (lbPolicyModule != null)
            optionalParams.put(ClusterRefConfigCR.LB_POLICY_MODULE_KEY, lbPolicyModule); 

        return create(referencedClusterName, optionalParams);
    
protected javax.management.ObjectNamecreateOldChildConfig(javax.management.AttributeList translatedAttrs)

        return mOldLbConfigMBean.createClusterRef(translatedAttrs);
    
protected java.util.SetgetLegalOptionalCreateKeys()

        return(LEGAL_OPTIONAL_KEYS);
    
protected java.util.MapgetParamNameOverrides()


       
        return(MapUtil.newMap(CONFIG_NAME_KEY, "ref"));
    
public voidremoveByName(java.lang.String referencedClusterName)

        mOldLbConfigMBean.removeClusterRefByRef(referencedClusterName);