|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BulkAccess
Bulk access to various JMX constructs. The term "bulk" refers to the fact the multiple MBeans are accessed together on the server side, to minimize remote invocation of many MBeans.
Because a failure can occur with a particular MBeans, results or failures are communicated back in an array of the exact size of the original ObjectName[]. Examining the results array yields either the result, or a Throwable, if one occured. This is why all results are of type Object[].
Clients wishing to use this interface should note that they may first
need to obtain an ObjectName[] from a Set or Map of AMX
. The easiest way
to do this is to use Util.toObjectNames(java.util.Set extends com.sun.appserv.management.base.AMX>)
followed by
conversion of the Set to an ObjectName[].
Field Summary | |
---|---|
static String |
J2EE_TYPE
The j2eeType as returned by AMX.getJ2EEType() . |
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 | |
---|---|
Object[] |
bulkGetAttribute(ObjectName[] objectNames,
String attributeName)
Call getAttribute( attributeName ) for multiple MBeans. |
Object[] |
bulkGetAttributeNames(ObjectName[] objectNames)
Call getMBeanInfo().getAttributes() for multiple MBeans, then extracts the Attribute name from each Attribute. |
Object[] |
bulkGetAttributes(ObjectName[] objectNames,
String[] attributeNames)
Call getAttributes( attributeNames ) for multiple MBeans. |
Object[] |
bulkGetMBeanAttributeInfo(ObjectName[] objectNames)
Call getMBeanInfo().getAttributes() for multiple MBeans. |
Object[] |
bulkGetMBeanInfo(ObjectName[] objectNames)
Call getMBeanInfo() for multiple MBeans. |
Object[] |
bulkGetMBeanOperationInfo(ObjectName[] objectNames)
Call getMBeanInfo().getOperations() for multiple MBeans. |
Object[] |
bulkInvoke(ObjectName[] objectNames,
String operationName,
Object[] args,
String[] types)
Call invoke( ... ) for multiple MBeans. |
Object[] |
bulkSetAttribute(ObjectName[] objectNames,
Attribute attr)
Call setAttribute( attr ) for multiple MBeans. |
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 J2EE_TYPE
AMX.getJ2EEType()
.
Method Detail |
---|
Object[] bulkGetMBeanInfo(ObjectName[] objectNames)
objectNames
-
Object[] bulkGetMBeanAttributeInfo(ObjectName[] objectNames)
objectNames
-
Object[] bulkGetMBeanOperationInfo(ObjectName[] objectNames)
objectNames
-
Object[] bulkGetAttributeNames(ObjectName[] objectNames)
objectNames
-
Object[] bulkGetAttribute(ObjectName[] objectNames, String attributeName)
objectNames
- attributeName
-
Object[] bulkSetAttribute(ObjectName[] objectNames, Attribute attr)
objectNames
- attr
-
Object[] bulkGetAttributes(ObjectName[] objectNames, String[] attributeNames)
Object[] bulkInvoke(ObjectName[] objectNames, String operationName, Object[] args, String[] types)
WARNING: No guarantee can be made that the MBeans being invoked will not alter their arguments, thus altering the parameters that subsequent MBeans receive when invoked.
objectNames
- operationName
- args
- types
-
|
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.