com.sun.enterprise.web.ara.rules
Class PathRule

java.lang.Object
  extended by com.sun.enterprise.web.ara.rules.ThreadRatioRule
      extended by com.sun.enterprise.web.ara.rules.PathRule
All Implemented Interfaces:
Rule<ReadTask>, Callable

public class PathRule
extends ThreadRatioRule

Based on the application context-root, configure the ReadTask Pipeline. Based on the thread-ratio defined in domain.xml, an application can have privileged Pipeline, configured to use specific percentage of the maximum number of threads. This Rule instanciate two types of Pipeline privilegedPipeline is will be used to execute privileged applications. victimsPipeline is will be used to execute others application that aren't included within the privileged tokens. An application is marked privileged if the set of Rule applied to the application requests is matched.

Author:
Jeanfrancois Arcand

Field Summary
 
Fields inherited from class com.sun.enterprise.web.ara.rules.ThreadRatioRule
ALLOCATION_MODE, allocationPolicy, CEILING, leftRatio, PATH_STRING, pipelines, privilegedTokens, QUERY_STRING, readTask, RESERVE, RULE_TOKENS
 
Constructor Summary
PathRule()
           
 
Method Summary
protected  String getContextRoot()
          Get the context-root from the ByteBuffer
 
Methods inherited from class com.sun.enterprise.web.ara.rules.ThreadRatioRule
applyRule, attach, attachement, call, cancel, getExecutionTime, isPipelineInUse, newPipeline, setExecutionTime, setFuture
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathRule

public PathRule()
Method Detail

getContextRoot

protected String getContextRoot()
Get the context-root from the ByteBuffer

Overrides:
getContextRoot in class ThreadRatioRule


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