org.mule.umo.manager
Class UMOServerNotification

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.mule.umo.manager.UMOServerNotification
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AdminNotification, ComponentNotification, ConnectionNotification, CustomNotification, ExceptionNotification, ManagementNotification, ManagerNotification, MessageNotification, ModelNotification, SecurityNotification, TransactionNotification

public abstract class UMOServerNotification
extends EventObject

UMOServerNotification is an event triggered by something happening in the Server itself such as the server starting or a component being registered

See Also:
Serialized Form

Field Summary
protected  int action
           
static int ADMIN_EVENT_ACTION_START_RANGE
           
static int COMPONENT_EVENT_ACTION_START_RANGE
           
static int CONNECTION_EVENT_ACTION_START_RANGE
           
static int CUSTOM_EVENT_ACTION_START_RANGE
           
 String EVENT_NAME
           
static int EXCEPTION_EVENT_ACTION_START_RANGE
           
static int MANAGEMENT_EVENT_ACTION_START_RANGE
           
static int MANAGER_EVENT_ACTION_START_RANGE
           
static int MESSAGE_EVENT_ACTION_START_RANGE
           
static int MODEL_EVENT_ACTION_START_RANGE
           
static int NULL_ACTION
           
static Object NULL_MESSAGE
           
static int REGISTRY_EVENT_ACTION_START_RANGE
           
protected  String resourceIdentifier
          The resourceIdentifier is used when firing inbound server notifications such as Admin notifications or other action notifications triggered by an external source Used to associate the event with a particular resource.
static int SECURITY_EVENT_ACTION_START_RANGE
           
protected  String serverId
           
static int SPACE_EVENT_ACTION_START_RANGE
           
protected  long timestamp
           
static int TRANSACTION_EVENT_ACTION_START_RANGE
           
static String TYPE_ERROR
           
static String TYPE_FATAL
           
static String TYPE_INFO
           
static String TYPE_WARNING
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
UMOServerNotification(Object message, int action)
           
UMOServerNotification(Object message, int action, String resourceIdentifier)
           
 
Method Summary
 int getAction()
           
 String getActionName()
           
protected abstract  String getActionName(int action)
           
protected  String getPayloadToString()
           
 String getResourceIdentifier()
           
 String getServerId()
           
 long getTimestamp()
           
 String getType()
           
 boolean isResourceIdentifierAnUri()
           
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_INFO

public static final String TYPE_INFO
See Also:
Constant Field Values

TYPE_WARNING

public static final String TYPE_WARNING
See Also:
Constant Field Values

TYPE_ERROR

public static final String TYPE_ERROR
See Also:
Constant Field Values

TYPE_FATAL

public static final String TYPE_FATAL
See Also:
Constant Field Values

MANAGER_EVENT_ACTION_START_RANGE

public static final int MANAGER_EVENT_ACTION_START_RANGE
See Also:
Constant Field Values

MODEL_EVENT_ACTION_START_RANGE

public static final int MODEL_EVENT_ACTION_START_RANGE
See Also:
Constant Field Values

COMPONENT_EVENT_ACTION_START_RANGE

public static final int COMPONENT_EVENT_ACTION_START_RANGE
See Also:
Constant Field Values

SECURITY_EVENT_ACTION_START_RANGE

public static final int SECURITY_EVENT_ACTION_START_RANGE
See Also:
Constant Field Values

MANAGEMENT_EVENT_ACTION_START_RANGE

public static final int MANAGEMENT_EVENT_ACTION_START_RANGE
See Also:
Constant Field Values

ADMIN_EVENT_ACTION_START_RANGE

public static final int ADMIN_EVENT_ACTION_START_RANGE
See Also:
Constant Field Values

CONNECTION_EVENT_ACTION_START_RANGE

public static final int CONNECTION_EVENT_ACTION_START_RANGE
See Also:
Constant Field Values

MESSAGE_EVENT_ACTION_START_RANGE

public static final int MESSAGE_EVENT_ACTION_START_RANGE
See Also:
Constant Field Values

SPACE_EVENT_ACTION_START_RANGE

public static final int SPACE_EVENT_ACTION_START_RANGE
See Also:
Constant Field Values

REGISTRY_EVENT_ACTION_START_RANGE

public static final int REGISTRY_EVENT_ACTION_START_RANGE
See Also:
Constant Field Values

EXCEPTION_EVENT_ACTION_START_RANGE

public static final int EXCEPTION_EVENT_ACTION_START_RANGE
See Also:
Constant Field Values

TRANSACTION_EVENT_ACTION_START_RANGE

public static final int TRANSACTION_EVENT_ACTION_START_RANGE
See Also:
Constant Field Values

CUSTOM_EVENT_ACTION_START_RANGE

public static final int CUSTOM_EVENT_ACTION_START_RANGE
See Also:
Constant Field Values

NULL_ACTION

public static final int NULL_ACTION
See Also:
Constant Field Values

NULL_MESSAGE

public static final Object NULL_MESSAGE

EVENT_NAME

public final String EVENT_NAME

serverId

protected String serverId

timestamp

protected long timestamp

action

protected int action

resourceIdentifier

protected String resourceIdentifier
The resourceIdentifier is used when firing inbound server notifications such as Admin notifications or other action notifications triggered by an external source Used to associate the event with a particular resource. For example, if the event was a ComponentNotification the resourceIdentifier could be the name of a particular component

Constructor Detail

UMOServerNotification

public UMOServerNotification(Object message,
                             int action)

UMOServerNotification

public UMOServerNotification(Object message,
                             int action,
                             String resourceIdentifier)
Method Detail

getAction

public int getAction()

getServerId

public String getServerId()

getResourceIdentifier

public String getResourceIdentifier()

getTimestamp

public long getTimestamp()

isResourceIdentifierAnUri

public boolean isResourceIdentifierAnUri()

toString

public String toString()

getPayloadToString

protected String getPayloadToString()

getType

public String getType()

getActionName

public String getActionName()

getActionName

protected abstract String getActionName(int action)


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