FileDocCategorySizeDatePackage
DeployedItemHelper.javaAPI DocGlassfish v2 API4033Fri May 04 22:30:50 BST 2007com.sun.appserv.management.helper

DeployedItemHelper

public final class DeployedItemHelper extends Helper
Helper for deployed items (modules).

Fields Summary
Constructors Summary
public DeployedItemHelper(com.sun.appserv.management.DomainRoot domainRoot)

		super( domainRoot );
	
Methods Summary
public java.util.SetqueryClusterDeployedItemObjectNames(java.lang.String clusterName)
Get the ObjectNames of all deployed items in the specified cluster. To extract the names, use {@link Util}.getNamesSet(set).

param
clusterName
return
Set of ObjectName for all modules

		// specify all STANDALONE_SERVER_DEPLOYED_ITEM_REF_CONFIG
		final String	refsProp	= 
			Util.makeJ2EETypeProp( XTypes.DEPLOYED_ITEM_REF_CONFIG );
			
		// specify the server
		final String	clusterProp	=
			Util.makeProp( XTypes.CLUSTER_CONFIG, clusterName );
			
		return( Util.toObjectNames( propsQuery( refsProp, clusterProp ) ) );
	
public java.util.SetqueryStandaloneServerDeployedItemObjectNames(java.lang.String standaloneServerName)
Get the ObjectNames of all deployed items in the specified server. To extract the names, use {@link Util}.getNamesSet(set).

param
standaloneServerName
return
Set of ObjectName for all modules

		// specify all STANDALONE_SERVER_DEPLOYED_ITEM_REF_CONFIG
		final String	refsProp	=
			Util.makeJ2EETypeProp( XTypes.DEPLOYED_ITEM_REF_CONFIG );
			
		// specify the server
		final String	serverProp	=
			Util.makeProp( XTypes.STANDALONE_SERVER_CONFIG, standaloneServerName );
			
		return( Util.toObjectNames( propsQuery( refsProp, serverProp ) ) );