public class MBeanServerManagerImpl extends java.lang.Object implements java.io.Serializable, MBeanServerManager
Modifier and Type | Method and Description |
---|---|
void |
addMBeanManyRelation(java.lang.String attributeName,
java.lang.Object parentObject,
java.lang.Object childObject)
Adds a bean relationship which links a parentObject to a childObject, this has to be added to an existing one-to-many relationship
|
void |
createMBeanManyRelation(java.lang.String attributeName,
java.lang.String description,
java.lang.Object parentObject)
Creates an empty one-to-many bean relation for a parentObject with an attribute name
|
void |
createMBeanOneRelation(java.lang.String attributeName,
java.lang.String description,
java.lang.Object parentObject,
java.lang.Object childObject)
Creates an one-to-one bean relation linking a parentObject to a childObject with an attribute name
|
void |
notifyLongAttributeChanged(java.lang.String attributeName,
java.lang.Long delta)
Notifies registered listeners of long attribute changes
|
void |
notifyMBeanAttributeChanged(java.lang.String attributeName,
java.lang.Object object,
java.lang.Object oldValue,
java.lang.Object newValue)
Notifies JMX Clients of a change to a specified attribute
|
void |
registerLongAttributeChangedListener(java.lang.String attributeName,
LongAttributeListener longAttributeListener)
Registers listeners for long attribute changes
|
void |
registerMBean(java.lang.Object object)
|
void |
removeMBeanManyRelation(java.lang.String attributeName,
java.lang.Object parentObject,
java.lang.Object childObject)
Removes bean one-to-many relation for attribute between a parentObject and childObject
|
void |
unregisterMBean(java.lang.Object object)
|
public void registerMBean(java.lang.Object object)
MBeanServerManager
registerMBean
in interface MBeanServerManager
object
- object annotated with JMXBean
to be addedpublic void unregisterMBean(java.lang.Object object)
MBeanServerManager
unregisterMBean
in interface MBeanServerManager
object
- object annotated with JMXBean
to be removedpublic void notifyMBeanAttributeChanged(java.lang.String attributeName, java.lang.Object object, java.lang.Object oldValue, java.lang.Object newValue)
MBeanServerManager
notifyMBeanAttributeChanged
in interface MBeanServerManager
attributeName
- attribute that has changedobject
- object to which changed attribute belongsoldValue
- original valuenewValue
- updated valuepublic void createMBeanOneRelation(java.lang.String attributeName, java.lang.String description, java.lang.Object parentObject, java.lang.Object childObject)
MBeanServerManager
createMBeanOneRelation
in interface MBeanServerManager
attributeName
- relation attribute namedescription
- description provided to JMX client of this attributeparentObject
- JMXBean
annotated object relation is registered withpublic void createMBeanManyRelation(java.lang.String attributeName, java.lang.String description, java.lang.Object parentObject)
MBeanServerManager
createMBeanManyRelation
in interface MBeanServerManager
attributeName
- relation attribute namedescription
- description provided to JMX client of this attributeparentObject
- JMXBean
annotated object relation is registered withpublic void addMBeanManyRelation(java.lang.String attributeName, java.lang.Object parentObject, java.lang.Object childObject)
MBeanServerManager
addMBeanManyRelation
in interface MBeanServerManager
attributeName
- relation attribute nameparentObject
- JMXBean
annotated object relation is registered withchildObject
- JMXBean
annotated object returned upon requesting the relationpublic void removeMBeanManyRelation(java.lang.String attributeName, java.lang.Object parentObject, java.lang.Object childObject)
MBeanServerManager
removeMBeanManyRelation
in interface MBeanServerManager
attributeName
- attribute for which to remove linkparentObject
- object from which relation will be removedchildObject
- object to which relation is linkedpublic void registerLongAttributeChangedListener(java.lang.String attributeName, LongAttributeListener longAttributeListener)
MBeanServerManager
registerLongAttributeChangedListener
in interface MBeanServerManager
attributeName
- attribute to listen for changes tolongAttributeListener
- listener to receive callbacks upon changes to attributepublic void notifyLongAttributeChanged(java.lang.String attributeName, java.lang.Long delta)
MBeanServerManager
notifyLongAttributeChanged
in interface MBeanServerManager
attributeName
- changed attributedelta
- change in attributePlease send bug reports and comments to Caplin support