org.jboss.soa.esb.actions.monitoring
Class MVELMonitoringAction

java.lang.Object
  extended by org.jboss.soa.esb.actions.AbstractActionLifecycle
      extended by org.jboss.soa.esb.actions.AbstractActionPipelineProcessor
          extended by org.jboss.soa.esb.actions.monitoring.MVELMonitoringAction
All Implemented Interfaces:
ActionLifecycle, ActionPipelineProcessor

public class MVELMonitoringAction
extends AbstractActionPipelineProcessor

Action that monitors messages and has the ability to store information found at a particular MVEL pattern. Uses beanshell evaluation to decide whether to store the message information.

Since:
Version 4.4
Author:
tcunning

Field Summary
protected  ConfigTree _config
           
static java.lang.String MONITOR_VALUE
           
static java.lang.String MVEL_PATTERN
           
static java.lang.String PATTERN_CONDITIONAL
           
static java.lang.String PATTERN_NAME
           
 
Fields inherited from interface org.jboss.soa.esb.actions.ActionPipelineProcessor
PROCESS_EXCEPTION_METHOD, PROCESS_METHOD, PROCESS_SUCCESS_METHOD
 
Constructor Summary
MVELMonitoringAction(ConfigTree config)
          Constructor that forms
 
Method Summary
 Message process(Message message)
          Perform the action processing on the specified message.
 
Methods inherited from class org.jboss.soa.esb.actions.AbstractActionPipelineProcessor
processException, processSuccess
 
Methods inherited from class org.jboss.soa.esb.actions.AbstractActionLifecycle
destroy, initialise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.soa.esb.actions.ActionLifecycle
destroy, initialise
 

Field Detail

MONITOR_VALUE

public static final java.lang.String MONITOR_VALUE
See Also:
Constant Field Values

MVEL_PATTERN

public static final java.lang.String MVEL_PATTERN
See Also:
Constant Field Values

PATTERN_NAME

public static final java.lang.String PATTERN_NAME
See Also:
Constant Field Values

PATTERN_CONDITIONAL

public static final java.lang.String PATTERN_CONDITIONAL
See Also:
Constant Field Values

_config

protected ConfigTree _config
Constructor Detail

MVELMonitoringAction

public MVELMonitoringAction(ConfigTree config)
Constructor that forms

Parameters:
config - ConfigTree
Method Detail

process

public Message process(Message message)
                throws ActionProcessingException
Description copied from interface: ActionPipelineProcessor
Perform the action processing on the specified message. This method is invoked for each message passing throught the pipeline.

Parameters:
message - The current message being processed.
Returns:
The message to be passed to the next stage of the pipeline.
Throws:
ActionProcessingException - for errors during processing.