View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.context.notification;
8   
9   import org.mule.api.context.notification.ServerNotification;
10  
11  /**
12   * <code>ManagementNotification</code> is fired when monitored resources such as
13   * internal queues reach capacity
14   * 
15   */
16  public class ManagementNotification extends ServerNotification
17  {
18      /**
19       * Serial version
20       */
21      private static final long serialVersionUID = -259130553709035786L;
22  
23      // TODO resource status notifications here i.e.
24      public static final int MANAGEMENT_COMPONENT_QUEUE_EXHAUSTED = MANAGEMENT_EVENT_ACTION_START_RANGE + 1;
25      public static final int MANAGEMENT_NODE_PING = MANAGEMENT_EVENT_ACTION_START_RANGE + 2;
26  
27      static {
28          registerAction("service queue exhausted", MANAGEMENT_COMPONENT_QUEUE_EXHAUSTED);
29          registerAction("node ping", MANAGEMENT_NODE_PING);
30      }
31  
32      public ManagementNotification(Object message, int action)
33      {
34          super(message, action);
35      }
36  }