Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean Class Reference

List of all members.

Public Member Functions

void addNotificationListener (NotificationListener listener, NotificationFilter filter, Object handback)
MBeanNotificationInfo[] getNotificationInfo ()
void removeNotificationListener (NotificationListener listener) throws ListenerNotFoundException
void removeNotificationListener (NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
void sendNotification (Notification notification)
 AbstractStandardMBean (Class mbeanInterface) throws NotCompliantMBeanException
abstract String getAssociatedString ()

Protected Member Functions

String getDescription (MBeanInfo info)
String getDescription (MBeanConstructorInfo ctor)
String getParameterName (MBeanConstructorInfo ctor, MBeanParameterInfo param, int sequence)
String getDescription (MBeanConstructorInfo ctor, MBeanParameterInfo param, int sequence)
String getDescription (MBeanAttributeInfo info)
String getDescription (MBeanOperationInfo info)
String getParameterName (MBeanOperationInfo op, MBeanParameterInfo param, int sequence)
String getDescription (MBeanOperationInfo op, MBeanParameterInfo param, int sequence)

Detailed Description

This class defines a AbstractStandardMBean

Author:
Marc Wick
Version:
1.0

Definition at line 50 of file AbstractStandardMBean.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.AbstractStandardMBean Class  mbeanInterface  )  throws NotCompliantMBeanException
 

Creates a new AbstractStandardMBean.java object

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

Definition at line 124 of file AbstractStandardMBean.java.

00126   {
00127     super(mbeanInterface);
00128     broadcaster = new NotificationBroadcasterSupport();
00129   }


Member Function Documentation

void org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.addNotificationListener NotificationListener  listener,
NotificationFilter  filter,
Object  handback
 

See also:
javax.management.NotificationBroadcaster#addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)

Definition at line 63 of file AbstractStandardMBean.java.

00065   {
00066     broadcaster.addNotificationListener(listener, filter, handback);
00067   }

abstract String org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getAssociatedString  )  [pure virtual]
 

Allow to retrieve internationalization description on mbeans as well

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

Referenced by org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getDescription(), and org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getParameterName().

String org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getDescription MBeanOperationInfo  op,
MBeanParameterInfo  param,
int  sequence
[protected]
 

See also:
javax.management.StandardMBean#getDescription(javax.management.MBeanOperationInfo, javax.management.MBeanParameterInfo, int)

Definition at line 212 of file AbstractStandardMBean.java.

References org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getAssociatedString().

00214   {
00215     return JmxTranslate.get("mbean." + getAssociatedString() + "."
00216         + op.getName() + ".parameter.description." + sequence);
00217   }

String org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getDescription MBeanOperationInfo  info  )  [protected]
 

See also:
javax.management.StandardMBean#getDescription(javax.management.MBeanOperationInfo)

Definition at line 191 of file AbstractStandardMBean.java.

References org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getAssociatedString().

00192   {
00193     return JmxTranslate.get("mbean." + getAssociatedString() + "."
00194         + info.getName());
00195   }

String org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getDescription MBeanAttributeInfo  info  )  [protected]
 

See also:
javax.management.StandardMBean#getDescription(javax.management.MBeanAttributeInfo)

Definition at line 182 of file AbstractStandardMBean.java.

References org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getAssociatedString().

00183   {
00184     return JmxTranslate.get("mbean." + getAssociatedString() + ".attribute."
00185         + info.getName());
00186   }

String org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getDescription MBeanConstructorInfo  ctor,
MBeanParameterInfo  param,
int  sequence
[protected]
 

See also:
javax.management.StandardMBean#getDescription(javax.management.MBeanConstructorInfo, javax.management.MBeanParameterInfo, int)

Definition at line 172 of file AbstractStandardMBean.java.

References org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getAssociatedString().

00174   {
00175     return JmxTranslate.get("mbean." + getAssociatedString() + ".constructor."
00176         + ctor.getSignature().length + ".parameter.description." + sequence);
00177   }

String org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getDescription MBeanConstructorInfo  ctor  )  [protected]
 

See also:
javax.management.StandardMBean#getDescription(javax.management.MBeanConstructorInfo)

Definition at line 151 of file AbstractStandardMBean.java.

References org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getAssociatedString().

00152   {
00153     return JmxTranslate.get("mbean." + getAssociatedString() + ".constructor."
00154         + ctor.getSignature().length);
00155   }

String org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getDescription MBeanInfo  info  )  [protected]
 

Returns the description of the MBean.

Returns:
a String containing the description

Definition at line 143 of file AbstractStandardMBean.java.

References org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getAssociatedString().

00144   {
00145     return JmxTranslate.get("mbean." + getAssociatedString() + ".description");
00146   }

MBeanNotificationInfo [] org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getNotificationInfo  ) 
 

See also:
javax.management.NotificationBroadcaster#getNotificationInfo()

Definition at line 72 of file AbstractStandardMBean.java.

00073   {
00074     // is the broadcaster already initialized ?
00075     if (broadcaster == null)
00076       // no we return empty array
00077       return new MBeanNotificationInfo[0];
00078 
00079     return broadcaster.getNotificationInfo();
00080   }

String org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getParameterName MBeanOperationInfo  op,
MBeanParameterInfo  param,
int  sequence
[protected]
 

See also:
javax.management.StandardMBean#getParameterName(javax.management.MBeanOperationInfo, javax.management.MBeanParameterInfo, int)

Definition at line 201 of file AbstractStandardMBean.java.

References org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getAssociatedString().

00203   {
00204     return JmxTranslate.get("mbean." + getAssociatedString() + "."
00205         + op.getName() + ".parameter.name." + sequence);
00206   }

String org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getParameterName MBeanConstructorInfo  ctor,
MBeanParameterInfo  param,
int  sequence
[protected]
 

See also:
javax.management.StandardMBean#getParameterName(javax.management.MBeanConstructorInfo, javax.management.MBeanParameterInfo, int)

Definition at line 161 of file AbstractStandardMBean.java.

References org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.getAssociatedString().

00163   {
00164     return JmxTranslate.get("mbean." + getAssociatedString() + ".constructor."
00165         + ctor.getSignature().length + ".parameter.name." + sequence);
00166   }

void org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.removeNotificationListener NotificationListener  listener,
NotificationFilter  filter,
Object  handback
throws ListenerNotFoundException
 

See also:
javax.management.NotificationEmitter#removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)

Definition at line 95 of file AbstractStandardMBean.java.

00098   {
00099     broadcaster.removeNotificationListener(listener, filter, handback);
00100   }

void org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.removeNotificationListener NotificationListener  listener  )  throws ListenerNotFoundException
 

See also:
javax.management.NotificationBroadcaster#removeNotificationListener(javax.management.NotificationListener)

Definition at line 85 of file AbstractStandardMBean.java.

00087   {
00088     broadcaster.removeNotificationListener(listener);
00089   }

void org.objectweb.cjdbc.controller.jmx.AbstractStandardMBean.sendNotification Notification  notification  ) 
 

Sends a notification.

Parameters:
notification The notification to send.

Definition at line 107 of file AbstractStandardMBean.java.

Referenced by org.objectweb.cjdbc.controller.jmx.RmiConnector.sendNotification().

00108   {
00109     broadcaster.sendNotification(notification);
00110   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:03:50 2005 for C-JDBC by  doxygen 1.3.9.1