1
2
3
4
5
6
7
8
9
10
11 package org.mule.impl.internal.notifications;
12
13 import org.mule.umo.manager.UMOServerNotification;
14
15
16
17
18
19
20
21
22 public class ManagementNotification extends UMOServerNotification
23 {
24
25
26
27 private static final long serialVersionUID = -259130553709035786L;
28
29
30 public static final int MANAGEMENT_COMPONENT_QUEUE_EXHAUSTED = MANAGEMENT_EVENT_ACTION_START_RANGE + 1;
31 public static final int MANAGEMENT_NODE_PING = MANAGEMENT_EVENT_ACTION_START_RANGE + 2;
32
33 private static final transient String[] ACTIONS = new String[]{};
34
35 public ManagementNotification(Object message, int action)
36 {
37 super(message, action);
38 }
39
40 protected String getActionName(int action)
41 {
42 int i = action - MANAGEMENT_EVENT_ACTION_START_RANGE;
43 if (i - 1 > ACTIONS.length)
44 {
45 return String.valueOf(action);
46 }
47 return ACTIONS[i - 1];
48 }
49 }