1 10 11 package org.mule.impl.internal.notifications; 12 13 import org.mule.umo.manager.UMOServerNotification; 14 15 24 public class ManagementNotification extends UMOServerNotification 25 { 26 29 private static final long serialVersionUID = -259130553709035786L; 30 31 public static final int MANAGEMENT_COMPONENT_QUEUE_EXHAUSTED = MANAGEMENT_EVENT_ACTION_START_RANGE + 1; 33 public static final int MANAGEMENT_NODE_PING = MANAGEMENT_EVENT_ACTION_START_RANGE + 2; 34 35 private static final transient String [] ACTIONS = new String []{}; 36 37 public ManagementNotification(Object message, int action) 38 { 39 super(message, action); 40 } 41 42 protected String getActionName(int action) 43 { 44 int i = action - MANAGEMENT_EVENT_ACTION_START_RANGE; 45 if (i - 1 > ACTIONS.length) 46 { 47 return String.valueOf(action); 48 } 49 return ACTIONS[i - 1]; 50 } 51 } 52 | Popular Tags |