org.mule.module.management.agent
Class JmxServerNotificationAgent

java.lang.Object
  extended by org.mule.AbstractAgent
      extended by org.mule.agent.AbstractNotificationLoggerAgent
          extended by org.mule.module.management.agent.JmxServerNotificationAgent
All Implemented Interfaces:
Agent, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, NameableObject, NamedObject

public class JmxServerNotificationAgent
extends AbstractNotificationLoggerAgent

An agent that propergates Mule Server notifications to Jmx.


Nested Class Summary
static class JmxServerNotificationAgent.BroadcastNotificationService
           
static interface JmxServerNotificationAgent.BroadcastNotificationServiceMBean
           
static class JmxServerNotificationAgent.NotificationListener
           
static interface JmxServerNotificationAgent.NotificationListenerMBean
           
 
Field Summary
static String BROADCASTER_JMX_OBJECT_NAME
           
static String DEFAULT_AGENT_NAME
           
static String LISTENER_JMX_OBJECT_NAME
           
 
Fields inherited from class org.mule.agent.AbstractNotificationLoggerAgent
logger
 
Fields inherited from class org.mule.AbstractAgent
muleContext, name
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
JmxServerNotificationAgent()
           
 
Method Summary
 void dispose()
          A lifecycle method where implementor should free up any resources.
protected  void doInitialise()
           
 String getDescription()
          A description of the agent that gets displayed in the splash screen when the Mule Context starts up.
 JmxSupportFactory getJmxSupportFactory()
           
protected  void logEvent(ServerNotification e)
           
 void setJmxSupportFactory(JmxSupportFactory jmxSupportFactory)
           
 
Methods inherited from class org.mule.agent.AbstractNotificationLoggerAgent
initialise, isIgnoreAdminNotifications, isIgnoreComponentMessageNotifications, isIgnoreComponentNotifications, isIgnoreConnectionNotifications, isIgnoreCustomNotifications, isIgnoreEndpointMessageNotifications, isIgnoreManagementNotifications, isIgnoreManagerNotifications, isIgnoreMessageNotifications, isIgnoreModelNotifications, isIgnoreSecurityNotifications, setIgnoreAdminNotifications, setIgnoreComponentMessageNotifications, setIgnoreComponentNotifications, setIgnoreConnectionNotifications, setIgnoreCustomNotifications, setIgnoreEndpointMessageNotifications, setIgnoreManagementNotifications, setIgnoreManagerNotifications, setIgnoreMessageNotifications, setIgnoreModelNotifications, setIgnoreSecurityNotifications, start, stop
 
Methods inherited from class org.mule.AbstractAgent
getName, setMuleContext, setName, unregisterMeQuietly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LISTENER_JMX_OBJECT_NAME

public static final String LISTENER_JMX_OBJECT_NAME
See Also:
Constant Field Values

BROADCASTER_JMX_OBJECT_NAME

public static final String BROADCASTER_JMX_OBJECT_NAME
See Also:
Constant Field Values

DEFAULT_AGENT_NAME

public static final String DEFAULT_AGENT_NAME
See Also:
Constant Field Values
Constructor Detail

JmxServerNotificationAgent

public JmxServerNotificationAgent()
Method Detail

doInitialise

protected void doInitialise()
                     throws InitialisationException
Specified by:
doInitialise in class AbstractNotificationLoggerAgent
Throws:
InitialisationException

dispose

public void dispose()
Description copied from interface: Disposable
A lifecycle method where implementor should free up any resources. If an exception is thrown it should just be logged and processing should continue. This method should not throw Runtime exceptions.

Specified by:
dispose in interface Disposable
Overrides:
dispose in class AbstractNotificationLoggerAgent

logEvent

protected void logEvent(ServerNotification e)
Specified by:
logEvent in class AbstractNotificationLoggerAgent

getDescription

public String getDescription()
Description copied from interface: Agent
A description of the agent that gets displayed in the splash screen when the Mule Context starts up.

Specified by:
getDescription in interface Agent
Overrides:
getDescription in class AbstractAgent
Returns:
a 1 line description of the agent.

getJmxSupportFactory

public JmxSupportFactory getJmxSupportFactory()

setJmxSupportFactory

public void setJmxSupportFactory(JmxSupportFactory jmxSupportFactory)


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.