org.mule.management.mbeans
Class ComponentService

java.lang.Object
  extended byorg.mule.management.mbeans.ComponentService
All Implemented Interfaces:
ComponentServiceMBean, Startable, Stoppable

public class ComponentService
extends java.lang.Object
implements ComponentServiceMBean

ComponentService exposes service information about a Mule Managed component

Version:
$Revision: 1.1.1.1 $
Author:
Ross Mason

Constructor Summary
ComponentService(java.lang.String name)
           
 
Method Summary
 void dispose()
           
 java.lang.String getName()
          The name of this component
 int getQueueSize()
          The number of queued events for this component
 ObjectName getStatistics()
          The statistics for this component
 boolean isPaused()
           
 boolean isStopped()
           
 void pause()
          Pauses event processing for theComponent.
 void postDeregister()
           
 void postRegister(java.lang.Boolean registrationDone)
           
 void preDeregister()
           
 ObjectName preRegister(MBeanServer server, ObjectName name)
           
 void resume()
          Resumes the Component that has been paused.
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentService

public ComponentService(java.lang.String name)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: ComponentServiceMBean
The name of this component

Specified by:
getName in interface ComponentServiceMBean
Returns:
The name of this component

getQueueSize

public int getQueueSize()
Description copied from interface: ComponentServiceMBean
The number of queued events for this component

Specified by:
getQueueSize in interface ComponentServiceMBean
Returns:
The number of queued events for this component

pause

public void pause()
           throws UMOException
Pauses event processing for theComponent. Unlike stop(), a paused component will still consume messages from the underlying transport, but those messages will be queued until the component is resumed.

In order to persist these queued messages you can set the 'recoverableMode' property on the Muleconfiguration to true. this causes all internal queues to store their state.

Specified by:
pause in interface ComponentServiceMBean
Throws:
UMOException - if the component failed to pause.
See Also:
MuleConfiguration

resume

public void resume()
            throws UMOException
Resumes the Component that has been paused. If the component is not paused nothing is executed.

Specified by:
resume in interface ComponentServiceMBean
Throws:
UMOException - if the component failed to resume

isPaused

public boolean isPaused()
Specified by:
isPaused in interface ComponentServiceMBean

isStopped

public boolean isStopped()
Specified by:
isStopped in interface ComponentServiceMBean

stop

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

dispose

public void dispose()
             throws UMOException
Specified by:
dispose in interface ComponentServiceMBean
Throws:
UMOException

start

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

getStatistics

public ObjectName getStatistics()
Description copied from interface: ComponentServiceMBean
The statistics for this component

Specified by:
getStatistics in interface ComponentServiceMBean
Returns:
statistics for this component
See Also:
ComponentStats

preRegister

public ObjectName preRegister(MBeanServer server,
                              ObjectName name)
                       throws java.lang.Exception
Throws:
java.lang.Exception

postRegister

public void postRegister(java.lang.Boolean registrationDone)

preDeregister

public void preDeregister()
                   throws java.lang.Exception
Throws:
java.lang.Exception

postDeregister

public void postDeregister()


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.