| java.lang.Object com.sun.jbi.management.support.MBeanSet
Method Summary | |
public boolean | add(ObjectName theMBeanName, Class theMBeanDefinition, Object theMBeanImplementation, boolean isEmitter) Add an Standard MBean to the Set that can potentially emit JMX notifications.
Parameters: theMBeanName - - the object name of the mbean to add. Parameters: theMBeanDefinition - - the interface that defines the MBean. Parameters: theMBeanImplementation - - an instance of the MBean implementation class. Parameters: isEmitter - - true if this MBean wants to emit jmx notifications. | public boolean | add(ObjectName theMBeanName, Class theMBeanDefinition, Object theMBeanImplementation) Add an Standard MBean to the Set that will not emit notifications.
Parameters: theMBeanName - - the object name of the mbean to add. Parameters: theMBeanDefinition - - the interface that defines the MBean. Parameters: theMBeanImplementation - - an instance of the MBean implementation class. | public boolean | delete(ObjectName theMBeanName) Delete an MBean from an existing MBean Set.
Parameters: theMBeanName - - the object name of the mbean to delete. | public void | dump(String aTitle) dump contents of an MBeanSet to the log. | public boolean | exists(ObjectName theMBeanName) True if an MBean exists in the named MBean Set.
Parameters: theMBeanName - - the object name of the mbean to check. | public boolean | isRegistered(ObjectName theMBeanName) True if an MBean is part of this set and is registered.
Parameters: theMBeanName - - the object name of the mbean to check. | public boolean | register() Register all of the MBean's in an MBean Set. | public boolean | replace(ObjectName theMBeanName, Class theMBeanDefinition, Object theMBeanImplementation, boolean isEmitter) Replace a Standard MBean in the Set that can potentially emit JMX notifications.
Parameters: theMBeanName - - the object name of the mbean to replace. Parameters: theMBeanDefinition - - the interface that defines the MBean. Parameters: theMBeanImplementation - - an instance of the MBean implementation class. Parameters: isEmitter - - true if this MBean wants to emit jmx notifications. | public boolean | replace(ObjectName theMBeanName, Class theMBeanDefinition, Object theMBeanImplementation) Replace a Standard MBean in the Set.
Parameters: theMBeanName - - the object name of the mbean to replace. Parameters: theMBeanDefinition - - the interface that defines the MBean. Parameters: theMBeanImplementation - - an instance of the MBean implementation class. | public boolean | unregister() Unregister all of the MBean's in an MBean Set. |
MBeanSet | public MBeanSet(MBeanServer aMBeanServer, Logger aLogger)(Code) | | Constructs a MBeanSet .
Parameters: aMBeanServer - is the MBean server provided by the framework. Parameters: aLogger - is where this class should log messages. |
add | public boolean add(ObjectName theMBeanName, Class theMBeanDefinition, Object theMBeanImplementation, boolean isEmitter)(Code) | | Add an Standard MBean to the Set that can potentially emit JMX notifications.
Parameters: theMBeanName - - the object name of the mbean to add. Parameters: theMBeanDefinition - - the interface that defines the MBean. Parameters: theMBeanImplementation - - an instance of the MBean implementation class. Parameters: isEmitter - - true if this MBean wants to emit jmx notifications. true if mbean is added to the set, otherwise false. |
add | public boolean add(ObjectName theMBeanName, Class theMBeanDefinition, Object theMBeanImplementation)(Code) | | Add an Standard MBean to the Set that will not emit notifications.
Parameters: theMBeanName - - the object name of the mbean to add. Parameters: theMBeanDefinition - - the interface that defines the MBean. Parameters: theMBeanImplementation - - an instance of the MBean implementation class. true if mbean is added to the set, otherwise false. |
delete | public boolean delete(ObjectName theMBeanName)(Code) | | Delete an MBean from an existing MBean Set.
Parameters: theMBeanName - - the object name of the mbean to delete. true if the MBean is deleted from the set, otherwise false. |
dump | public void dump(String aTitle)(Code) | | dump contents of an MBeanSet to the log.
Parameters: aTitle - - the title of the dump. |
exists | public boolean exists(ObjectName theMBeanName)(Code) | | True if an MBean exists in the named MBean Set.
Parameters: theMBeanName - - the object name of the mbean to check. true if the MBean exists in the set, otherwise false. |
isRegistered | public boolean isRegistered(ObjectName theMBeanName)(Code) | | True if an MBean is part of this set and is registered.
Parameters: theMBeanName - - the object name of the mbean to check. true if the MBean exists in the set, otherwise false. |
register | public boolean register()(Code) | | Register all of the MBean's in an MBean Set.
Okay if some are already registered.
Ignores null entries.
To re-register, you must unregister the named object before
registering the set.
true iff all mbeans are now registered. |
replace | public boolean replace(ObjectName theMBeanName, Class theMBeanDefinition, Object theMBeanImplementation, boolean isEmitter)(Code) | | Replace a Standard MBean in the Set that can potentially emit JMX notifications.
Parameters: theMBeanName - - the object name of the mbean to replace. Parameters: theMBeanDefinition - - the interface that defines the MBean. Parameters: theMBeanImplementation - - an instance of the MBean implementation class. Parameters: isEmitter - - true if this MBean wants to emit jmx notifications. true if mbean is replaced in the set, otherwise false. |
replace | public boolean replace(ObjectName theMBeanName, Class theMBeanDefinition, Object theMBeanImplementation)(Code) | | Replace a Standard MBean in the Set.
Parameters: theMBeanName - - the object name of the mbean to replace. Parameters: theMBeanDefinition - - the interface that defines the MBean. Parameters: theMBeanImplementation - - an instance of the MBean implementation class. true if mbean is replaced in the set, otherwise false. |
unregister | public boolean unregister()(Code) | | Unregister all of the MBean's in an MBean Set.
It is not an error to unregister an MBean that is not registered.
true iff all mbeans are unregistered. |
|
|