FileDocCategorySizeDatePackage
Container.javaAPI DocGlassfish v2 API5160Fri May 04 22:30:30 BST 2007com.sun.appserv.management.base

Container

public interface Container implements AMX
All MBeans which logically contain other MBeans implement this interface; such an MBean is considered a Container, and the contained MBean is considered a Containee. The interface indicates the potential to contain other MBeans; at any given time MBeans may or may not be contained.

Fields Summary
public static final String
ATTR_CONTAINEE_J2EE_TYPES
Attribute returned by getContaineeJ2EETypes().
Constructors Summary
Methods Summary
public java.util.SetgetByNameContaineeSet(java.util.Set j2eeTypes, java.lang.String name)

return
all containees having one of the specified types and the specified name.
see
com.sun.appserv.management.base.Util#getNamesSet

public TgetContainee(java.lang.String j2eeType)
Obtain the singleton MBean having the specified type.

param
j2eeType
return
{@link AMX} of specified j2eeType or null if not present
throws
IllegalArgumentException if there is more than one item of this type
see
Util#getNamesSet

public TgetContainee(java.lang.String j2eeType, java.lang.String name)
Get a singleton containee having the specified j2eeType and name.

param
j2eeType the j2eeType of the contained
param
name the name of the contained (as found in "name" property)
return
AMX or null if not found
see
Util#getNamesSet

public java.util.SetgetContaineeJ2EETypes()

return
Set of String of all possible j2eeTypes contained within this item
see
com.sun.appserv.management.base.Util#getNamesSet

public java.util.MapgetContaineeMap(java.lang.String j2eeType)
Each key in the resulting Map is a String which is the value of the AMX.NAME_KEY for that {@link AMX}, which is the value.

param
j2eeType the j2eeType to look for
return
Map name=AMX

public java.util.SetgetContaineeSet(java.lang.String j2eeType)

return
all containees having the specified j2eeType.
see
Util#getNamesSet

public java.util.SetgetContaineeSet()
Same as getContaineeSet( getContaineeJ2EETypes() )

return
all containees of any j2eeType
see
Util#getNamesSet
see
#getContaineeSet(java.util.Set)

public java.util.SetgetContaineeSet(java.util.Set j2eeTypes)

return
all containees having the specified j2eeType(s).
see
Util#getNamesSet
see
#getMultiContaineeMap

public java.util.MapgetMultiContaineeMap(java.util.Set j2eeTypes)
Return a Map keyed by j2eeType. The value corresponding to each key (j2eeType) is another Map, as returned from {@link #getContaineeMap}.

If the passed Set is null, then all types are obtained. Pass the set returned from {@link #getContaineeJ2EETypes} to get all currently present containees.

param
j2eeTypes the j2eeTypes to look for, or null for all
return
Map (possibly empty) of j2eeType=<Map of name=AMX>