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