Package com.saperion.config
Class SaAbstractJMXProperties
- All Implemented Interfaces:
- Serializable,- Cloneable,- Map<Object,,- Object> - DynamicMBean
- Direct Known Subclasses:
- SaJMXBackendProperties,- SaJMXFileProperties,- SaJMXLinkProperties,- SaJMXProperties,- SaJMXStreamProperties,- SaJMXSystemProperties
Abstract MBean class for the JMX specification.
 
A implementation of the
A implementation of the
SaAbstractJMXProperties defines the properties of a specific context as DynamicMBean 
 to be management by a JMX agent.- Author:
- rbo
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringConfig file tag.static final StringReplacement for password shown in jconsole.static final StringSuffix of password property names.Fields inherited from class java.util.Propertiesdefaults
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract MBeanAttributeInfo[]Construct attributes.protected abstract MBeanConstructorInfo[]Construct constructors.protected abstract MBeanOperationInfo[]Construct Operations.getAttribute(String attribute) getAttributes(String[] attributes) protected InputStreamgetConfigStream(String configuration) Tries to read the source from different destinations.protected abstract ObjecthandleInvoke(String actionName, Object[] params, String[] signature) Invoke handling.protected booleanprotected voidRegister bean.voidsetAttribute(Attribute attribute) setAttributes(AttributeList attributes) protected voidsetWriteable(boolean value) Methods inherited from class java.util.Propertiesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
- 
Field Details- 
PASSWORD_SUFFIXSuffix of password property names.- See Also:
 
- 
PASSWORD_REPLACEMENTReplacement for password shown in jconsole.- See Also:
 
- 
CFG_FILEConfig file tag.- See Also:
 
 
- 
- 
Constructor Details- 
SaAbstractJMXPropertiesConstructor.- Parameters:
- configName- Name
 
 
- 
- 
Method Details- 
isWriteableprotected boolean isWriteable()- Returns:
- is writable
 
- 
setWriteableprotected void setWriteable(boolean value) - Parameters:
- value- Writable
 
- 
getConfigStreamTries to read the source from different destinations.- Parameters:
- configuration- The source file name
- Returns:
- The input stream of this source
- Throws:
- IOException- in case of configuration file does not exist.
 
- 
registerRegister bean.- Parameters:
- className- Class name
 
- 
constructAttributesConstruct attributes.- Returns:
- Attribute infos
 
- 
constructOperationsConstruct Operations.- Returns:
- Operation infos
 
- 
constructConstructorsConstruct constructors.- Returns:
- Constructor infos
 
- 
handleInvokeprotected abstract Object handleInvoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException Invoke handling.- Parameters:
- actionName- Action name
- params- Parameters
- signature- Signatures
- Returns:
- Handle object
- Throws:
- MBeanException- MBeanException
- ReflectionException- ReflectionException
 
- 
getAttributepublic Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException - Specified by:
- getAttributein interface- DynamicMBean
- Throws:
- AttributeNotFoundException
- MBeanException
- ReflectionException
- See Also:
 
- 
getAttributes- Specified by:
- getAttributesin interface- DynamicMBean
- See Also:
 
- 
getMBeanInfo- Specified by:
- getMBeanInfoin interface- DynamicMBean
- See Also:
 
- 
invokepublic Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException - Specified by:
- invokein interface- DynamicMBean
- Throws:
- MBeanException
- ReflectionException
- See Also:
 
- 
setAttributepublic void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException - Specified by:
- setAttributein interface- DynamicMBean
- Throws:
- AttributeNotFoundException
- InvalidAttributeValueException
- MBeanException
- ReflectionException
- See Also:
 
- 
setAttributes- Specified by:
- setAttributesin interface- DynamicMBean
- See Also:
 
 
-