org.mule.management.agents
Class WrapperManagerAgent

java.lang.Object
  extended byorg.mule.management.agents.WrapperManagerAgent
All Implemented Interfaces:
Disposable, Initialisable, Lifecycle, Startable, Stoppable, UMOAgent

public class WrapperManagerAgent
extends Object
implements UMOAgent

This agent integrates Java Service Wrapper into Mule. See http://wrapper.tanukisoftware.org for more details.


Field Summary
static String DEFAULT_WRAPPER_MBEAN_NAME
          For cases when Mule is embedded in another process and that external process had registered the MBean.
static String WRAPPER_OBJECT_NAME
          MBean name to register under.
 
Constructor Summary
WrapperManagerAgent()
           
 
Method Summary
 void dispose()
           
 String getDescription()
           
 String getName()
           
 void initialise()
           
protected  void lazyInitWrapperManager()
           
 void registered()
           
 void setName(String name)
           
 void start()
           
 void stop()
           
 void unregistered()
           
protected  void unregisterMBeansIfNecessary()
          Unregister all MBeans if there are any left over the old deployment
protected  void unregisterMeQuietly()
          Quietly unregister ourselves.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WRAPPER_OBJECT_NAME

public static final String WRAPPER_OBJECT_NAME
MBean name to register under.

See Also:
Constant Field Values

DEFAULT_WRAPPER_MBEAN_NAME

public static final String DEFAULT_WRAPPER_MBEAN_NAME
For cases when Mule is embedded in another process and that external process had registered the MBean.

See Also:
Constant Field Values
Constructor Detail

WrapperManagerAgent

public WrapperManagerAgent()
Method Detail

initialise

public void initialise()
                throws InitialisationException
Specified by:
initialise in interface Initialisable
Throws:
InitialisationException

start

public void start()
           throws UMOException
Specified by:
start in interface Startable
Throws:
UMOException

stop

public void stop()
          throws UMOException
Specified by:
stop in interface Stoppable
Throws:
UMOException

dispose

public void dispose()
Specified by:
dispose in interface Disposable

registered

public void registered()
Specified by:
registered in interface UMOAgent

unregistered

public void unregistered()
Specified by:
unregistered in interface UMOAgent

getDescription

public String getDescription()
Specified by:
getDescription in interface UMOAgent

getName

public String getName()
Specified by:
getName in interface UMOAgent

setName

public void setName(String name)
Specified by:
setName in interface UMOAgent

lazyInitWrapperManager

protected void lazyInitWrapperManager()

unregisterMBeansIfNecessary

protected void unregisterMBeansIfNecessary()
                                    throws javax.management.MalformedObjectNameException,
                                           javax.management.InstanceNotFoundException,
                                           javax.management.MBeanRegistrationException
Unregister all MBeans if there are any left over the old deployment

Throws:
javax.management.MalformedObjectNameException
javax.management.InstanceNotFoundException
javax.management.MBeanRegistrationException

unregisterMeQuietly

protected void unregisterMeQuietly()
Quietly unregister ourselves.



Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.