my.avalon.jmx.samples
Class HelloSample2

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended bymy.avalon.jmx.samples.HelloSample2
All Implemented Interfaces:
org.apache.avalon.framework.activity.Executable, HelloSample2MBean, org.apache.avalon.framework.logger.LogEnabled, MBeanable

public class HelloSample2
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements HelloSample2MBean, MBeanable, org.apache.avalon.framework.activity.Executable

HelloSample sample of avalon component usable throught jmx. This component include stage "my.avalon.jmx.MBeanable" and implements MBeanable interface.


Constructor Summary
HelloSample2()
           
 
Method Summary
 void execute()
          log a info message "execute".
 java.lang.String getName()
          name used to (un)register the component, must be constant through the 2 calls.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelloSample2

public HelloSample2()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: MBeanable
name used to (un)register the component, must be constant through the 2 calls.

Specified by:
getName in interface MBeanable
Returns:
the name of the component into "jmx-server".

execute

public void execute()
             throws java.lang.Exception
log a info message "execute".

Specified by:
execute in interface HelloSample2MBean
Throws:
java.lang.Exception


Copyright © 2003-2004 . All Rights Reserved.