|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Container
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.
| Field Summary | |
|---|---|
static String |
ATTR_CONTAINEE_J2EE_TYPES
Attribute returned by getContaineeJ2EETypes(). |
| Fields inherited from interface com.sun.appserv.management.base.AMX |
|---|
FULL_TYPE_DELIM, GROUP_CONFIGURATION, GROUP_JSR77, GROUP_MONITORING, GROUP_OTHER, GROUP_UTILITY, J2EE_TYPE_KEY, JMX_DOMAIN, NAME_KEY, NO_NAME, NOTIFICATION_PREFIX, NULL_NAME |
| Method Summary | ||
|---|---|---|
|
getByNameContaineeSet(Set<String> j2eeTypes,
String name)
|
|
|
getContainee(String j2eeType)
Obtain the singleton MBean having the specified type. |
|
|
getContainee(String j2eeType,
String name)
Get a singleton containee having the specified j2eeType and name. |
|
Set<String> |
getContaineeJ2EETypes()
|
|
|
getContaineeMap(String j2eeType)
Each key in the resulting Map is a String which is the value of the AMX.NAME_KEY for that AMX, which is the value. |
|
|
getContaineeSet()
Same as getContaineeSet( getContaineeJ2EETypes() ) |
|
|
getContaineeSet(Set<String> j2eeTypes)
|
|
|
getContaineeSet(String j2eeType)
|
|
|
getMultiContaineeMap(Set<String> j2eeTypes)
Return a Map keyed by j2eeType. |
|
| Methods inherited from interface com.sun.appserv.management.base.AMX |
|---|
getContainer, getDomainRoot, getFullType, getGroup, getJ2EEType, getName, isDAS |
| Methods inherited from interface javax.management.NotificationEmitter |
|---|
removeNotificationListener |
| Methods inherited from interface javax.management.NotificationBroadcaster |
|---|
addNotificationListener, getNotificationInfo, removeNotificationListener |
| Methods inherited from interface com.sun.appserv.management.base.AMXMBeanLogging |
|---|
getMBeanLoggerName, getMBeanLogLevel, setMBeanLogLevel |
| Field Detail |
|---|
static final String ATTR_CONTAINEE_J2EE_TYPES
| Method Detail |
|---|
Set<String> getContaineeJ2EETypes()
Util.getNamesSet(java.util.Set) <T extends AMX> Map<String,Map<String,T>> getMultiContaineeMap(Set<String> j2eeTypes)
getContaineeMap(java.lang.String).
If the passed Set is null, then all types are obtained. Pass
the set returned from getContaineeJ2EETypes() to get all currently
present containees.
j2eeTypes - the j2eeTypes to look for, or null for all
<T extends AMX> Map<String,T> getContaineeMap(String j2eeType)
AMX, which is the value.
j2eeType - the j2eeType to look for
<T extends AMX> T getContainee(String j2eeType)
j2eeType -
AMX of specified j2eeType or null if not present
IllegalArgumentException - if there is more than one item of this typeUtil.getNamesSet(java.util.Set) <T extends AMX> Set<T> getContaineeSet(String j2eeType)
Util.getNamesSet(java.util.Set) <T extends AMX> Set<T> getContaineeSet()
Util.getNamesSet(java.util.Set) ,
getContaineeSet(java.util.Set)<T extends AMX> Set<T> getContaineeSet(Set<String> j2eeTypes)
Util.getNamesSet(java.util.Set) ,
getMultiContaineeMap(java.util.Set)
<T extends AMX> Set<T> getByNameContaineeSet(Set<String> j2eeTypes,
String name)
Util.getNamesSet(java.util.Set)
<T extends AMX> T getContainee(String j2eeType,
String name)
j2eeType - the j2eeType of the containedname - the name of the contained (as found in "name" property)
Util.getNamesSet(java.util.Set)
|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved.