org.mule.impl.internal.notifications
Class CustomNotification
java.lang.Object
java.util.EventObject
org.mule.umo.manager.UMOServerNotification
org.mule.impl.internal.notifications.CustomNotification
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- FunctionalTestNotification
- public class CustomNotification
- extends UMOServerNotification
CustomNotification Custom notifications can be used by components
and other objects such as routers, transformers, agents, etc to communicate a
change of state to each other. The Action value for the event is abitary. However
care should be taken not to set the action code to an existing action code. To
ensure this doesn't happen always set the action code greater than the
CUSTOM_ACTION_START_RANGE.
- Version:
- $Revision: 3798 $
- Author:
- Ross Mason
- See Also:
CustomNotificationListener,
Serialized Form
| Fields inherited from class org.mule.umo.manager.UMOServerNotification |
action, ADMIN_EVENT_ACTION_START_RANGE, COMPONENT_EVENT_ACTION_START_RANGE, CONNECTION_EVENT_ACTION_START_RANGE, CUSTOM_EVENT_ACTION_START_RANGE, EVENT_NAME, MANAGEMENT_EVENT_ACTION_START_RANGE, MANAGER_EVENT_ACTION_START_RANGE, MESSAGE_EVENT_ACTION_START_RANGE, MODEL_EVENT_ACTION_START_RANGE, NULL_ACTION, NULL_MESSAGE, REGISTRY_EVENT_ACTION_START_RANGE, resourceIdentifier, SECURITY_EVENT_ACTION_START_RANGE, serverId, SPACE_EVENT_ACTION_START_RANGE, timestamp, TYPE_ERROR, TYPE_FATAL, TYPE_INFO, TYPE_WARNING |
CustomNotification
public CustomNotification(Object message,
int action)
- Creates a custom action event
- Parameters:
message - the message to associate with the eventaction - the action code for the event
- Throws:
IllegalArgumentException - if the action value is less than
CUSTOM_ACTION_START_RANGE
CustomNotification
public CustomNotification(Object message,
int action,
String resourceId)
getActionName
protected String getActionName(int action)
- Specified by:
getActionName in class UMOServerNotification
getActionNames
protected String[] getActionNames()
Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.