Note that considerable metadata is available for config MBeans, via MBeanInfo.getDescriptor().
@Taxonomy(stability=UNCOMMITTED) @Deprecated public interface AMXConfigProxy extends AMXProxy, AttributeResolver
AMXProxy,
AMXConfigConstants| Modifier and Type | Method and Description |
|---|---|
AMXConfigProxy |
createChild(String childType,
Map<String,Object> params)
Deprecated.
Generic creation of an
AMXConfigProxy based on the desired XML element type, which must
be legitimate for the containing element. |
AMXConfigProxy[] |
createChildren(Map<String,Map<String,Object>[]> childrenMaps,
Map<String,Object> attrs)
Deprecated.
Create one or more children of any type(s).
|
Map<String,String> |
getDefaultValues(boolean useAMXAttributeName)
Deprecated.
Return a Map of default values for this MBean.
|
Map<String,String> |
getDefaultValues(String type,
boolean useAMXAttributeName)
Deprecated.
Return a Map of default values for the specified child type.
|
ObjectName |
removeChild(String childType)
Deprecated.
Generically remove a config by type (child must be a singleton)
|
ObjectName |
removeChild(String childType,
String name)
Deprecated.
Remove a config by type and name.
|
AttributeList |
setAttributesTransactionally(AttributeList attrs)
Deprecated.
Direct access to the MBeanServer, calls conn.setAttributes(objectName, attrs).
|
as, attributeNames, attributesMap, attributesMap, child, child, childrenMap, childrenMap, childrenMaps, childrenSet, extra, invokeOp, invokeOp, java, nameProp, objectName, parent, parentPath, path, type, validgetChildren, getName, getParentresolveAttribute, resolveAttributes, resolveAttributeValue, resolveBoolean, resolveLong@ManagedOperation(impact=0) @Description(value="Get the default values for child type") Map<String,String> getDefaultValues(@Param(name="type") String type, @Param(name="useAMXAttributeName") @Description(value="true to use Attribute names, false to use XML names") boolean useAMXAttributeName)
type - the J2EEType of the childuseAMXAttributeName - whether to key the values by the the AMX Attribute name or XML attribute name@ManagedOperation(impact=0) @Description(value="Get the available default values") Map<String,String> getDefaultValues(@Param(name="useAMXAttributeName") @Description(value="true to use Attribute names, false to use XML names") boolean useAMXAttributeName)
useAMXAttributeName - whether to key the values by the XML attribute name vs the AMX Attribute name@ManagedOperation @Description(value="Create a child of the specified type") AMXConfigProxy createChild(@Param(name="childType") String childType, @Param(name="params") @Description(value="name/value pairs for attributes") Map<String,Object> params)
AMXConfigProxy based on the desired XML element type, which must
be legitimate for the containing element.
Required attributes must be specified, and should all be 'String' (The Map value is declared with a type of of 'Object' anticipating future extensions). Use the ATTR_NAME key for the name.
childType - the XML element typeparams - Map containing attributes which are required by the @Configured and any
optional attributes (as desired).@ManagedOperation AMXConfigProxy[] createChildren(@Param(name="childrenMaps") @Description(value="Keyed by type, then one Map per child of that type, with each map containing name/value pairs for attributes") Map<String,Map<String,Object>[]> childrenMaps, @Param(name="attrs") @Description(value="Attributes to be set on the parent element") Map<String,Object> attrs)
@ManagedOperation ObjectName removeChild(@Param(name="childType") String childType, @Param(name="name") String name)
childType - the AMX j2eeType as definedname - the name of the child@ManagedOperation ObjectName removeChild(@Param(name="childType") String childType)
childType - the AMX j2eeType as defined@ManagedOperation AttributeList setAttributesTransactionally(@Param(name="attrs") AttributeList attrs) throws Exception
StdAttributesAccess.setAttributes(javax.management.AttributeList), this method throws a generic Exception if there is a transaction failure.ExceptionCopyright © 2019. All rights reserved.