Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ManagementNotification |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: ManagementNotification.java 10529 2008-01-25 05:58:36Z dfeist $ | |
3 | * -------------------------------------------------------------------------------------- | |
4 | * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.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 | * @see org.mule.MuleManager | |
20 | * @see org.mule.api.context.UMOManager | |
21 | */ | |
22 | public class ManagementNotification extends ServerNotification | |
23 | { | |
24 | /** | |
25 | * Serial version | |
26 | */ | |
27 | private static final long serialVersionUID = -259130553709035786L; | |
28 | ||
29 | // TODO resource status notifications here i.e. | |
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 | static { | |
34 | 0 | registerAction("service queue exhausted", MANAGEMENT_COMPONENT_QUEUE_EXHAUSTED); |
35 | 0 | registerAction("node ping", MANAGEMENT_NODE_PING); |
36 | 0 | } |
37 | ||
38 | public ManagementNotification(Object message, int action) | |
39 | { | |
40 | 0 | super(message, action); |
41 | 0 | } |
42 | } |