org.objectweb.cjdbc.controller.jmx
Class AbstractStandardMBean

java.lang.Object
  extended byjavax.management.StandardMBean
      extended byorg.objectweb.cjdbc.controller.jmx.AbstractStandardMBean
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter
Direct Known Subclasses:
AbstractLoadBalancer, Controller, DatabaseBackend, DataCollector, RequestManager, VirtualDatabase

public abstract class AbstractStandardMBean
extends javax.management.StandardMBean
implements javax.management.NotificationEmitter

This class defines a AbstractStandardMBean

Version:
1.0
Author:
Marc Wick

Nested Class Summary
 
Nested classes inherited from class javax.management.StandardMBean
 
Field Summary
private  javax.management.NotificationBroadcasterSupport broadcaster
          the broadcaster instance we write a wrapper for
 
Fields inherited from class javax.management.StandardMBean
 
Constructor Summary
AbstractStandardMBean(java.lang.Class mbeanInterface)
          Creates a new AbstractStandardMBean.java object
 
Method Summary
 void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
           
abstract  java.lang.String getAssociatedString()
          Allow to retrieve internationalization description on mbeans as well
protected  java.lang.String getDescription(javax.management.MBeanAttributeInfo info)
           
protected  java.lang.String getDescription(javax.management.MBeanConstructorInfo ctor)
           
protected  java.lang.String getDescription(javax.management.MBeanConstructorInfo ctor, javax.management.MBeanParameterInfo param, int sequence)
           
protected  java.lang.String getDescription(javax.management.MBeanInfo info)
          Returns the description of the MBean.
protected  java.lang.String getDescription(javax.management.MBeanOperationInfo info)
           
protected  java.lang.String getDescription(javax.management.MBeanOperationInfo op, javax.management.MBeanParameterInfo param, int sequence)
           
 javax.management.MBeanNotificationInfo[] getNotificationInfo()
           
protected  java.lang.String getParameterName(javax.management.MBeanConstructorInfo ctor, javax.management.MBeanParameterInfo param, int sequence)
           
protected  java.lang.String getParameterName(javax.management.MBeanOperationInfo op, javax.management.MBeanParameterInfo param, int sequence)
           
 void removeNotificationListener(javax.management.NotificationListener listener)
           
 void removeNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
           
 void sendNotification(javax.management.Notification notification)
          Sends a notification.
 
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, invoke, setAttribute, setAttributes, setImplementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

broadcaster

private transient javax.management.NotificationBroadcasterSupport broadcaster
the broadcaster instance we write a wrapper for

Constructor Detail

AbstractStandardMBean

public AbstractStandardMBean(java.lang.Class mbeanInterface)
                      throws javax.management.NotCompliantMBeanException
Creates a new AbstractStandardMBean.java object

Parameters:
mbeanInterface - The Management Interface exported by this MBean.
Throws:
javax.management.NotCompliantMBeanException - - if the mbeanInterface does not follow JMX design patterns for Management Interfaces, or if this does not implement the specified interface.
Method Detail

addNotificationListener

public void addNotificationListener(javax.management.NotificationListener listener,
                                    javax.management.NotificationFilter filter,
                                    java.lang.Object handback)
Specified by:
addNotificationListener in interface javax.management.NotificationBroadcaster
See Also:
NotificationBroadcaster.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)

getNotificationInfo

public javax.management.MBeanNotificationInfo[] getNotificationInfo()
Specified by:
getNotificationInfo in interface javax.management.NotificationBroadcaster
See Also:
NotificationBroadcaster.getNotificationInfo()

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener)
                                throws javax.management.ListenerNotFoundException
Specified by:
removeNotificationListener in interface javax.management.NotificationBroadcaster
Throws:
javax.management.ListenerNotFoundException
See Also:
NotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener)

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener,
                                       javax.management.NotificationFilter filter,
                                       java.lang.Object handback)
                                throws javax.management.ListenerNotFoundException
Specified by:
removeNotificationListener in interface javax.management.NotificationEmitter
Throws:
javax.management.ListenerNotFoundException
See Also:
NotificationEmitter.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)

sendNotification

public void sendNotification(javax.management.Notification notification)
Sends a notification.

Parameters:
notification - The notification to send.

getAssociatedString

public abstract java.lang.String getAssociatedString()
Allow to retrieve internationalization description on mbeans as well

Returns:
part of the key to look for in the translation file.

getDescription

protected java.lang.String getDescription(javax.management.MBeanInfo info)
Returns the description of the MBean.

Returns:
a String containing the description

getDescription

protected java.lang.String getDescription(javax.management.MBeanConstructorInfo ctor)
See Also:
StandardMBean.getDescription(javax.management.MBeanConstructorInfo)

getParameterName

protected java.lang.String getParameterName(javax.management.MBeanConstructorInfo ctor,
                                            javax.management.MBeanParameterInfo param,
                                            int sequence)
See Also:
StandardMBean.getParameterName(javax.management.MBeanConstructorInfo, javax.management.MBeanParameterInfo, int)

getDescription

protected java.lang.String getDescription(javax.management.MBeanConstructorInfo ctor,
                                          javax.management.MBeanParameterInfo param,
                                          int sequence)
See Also:
StandardMBean.getDescription(javax.management.MBeanConstructorInfo, javax.management.MBeanParameterInfo, int)

getDescription

protected java.lang.String getDescription(javax.management.MBeanAttributeInfo info)
See Also:
StandardMBean.getDescription(javax.management.MBeanAttributeInfo)

getDescription

protected java.lang.String getDescription(javax.management.MBeanOperationInfo info)
See Also:
StandardMBean.getDescription(javax.management.MBeanOperationInfo)

getParameterName

protected java.lang.String getParameterName(javax.management.MBeanOperationInfo op,
                                            javax.management.MBeanParameterInfo param,
                                            int sequence)
See Also:
StandardMBean.getParameterName(javax.management.MBeanOperationInfo, javax.management.MBeanParameterInfo, int)

getDescription

protected java.lang.String getDescription(javax.management.MBeanOperationInfo op,
                                          javax.management.MBeanParameterInfo param,
                                          int sequence)
See Also:
StandardMBean.getDescription(javax.management.MBeanOperationInfo, javax.management.MBeanParameterInfo, int)


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.