FileDocCategorySizeDatePackage
ClusterConfigImpl.javaAPI DocGlassfish v2 API4153Fri May 04 22:23:16 BST 2007com.sun.enterprise.management.config

ClusterConfigImpl

public final class ClusterConfigImpl extends com.sun.enterprise.management.config.AMXConfigImplBase implements ConfigFactoryCallback
Configuration for the <cluster> element.

Fields Summary
Constructors Summary
public ClusterConfigImpl(com.sun.enterprise.management.support.Delegate delegate)

		super( delegate );
	
Methods Summary
protected voidaddCustomMappings(com.sun.enterprise.management.support.AMXAttributeNameMapper mapper)

	    super.addCustomMappings( mapper );
		mapper.matchName( "ReferencedConfigName", "config-ref" );
	
public java.util.MapgetClusteredServerConfigObjectNameMap()

		final Map<String,ObjectName> serverRefConfigMap =
		    Util.toObjectNames( self().getServerRefConfigMap() );
		if ( serverRefConfigMap.isEmpty() )
		{
			return new HashMap<String,ObjectName>();
		}
		
		final Set<ObjectName> allClusteredServerConfigObjectNames = 
			getQueryMgr().queryJ2EETypeObjectNameSet( XTypes.CLUSTERED_SERVER_CONFIG );
		final Map<String,ObjectName> objectNameMap =
		    Util.createObjectNameMap( allClusteredServerConfigObjectNames );

		final Map<String,ObjectName> clusteredServerConfigObjectNameMap = 
			new HashMap<String,ObjectName>( allClusteredServerConfigObjectNames.size() );

		for( final String key : serverRefConfigMap.keySet() )
		{
			clusteredServerConfigObjectNameMap.put( key, objectNameMap.get( key ) );
		}
		return clusteredServerConfigObjectNameMap;
	
private com.sun.appserv.management.config.ClusterConfigself()

	    return (ClusterConfig)getSelf();