cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Module JMX- Add MBean Operations Action - Generated Code

Authors: Alexandre Neubert, Thomas LevequeJean-Francois Denise

Add MBean Operations Action

The code is generated at the end of the target MBean class.

The following code is an example for one Operation (sendNotif as name, void as return type, one parameter, no exceptions and 'send a notification' as description) :

   /**
    * send a notification
    * @param message <code>String</code> a warning message
    */
    public void sendNotif(String message)
    {
        //TODO Add the operation implementation
    }


The code is generated at the end of the target MBean interface.
The following code is an example for one Operation (sendNotif as name, void as return type, one parameter, no exceptions and 'send a notification' as description) :

   /**
    * send a notification
    *
    * @param message <code>String</code> a warning message
    */
    public void sendNotif(String message);


In case of the MBean class has already a method which represents this operation, we generate only the missing method
declaration in the MBean interface.



Companion
Projects:
MySQL Database Server   GlassFish Community: an Open Source Application Server   Open Solaris  Open JDK: an Open SourceJDK   Mobile & Embedded Community     Sponsored by 
Sponsored by Sun Microsystems