1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.context.notification; |
8 | |
|
9 | |
import org.mule.api.construct.FlowConstruct; |
10 | |
import org.mule.api.context.notification.BlockingServerEvent; |
11 | |
import org.mule.api.context.notification.ServerNotification; |
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
public class FlowConstructNotification extends ServerNotification implements BlockingServerEvent |
19 | |
{ |
20 | |
private static final long serialVersionUID = 6658641434183647952L; |
21 | |
public static final int FLOW_CONSTRUCT_INITIALISED = FLOW_CONSTRUCT_EVENT_ACTION_START_RANGE + 1; |
22 | |
public static final int FLOW_CONSTRUCT_STARTED = FLOW_CONSTRUCT_EVENT_ACTION_START_RANGE + 2; |
23 | |
public static final int FLOW_CONSTRUCT_STOPPED = FLOW_CONSTRUCT_EVENT_ACTION_START_RANGE + 3; |
24 | |
public static final int FLOW_CONSTRUCT_PAUSED = FLOW_CONSTRUCT_EVENT_ACTION_START_RANGE + 4; |
25 | |
public static final int FLOW_CONSTRUCT_RESUMED = FLOW_CONSTRUCT_EVENT_ACTION_START_RANGE + 5; |
26 | |
public static final int FLOW_CONSTRUCT_DISPOSED = FLOW_CONSTRUCT_EVENT_ACTION_START_RANGE + 6; |
27 | |
|
28 | |
static |
29 | |
{ |
30 | 0 | registerAction("flow construct initialised", FLOW_CONSTRUCT_INITIALISED); |
31 | 0 | registerAction("flow construct started", FLOW_CONSTRUCT_STARTED); |
32 | 0 | registerAction("flow construct stopped", FLOW_CONSTRUCT_STOPPED); |
33 | 0 | registerAction("flow construct paused", FLOW_CONSTRUCT_PAUSED); |
34 | 0 | registerAction("flow construct resumed", FLOW_CONSTRUCT_RESUMED); |
35 | 0 | registerAction("flow construct disposed", FLOW_CONSTRUCT_DISPOSED); |
36 | 0 | } |
37 | |
|
38 | |
public FlowConstructNotification(FlowConstruct flowConstruct, int action) |
39 | |
{ |
40 | 0 | super(flowConstruct.getName(), action); |
41 | 0 | resourceIdentifier = flowConstruct.getName(); |
42 | 0 | } |
43 | |
} |