@Taxonomy(stability=NOT_AN_INTERFACE) public class AMXConfigImpl extends AMXImplBase
EMPTY_OBJECT_NAMES, GET, GET_PREFIX, mMBeanInfo, OBJECT_NAME_SUFFIX, SETEMPTY_STRING_ARRAY, mSelfObjectName, mServer| Constructor and Description |
|---|
AMXConfigImpl(ObjectName parentObjectName,
ConfigBean configBean) |
| Modifier and Type | Method and Description |
|---|---|
protected String[] |
attributeNameToType(String attributeName)
Supply possible types to be tried based on attribute name
|
static String |
convertAttributeName(String s) |
ObjectName |
createChild(String type,
Map<String,Object> params) |
ObjectName[] |
createChildren(Map<String,Map<String,Object>[]> childrenMaps,
Map<String,Object> attrs) |
protected Object |
getAttributeFromConfigBean(String amxName)
Get an Attribute.
|
protected Object |
getAttributeManually(String name)
Subclasses should override this to handle getAttribute( attrName ).
|
protected ConfigModel.Property |
getConfigModel_Property(String xmlName) |
Map<String,String> |
getDefaultValues(boolean useAMXAttributeNames) |
Map<String,String> |
getDefaultValues(String type,
boolean useAMXAttributeNames) |
String |
getName()
The actual name could be different than the 'name' property in the ObjectName if it contains characters that are illegal for an ObjectName.
|
protected Object |
invokeManually(String operationName,
Object[] args,
String[] types)
Automatically figure out get
|
static List<String> |
listOfString()
exists so we can get the parameterized return type
|
ObjectName |
removeChild(String type) |
ObjectName |
removeChild(String type,
String name) |
String |
resolveAttribute(String attrName) |
AttributeList |
resolveAttributes(String[] attrNames) |
String |
resolveAttributeValue(String varString)
Resolve a template String.
|
Boolean |
resolveBoolean(String attrName) |
Integer |
resolveInteger(String attrName) |
Long |
resolveLong(String attrName) |
void |
sendConfigCreatedNotification(ObjectName configObjectName) |
void |
sendConfigRemovedNotification(ObjectName configObjectName) |
protected void |
setAttributeManually(Attribute attr)
Subclasses should override this to handle setAttribute( attr ).
|
AttributeList |
setAttributes(AttributeList attrs)
Note that the default implementation sets attributes one at a time, but that MBeans with transactional requirements (eg configuration) may wish to set
them as a group.
|
AttributeList |
setAttributesInConfigBean(AttributeList attrsIn) |
AttributeList |
setAttributesTransactionally(AttributeList attrs) |
attributeTypeMatches, child, child, child, findGetter, findMethod, findSetter, getAncestorByType, getAttribute, getAttributeByMethod, getAttributeInfo, getAttributeInfos, getAttributeInternal, getAttributeNames, getAttributeNoThrow, getAttributes, getAttributeType, getChildren, getChildren, getChildren, getChildren, getChildrenMap, getDomainRoot, getDomainRootProxy, getLogger, getMBeanInfo, getMBeanTracker, getNotificationInfo, getObjectNameAttribute, getObjectNames, getObjectNamesForAttribute, getParent, getParentProxy, getProxy, getProxyFactory, getSelf, getSelf, getterNameMatches, handleException, handleGetAttributeException, handleInvokeThrowable, impossible, invoke, isReadOnlyAttribute, isUtilityMBean, java, operationNameMatches, postRegisterHook, postRegisterModifyMBeanInfo, preDeregisterHook, preRegister, preRegisterDone, preRegisterHook, preRegisterModifyName, registerChild, registerChildren, sendAttributeChangeNotification, setAttribute, setAttributeByMethod, setAttributeInternal, shouldEmitNotifications, stringify, supportsChildren, toString, unimplementedAttribute, unimplementedOperation, unregisterChildren_getMBeanLogLevel, addNotificationListener, addNotificationListener, createNotificationBuilder, debug, debug, debugMethod, debugMethod, enableAMXDebug, getAMXDebug, getDebugID, getDebugOutput, getJMXDomain, getListenerCount, getMBeanLogger, getMBeanLoggerName, getMBeanLogLevel, getMBeanLogLevelInt, getMBeanServer, getNotificationBuilder, getNotificationEmitter, getNotificationTypeListenerCount, getObjectName, logFine, logFiner, logFinest, logInfo, logSevere, logWarning, postDeregister, postDeregisterHook, postRegister, preDeregister, quote, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, setAMXDebug, setMBeanLogLevel, shouldOmitObjectNameForDebug, toString, traceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitremoveNotificationListeneraddNotificationListener, removeNotificationListenerpublic AMXConfigImpl(ObjectName parentObjectName, ConfigBean configBean)
protected void setAttributeManually(Attribute attr) throws AttributeNotFoundException, InvalidAttributeValueException
AMXImplBasesetAttributeManually in class AMXImplBaseAttributeNotFoundExceptionInvalidAttributeValueExceptionpublic AttributeList setAttributes(AttributeList attrs)
setAttributes in interface DynamicMBeansetAttributes in class AMXImplBasepublic AttributeList setAttributesTransactionally(AttributeList attrs) throws Exception
Exceptionpublic String getName()
getName in interface AMX_SPIgetName in class AMXImplBasepublic String resolveAttributeValue(String varString)
AttributeResolver for details.public AttributeList resolveAttributes(String[] attrNames)
public ObjectName[] createChildren(Map<String,Map<String,Object>[]> childrenMaps, Map<String,Object> attrs)
public ObjectName createChild(String type, Map<String,Object> params)
public static List<String> listOfString()
public ObjectName removeChild(String type)
public ObjectName removeChild(String type, String name)
protected Object invokeManually(String operationName, Object[] args, String[] types) throws MBeanException, ReflectionException, NoSuchMethodException, AttributeNotFoundException
invokeManually in class AMXImplBaseMBeanExceptionReflectionExceptionNoSuchMethodExceptionAttributeNotFoundExceptionpublic void sendConfigCreatedNotification(ObjectName configObjectName)
public void sendConfigRemovedNotification(ObjectName configObjectName)
public final Map<String,String> getDefaultValues(String type, boolean useAMXAttributeNames)
protected String[] attributeNameToType(String attributeName)
AMXImplBaseattributeNameToType in class AMXImplBaseprotected Object getAttributeManually(String name) throws AttributeNotFoundException, ReflectionException, MBeanException
AMXImplBasegetAttributeManually in class AMXImplBaseAttributeNotFoundExceptionReflectionExceptionMBeanExceptionprotected final Object getAttributeFromConfigBean(String amxName)
protected ConfigModel.Property getConfigModel_Property(String xmlName)
public AttributeList setAttributesInConfigBean(AttributeList attrsIn) throws TransactionFailure
TransactionFailureCopyright © 2019. All rights reserved.