|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AMX
Base interface implemented by all available interfaces part of the Appserver Application Programming Interface (AMX). An AMX is actually a dynamic client-side proxy to a server-side MBean. It provides a strongly typed and convenient interface for accessing the server-side MBeans.
Certain conventions are followed when an AMX provides access to other AMX instances; when a single item is returned, the return type is strongly-typed. When a Map or Set is returned, the values found in the Map or Set must be cast appropriately. The context should make it obvious what the appropriate cast is. It is always safe to cast to AMX, since this is base interface.
Additional information, such as MBeanInfo
for the target MBean,
may be obtained via Util.getExtra(com.sun.appserv.management.base.AMX)
All AMX that emit Notifications place a Map within
the userData field of a standard Notification
which may be obtained via Notification.getUserData()
.
Within the Map are zero or more items, which vary with the Notification type.
Each Notification type, and data available within the Notification,
is defined in its respective MBean or in an appropriate place.
Util.getExtra(com.sun.appserv.management.base.AMX)
,
Extra
,
Container
,
StdAttributesAccess
,
PropertiesAccess
,
MonitoringStats
,
J2EEDomain
Field Summary | |
---|---|
static String |
FULL_TYPE_DELIM
The delimiter between parts of a fully-qualified type as returned by getFullType() . |
static String |
GROUP_CONFIGURATION
Value from getGroup() indicating that the AMX is a
configuration MBean. |
static String |
GROUP_JSR77
Value from getGroup() indicating that the AMX is a JSR 77 MBean
(J2EE Management) . |
static String |
GROUP_MONITORING
Value from getGroup() indicating that the AMX represents a monitoring MBean. |
static String |
GROUP_OTHER
Value from getGroup() indicating that the AMX is not one
of the other types. |
static String |
GROUP_UTILITY
Value from getGroup() indicating that the AMX is a utility MBean. |
static String |
J2EE_TYPE_KEY
The ObjectName property key denoting the type of the MBean. |
static String |
JMX_DOMAIN
The JMX domain in which all AMX MBeans are located. |
static String |
NAME_KEY
The ObjectName property key denoting the name of the MBean. |
static String |
NO_NAME
The name given to any MBean lacking a "real" name. |
static String |
NOTIFICATION_PREFIX
The prefix for all Notification types issued by AMX. |
static String |
NULL_NAME
The name used when a FullType part refers to a non-existent parent eg a standalone ejb or web module that has a null J2EEApplication. |
Method Summary | |
---|---|
Container |
getContainer()
Get the AMX which logically contains this one. |
DomainRoot |
getDomainRoot()
Get the DomainRoot. |
String |
getFullType()
Format: [[[part].]*]j2eeType Example for j2eeType=Servlet: type=J2EEServer.J2EEApplication.WebModule.Servlet |
String |
getGroup()
Possible values include: GROUP_CONFIGURATION
GROUP_MONITORING
GROUP_UTILITY
GROUP_JSR77
GROUP_OTHER
|
String |
getJ2EEType()
Get the j2eeType of this item. |
String |
getName()
Get the name of this item. |
boolean |
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 NOTIFICATION_PREFIX
static final String JMX_DOMAIN
static final String FULL_TYPE_DELIM
getFullType()
.
static final String GROUP_CONFIGURATION
getGroup()
indicating that the AMX is a
configuration MBean.
static final String GROUP_MONITORING
getGroup()
indicating that the AMX represents a monitoring MBean.
static final String GROUP_UTILITY
getGroup()
indicating that the AMX is a utility MBean.
static final String GROUP_JSR77
getGroup()
indicating that the AMX is a JSR 77 MBean
(J2EE Management) .
static final String GROUP_OTHER
getGroup()
indicating that the AMX is not one
of the other types.
static final String J2EE_TYPE_KEY
static final String NAME_KEY
static final String NO_NAME
NAME_KEY
),
they have no meaningful name.
static final String NULL_NAME
Method Detail |
---|
Container getContainer()
AMXAttributes.ATTR_CONTAINER_OBJECT_NAME
DomainRoot getDomainRoot()
String getFullType()
[[[part].]*]j2eeTypeExample for j2eeType=Servlet:
type=J2EEServer.J2EEApplication.WebModule.Servlet
AMXAttributes.ATTR_FULL_TYPE
String getGroup()
AMXAttributes.ATTR_GROUP
String getJ2EEType()
J2EE_TYPE_KEY
) and whose value is specific to the
sub-interface the item represents. Equivalent to the J2EE_TYPE field
found in each AMX sub-interface.
XTypes
,
J2EETypes
String getName()
NAME_KEY
boolean isDAS()
|
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.