public abstract class ServerNotification extends EventObject
ServerNotification
is an event triggered by something happening
in the Server itself such as the server starting or a service being registered.Modifier and Type | Field and Description |
---|---|
protected int |
action |
protected static int |
ADMIN_EVENT_ACTION_START_RANGE |
protected static int |
COMPONENT_EVENT_ACTION_START_RANGE |
protected static int |
CONNECTION_EVENT_ACTION_START_RANGE |
protected static int |
CONTEXT_EVENT_ACTION_START_RANGE |
protected static int |
CUSTOM_EVENT_ACTION_START_RANGE |
String |
EVENT_NAME |
protected static int |
EXCEPTION_EVENT_ACTION_START_RANGE |
protected static int |
MANAGEMENT_EVENT_ACTION_START_RANGE |
protected static int |
MESSAGE_EVENT_ACTION_START_RANGE |
protected static int |
MODEL_EVENT_ACTION_START_RANGE |
static int |
NO_ACTION_ID |
static String |
NO_ACTION_NAME |
static int |
NULL_ACTION |
static Object |
NULL_MESSAGE |
protected 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.
|
protected static int |
ROUTING_EVENT_ACTION_START_RANGE |
protected static int |
SECURITY_EVENT_ACTION_START_RANGE |
protected String |
serverId |
protected static int |
SERVICE_EVENT_ACTION_START_RANGE |
protected static int |
SPACE_EVENT_ACTION_START_RANGE |
protected long |
timestamp |
protected static int |
TRANSACTION_EVENT_ACTION_START_RANGE |
static String |
TYPE_ERROR |
static String |
TYPE_FATAL |
static String |
TYPE_INFO |
static String |
TYPE_WARNING |
source
Constructor and Description |
---|
ServerNotification(Object message,
int action) |
ServerNotification(Object message,
int action,
String resourceIdentifier) |
Modifier and Type | Method and Description |
---|---|
int |
getAction() |
static int |
getActionId(String action) |
String |
getActionName() |
static String |
getActionName(int action) |
protected String |
getPayloadToString() |
String |
getResourceIdentifier() |
String |
getServerId() |
long |
getTimestamp() |
String |
getType() |
boolean |
isResourceIdentifierAnUri() |
protected static void |
registerAction(String name,
int i) |
String |
toString() |
getSource
public static final int NO_ACTION_ID
public static final String NO_ACTION_NAME
public static final String TYPE_INFO
public static final String TYPE_WARNING
public static final String TYPE_ERROR
public static final String TYPE_FATAL
protected static final int CONTEXT_EVENT_ACTION_START_RANGE
protected static final int MODEL_EVENT_ACTION_START_RANGE
protected static final int SERVICE_EVENT_ACTION_START_RANGE
protected static final int SECURITY_EVENT_ACTION_START_RANGE
protected static final int MANAGEMENT_EVENT_ACTION_START_RANGE
protected static final int ADMIN_EVENT_ACTION_START_RANGE
protected static final int CONNECTION_EVENT_ACTION_START_RANGE
protected static final int MESSAGE_EVENT_ACTION_START_RANGE
protected static final int SPACE_EVENT_ACTION_START_RANGE
protected static final int REGISTRY_EVENT_ACTION_START_RANGE
protected static final int EXCEPTION_EVENT_ACTION_START_RANGE
protected static final int TRANSACTION_EVENT_ACTION_START_RANGE
protected static final int ROUTING_EVENT_ACTION_START_RANGE
protected static final int COMPONENT_EVENT_ACTION_START_RANGE
protected static final int CUSTOM_EVENT_ACTION_START_RANGE
public static final int NULL_ACTION
public static final Object NULL_MESSAGE
public final String EVENT_NAME
protected String serverId
protected long timestamp
protected int action
protected String resourceIdentifier
public ServerNotification(Object message, int action)
public int getAction()
public String getServerId()
public String getResourceIdentifier()
public long getTimestamp()
public boolean isResourceIdentifierAnUri()
public String toString()
toString
in class EventObject
protected String getPayloadToString()
public String getType()
public String getActionName()
protected static void registerAction(String name, int i)
public static String getActionName(int action)
public static int getActionId(String action)
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.