com.sun.enterprise.web.ara
Class IsolationRulesExecutor

java.lang.Object
  extended by com.sun.enterprise.web.ara.IsolationRulesExecutor
All Implemented Interfaces:
RulesExecutor<IsolatedTask>

public class IsolationRulesExecutor
extends Object
implements RulesExecutor<IsolatedTask>

This class execute sequentialy Rules on a Task

Author:
Jeanfrancois Arcand

Field Summary
static int RULE_BLOCKED
           
static int RULE_CONTINUE
           
static int RULE_DELAY
           
static int RULE_OK
           
static int RULE_OK_NOCACHE
           
protected  ArrayList<Rule> rules
          The list of Rule to apply to a Task
 
Constructor Summary
IsolationRulesExecutor()
           
 
Method Summary
 boolean execute(IsolatedTask isolatedTask)
          Execute the Rules on the IsolatedTask
 boolean isCachingAllowed()
          Is caching of Rule results allowed
protected  void loadRules()
          Load the list of Rules to apply to a Task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RULE_OK

public static final int RULE_OK
See Also:
Constant Field Values

RULE_DELAY

public static final int RULE_DELAY
See Also:
Constant Field Values

RULE_BLOCKED

public static final int RULE_BLOCKED
See Also:
Constant Field Values

RULE_OK_NOCACHE

public static final int RULE_OK_NOCACHE
See Also:
Constant Field Values

RULE_CONTINUE

public static final int RULE_CONTINUE
See Also:
Constant Field Values

rules

protected ArrayList<Rule> rules
The list of Rule to apply to a Task

Constructor Detail

IsolationRulesExecutor

public IsolationRulesExecutor()
Method Detail

loadRules

protected void loadRules()
Load the list of Rules to apply to a Task


execute

public boolean execute(IsolatedTask isolatedTask)
Execute the Rules on the IsolatedTask

Specified by:
execute in interface RulesExecutor<IsolatedTask>
Parameters:
isolatedTask - the task used.
Returns:
true if the request processing can continue.

isCachingAllowed

public boolean isCachingAllowed()
Is caching of Rule results allowed

Specified by:
isCachingAllowed in interface RulesExecutor<IsolatedTask>


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.