com.sun.enterprise.web.ara.rules
Class PathRule
java.lang.Object
com.sun.enterprise.web.ara.rules.ThreadRatioRule
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
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathRule
public PathRule()
getContextRoot
protected String getContextRoot()
- Get the context-root from the
ByteBuffer
- Overrides:
getContextRoot in class ThreadRatioRule
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.