Package com.caplin.management.jmx
Class MBeanServerManagerImpl
- java.lang.Object
-
- com.caplin.management.jmx.MBeanServerManagerImpl
-
- All Implemented Interfaces:
MBeanServerManager
,java.io.Serializable
public class MBeanServerManagerImpl extends java.lang.Object implements java.io.Serializable, MBeanServerManager
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 relationshipvoid
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 namevoid
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 namevoid
notifyLongAttributeChanged(java.lang.String attributeName, java.lang.Long delta)
Notifies registered listeners of long attribute changesvoid
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 attributevoid
registerLongAttributeChangedListener(java.lang.String attributeName, LongAttributeListener longAttributeListener)
Registers listeners for long attribute changesvoid
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 childObjectvoid
unregisterMBean(java.lang.Object object)
-
-
-
Method Detail
-
registerMBean
public void registerMBean(java.lang.Object object)
Description copied from interface:MBeanServerManager
- Specified by:
registerMBean
in interfaceMBeanServerManager
- Parameters:
object
- object annotated withJMXBean
to be added
-
unregisterMBean
public void unregisterMBean(java.lang.Object object)
Description copied from interface:MBeanServerManager
- Specified by:
unregisterMBean
in interfaceMBeanServerManager
- Parameters:
object
- object annotated withJMXBean
to be removed
-
notifyMBeanAttributeChanged
public void notifyMBeanAttributeChanged(java.lang.String attributeName, java.lang.Object object, java.lang.Object oldValue, java.lang.Object newValue)
Description copied from interface:MBeanServerManager
Notifies JMX Clients of a change to a specified attribute- Specified by:
notifyMBeanAttributeChanged
in interfaceMBeanServerManager
- Parameters:
attributeName
- attribute that has changedobject
- object to which changed attribute belongsoldValue
- original valuenewValue
- updated value
-
createMBeanOneRelation
public void createMBeanOneRelation(java.lang.String attributeName, java.lang.String description, java.lang.Object parentObject, java.lang.Object childObject)
Description copied from interface:MBeanServerManager
Creates an one-to-one bean relation linking a parentObject to a childObject with an attribute name- Specified by:
createMBeanOneRelation
in interfaceMBeanServerManager
- Parameters:
attributeName
- relation attribute namedescription
- description provided to JMX client of this attributeparentObject
-JMXBean
annotated object relation is registered withchildObject
-JMXBean
annotated object returned upon requesting the relation
-
createMBeanManyRelation
public void createMBeanManyRelation(java.lang.String attributeName, java.lang.String description, java.lang.Object parentObject)
Description copied from interface:MBeanServerManager
Creates an empty one-to-many bean relation for a parentObject with an attribute name- Specified by:
createMBeanManyRelation
in interfaceMBeanServerManager
- Parameters:
attributeName
- relation attribute namedescription
- description provided to JMX client of this attributeparentObject
-JMXBean
annotated object relation is registered with
-
addMBeanManyRelation
public void addMBeanManyRelation(java.lang.String attributeName, java.lang.Object parentObject, java.lang.Object childObject)
Description copied from interface:MBeanServerManager
Adds a bean relationship which links a parentObject to a childObject, this has to be added to an existing one-to-many relationship- Specified by:
addMBeanManyRelation
in interfaceMBeanServerManager
- Parameters:
attributeName
- relation attribute nameparentObject
-JMXBean
annotated object relation is registered withchildObject
-JMXBean
annotated object returned upon requesting the relation
-
removeMBeanManyRelation
public void removeMBeanManyRelation(java.lang.String attributeName, java.lang.Object parentObject, java.lang.Object childObject)
Description copied from interface:MBeanServerManager
Removes bean one-to-many relation for attribute between a parentObject and childObject- Specified by:
removeMBeanManyRelation
in interfaceMBeanServerManager
- Parameters:
attributeName
- attribute for which to remove linkparentObject
- object from which relation will be removedchildObject
- object to which relation is linked
-
registerLongAttributeChangedListener
public void registerLongAttributeChangedListener(java.lang.String attributeName, LongAttributeListener longAttributeListener)
Description copied from interface:MBeanServerManager
Registers listeners for long attribute changes- Specified by:
registerLongAttributeChangedListener
in interfaceMBeanServerManager
- Parameters:
attributeName
- attribute to listen for changes tolongAttributeListener
- listener to receive callbacks upon changes to attribute
-
notifyLongAttributeChanged
public void notifyLongAttributeChanged(java.lang.String attributeName, java.lang.Long delta)
Description copied from interface:MBeanServerManager
Notifies registered listeners of long attribute changes- Specified by:
notifyLongAttributeChanged
in interfaceMBeanServerManager
- Parameters:
attributeName
- changed attributedelta
- change in attribute
-
-