my.avalon.jmx.samples
Class HelloSample4

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

public class HelloSample4
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements HelloSample4MBean, 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, but return null as getName(), so MBeanableHandler used "urn:avalon:name".


Constructor Summary
HelloSample4()
           
 
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

HelloSample4

public HelloSample4()
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 HelloSample4MBean
Throws:
java.lang.Exception


Copyright © 2003-2004 . All Rights Reserved.