org.yajul.jmx
Class Proxy

java.lang.Object
  extended by org.yajul.jmx.Proxy
All Implemented Interfaces:
Lifecycle

public class Proxy
extends java.lang.Object
implements Lifecycle

A proxy that instantiates the implementation JMX MBean when needed.
User: Joshua Davis Date: Aug 29, 2007 Time: 6:17:01 AM


Method Summary
 java.lang.Exception getException()
          Returns any exception thrown while starting the implementation.
 Lifecycle getImplementation()
          Returns the implementation.
 java.lang.String getImplementationClassName()
           
 boolean isImplementationStarted()
          Returns true if the implementation has been started.
 void start()
          Called when an MBean is started
 void stop()
          Called when an MBean is stopped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getImplementationClassName

public java.lang.String getImplementationClassName()

start

public void start()
           throws java.lang.Exception
Description copied from interface: Lifecycle
Called when an MBean is started

Specified by:
start in interface Lifecycle
Throws:
java.lang.Exception - if something went wrong.

stop

public void stop()
Description copied from interface: Lifecycle
Called when an MBean is stopped

Specified by:
stop in interface Lifecycle

getImplementation

public Lifecycle getImplementation()
Returns the implementation.

Returns:
the implementation

isImplementationStarted

public boolean isImplementationStarted()
Returns true if the implementation has been started.

Returns:
true if the implementation has been started

getException

public java.lang.Exception getException()
Returns any exception thrown while starting the implementation.

Returns:
an exception, or null


Copyright © 2008. All Rights Reserved.